diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:29 +0000 |
commit | 4f5791ebd03eaec1c7da0865a383175b05102712 (patch) | |
tree | 8ce7b00f7a76baa386372422adebbe64510812d4 /lib/mscat/wscript | |
parent | Initial commit. (diff) | |
download | samba-4f5791ebd03eaec1c7da0865a383175b05102712.tar.xz samba-4f5791ebd03eaec1c7da0865a383175b05102712.zip |
Adding upstream version 2:4.17.12+dfsg.upstream/2%4.17.12+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | lib/mscat/wscript | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/mscat/wscript b/lib/mscat/wscript new file mode 100644 index 0000000..855be73 --- /dev/null +++ b/lib/mscat/wscript @@ -0,0 +1,42 @@ +#!/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 and + bld.CONFIG_SET('HAVE_GNUTLS_PKCS7_GET_EMBEDDED_DATA_OID')): + + 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') |