1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/mscat/wscript
Andrew Bartlett 055318d7e7 Remove rudundent check for gnutls_pkcs7_get_embedded_data_oid as we now require GnuTLS 3.6.13
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2023-06-30 14:00:38 +00:00

42 lines
1.4 KiB
Python

#!/usr/bin/env python
import os
import sys
from waflib import Logs
def configure(conf):
pkg_name = 'libtasn1'
pkg_minversion = '3.8'
if conf.CHECK_BUNDLED_SYSTEM_PKG(pkg_name, minversion=pkg_minversion):
if not conf.find_program('asn1Parser', var='ASN1PARSER'):
Logs.warn('WARNING: ans1Parser hasn\'t been found! Please install it (e.g. libtasn1-bin)')
def build(bld):
if (bld.CONFIG_SET('HAVE_LIBTASN1') and
bld.env.ASN1PARSER):
bld.SAMBA_GENERATOR('MSCAT_PARSER',
source='mscat.asn',
target='mscat_asn1_tab.c',
rule='${ASN1PARSER} --output ${TGT} ${SRC}',
group='build_source')
bld.SAMBA_LIBRARY('mscat',
source='''
mscat_asn1_tab.c
mscat_ctl.c
mscat_pkcs7.c
''',
deps='''
talloc
gnutls
libtasn1
samba-util
''',
private_library=True)
bld.SAMBA_BINARY('dumpmscat',
source='dumpmscat.c',
deps='mscat')