diff options
Diffstat (limited to 'source4/build/scons/asn1.py')
-rw-r--r-- | source4/build/scons/asn1.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/source4/build/scons/asn1.py b/source4/build/scons/asn1.py new file mode 100644 index 0000000000..078ac74a55 --- /dev/null +++ b/source4/build/scons/asn1.py @@ -0,0 +1,26 @@ +"""SCons.Tool.asn1 + +Tool-specific initialization for ASN1 + +""" + +import SCons.Defaults +import SCons.Scanner.ASN1 +import SCons.Util + +asn1_scanner = SCons.Scanner.ASN1.ASN1Scan() + +asn1_builder = SCons.Builder.Builder(action='$ASN1COM', + src_suffix = '.asn1', + suffix='.c', + scanner = asn1_scanner) + +def generate(env): + env['ASN1'] = 'FIXME' + env['PROTOCOM'] = '$ASN1 $SOURCE' + env['BUILDERS']['ASN1'] = asn1_builder + +def exists(env): + return env.Detect('FIXME') + + |