summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-28 18:29:46 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:13 +1000
commit32ac04c0286edc5e3afe6f5cef18ccbbc79af4fd (patch)
tree989c5aaa109c3ce85e87e2d47257b15a45113755 /buildtools
parentca882d8c1f514da812dd424ca8afafbc2c2d152a (diff)
downloadsamba-32ac04c0286edc5e3afe6f5cef18ccbbc79af4fd.tar.gz
samba-32ac04c0286edc5e3afe6f5cef18ccbbc79af4fd.tar.bz2
samba-32ac04c0286edc5e3afe6f5cef18ccbbc79af4fd.zip
s4-waf: merge in the latest changes from master
The heimdal changes mean the asn1 compiler produces a 2nd header file
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_asn1.py12
1 files changed, 12 insertions, 0 deletions
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)