s3: smbcacls: Now cli_resolve_path() and cli_list() can handle DFS names we no longer...
[Samba.git] / lib / mscat / wscript
blob855be737e71da673319be2ac64e03603b6f21868
1 #!/usr/bin/env python
3 import os
4 import sys
5 from waflib import Logs
7 def configure(conf):
8 pkg_name = 'libtasn1'
9 pkg_minversion = '3.8'
11 if conf.CHECK_BUNDLED_SYSTEM_PKG(pkg_name, minversion=pkg_minversion):
12 if not conf.find_program('asn1Parser', var='ASN1PARSER'):
13 Logs.warn('WARNING: ans1Parser hasn\'t been found! Please install it (e.g. libtasn1-bin)')
15 def build(bld):
16 if (bld.CONFIG_SET('HAVE_LIBTASN1') and
17 bld.env.ASN1PARSER and
18 bld.CONFIG_SET('HAVE_GNUTLS_PKCS7_GET_EMBEDDED_DATA_OID')):
20 bld.SAMBA_GENERATOR('MSCAT_PARSER',
21 source='mscat.asn',
22 target='mscat_asn1_tab.c',
23 rule='${ASN1PARSER} --output ${TGT} ${SRC}',
24 group='build_source')
26 bld.SAMBA_LIBRARY('mscat',
27 source='''
28 mscat_asn1_tab.c
29 mscat_ctl.c
30 mscat_pkcs7.c
31 ''',
32 deps='''
33 talloc
34 gnutls
35 libtasn1
36 samba-util
37 ''',
38 private_library=True)
40 bld.SAMBA_BINARY('dumpmscat',
41 source='dumpmscat.c',
42 deps='mscat')