From 32ac04c0286edc5e3afe6f5cef18ccbbc79af4fd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 28 Mar 2010 18:29:46 +1100 Subject: s4-waf: merge in the latest changes from master The heimdal changes mean the asn1 compiler produces a 2nd header file --- buildtools/wafsamba/samba_asn1.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'buildtools/wafsamba') diff --git a/buildtools/wafsamba/samba_asn1.py b/buildtools/wafsamba/samba_asn1.py index 22f664981f..3bbf8a6503 100644 --- a/buildtools/wafsamba/samba_asn1.py +++ b/buildtools/wafsamba/samba_asn1.py @@ -27,6 +27,7 @@ def SAMBA_ASN1(bld, name, source, out_files = [] out_files.append("../heimdal/%s/asn1_%s_asn1.x" % (directory, bname)) out_files.append("../heimdal/%s/%s_asn1.hx" % (directory, bname)) + out_files.append("../heimdal/%s/%s_asn1-priv.hx" % (directory, bname)) # the ${TGT[0].parent.abspath(env)} expression gives us the parent directory of # the first target in the build directory @@ -59,6 +60,7 @@ def SAMBA_ASN1(bld, name, source, cfile = out_files[0][0:-2] + '.c' hfile = out_files[1][0:-3] + '.h', + hpriv = out_files[2][0:-3] + '.h', # now generate a .c file from the .x file t = bld(rule='''( echo '#include "config.h"' && cat ${SRC} ) > ${TGT}''', @@ -81,6 +83,16 @@ def SAMBA_ASN1(bld, name, source, depends_on = name + '_ASN1', name = name + '_H') + # and generate a .h file from the .hx file + t = bld(rule='cp ${SRC} ${TGT}', + source = out_files[2], + ext_out = '.c', + ext_in = '.x', + on_results=True, + target = hpriv, + depends_on = name + '_ASN1', + name = name + '_PRIV_H') + bld.SET_BUILD_GROUP('main') includes = TO_LIST(includes) -- cgit