summaryrefslogtreecommitdiff
path: root/source4/heimdal_build
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-10-03 16:04:34 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-03 16:25:38 +0200
commitdd5a91b4372daf3c098348881d04496918ddf097 (patch)
tree0a3c2370fd13b056d6aa8f24662974024bb9ec22 /source4/heimdal_build
parent8e5a9e7721a966ce1491f727d25ab3f0b8e8fa58 (diff)
downloadsamba-dd5a91b4372daf3c098348881d04496918ddf097.tar.gz
samba-dd5a91b4372daf3c098348881d04496918ddf097.tar.bz2
samba-dd5a91b4372daf3c098348881d04496918ddf097.zip
heimdal: Move SAMBA_ERRTABLE to heimdal_build.
Diffstat (limited to 'source4/heimdal_build')
-rw-r--r--source4/heimdal_build/wscript_build44
1 files changed, 35 insertions, 9 deletions
diff --git a/source4/heimdal_build/wscript_build b/source4/heimdal_build/wscript_build
index 39438875bc..5254b3be3e 100644
--- a/source4/heimdal_build/wscript_build
+++ b/source4/heimdal_build/wscript_build
@@ -4,6 +4,32 @@ import Build
import os
from samba_utils import SET_TARGET_TYPE
+# waf build tool for building .et files with compile_et
+
+def HEIMDAL_ERRTABLE(bld, name, source):
+ '''Build a heimdal errtable from a .et file'''
+
+ bname = source[0:-3]; # strip off the .et suffix
+
+ if not SET_TARGET_TYPE(bld, name, 'ET'):
+ return
+
+ bld.SET_BUILD_GROUP('build_source')
+
+ out_files = []
+ out_files.append('%s.c' % bname)
+ out_files.append('%s.h' % bname)
+
+ t = bld(rule='${SRC[1].abspath(env)} . ${TGT[0].parent.abspath(env)} default/source4/heimdal_build/compile_et ${SRC[0].abspath(env)} ${TGT[0].bldpath(env)}',
+ ext_out = '.c',
+ before = 'cc',
+ on_results = True,
+ shell = True,
+ source = [source, 'et_compile_wrapper.sh', 'compile_et'],
+ target = out_files,
+ name = name)
+Build.BuildContext.HEIMDAL_ERRTABLE = HEIMDAL_ERRTABLE
+
def HEIMDAL_AUTOPROTO(bld, header, source, options=None, group='prototypes'):
'''rule for heimdal prototype generation'''
bld.SET_BUILD_GROUP(group)
@@ -175,39 +201,39 @@ bld.SAMBA_ASN1('HEIMDAL_HDB_ASN1',
'../heimdal/lib/hdb/hdb.asn1',
includes='../heimdal/lib/asn1')
-bld.SAMBA_ERRTABLE('HEIMDAL_ASN1_ERR_ET',
+bld.HEIMDAL_ERRTABLE('HEIMDAL_ASN1_ERR_ET',
'../heimdal/lib/asn1/asn1_err.et')
-bld.SAMBA_ERRTABLE('HEIMDAL_HDB_ERR_ET',
+bld.HEIMDAL_ERRTABLE('HEIMDAL_HDB_ERR_ET',
'../heimdal/lib/hdb/hdb_err.et')
-bld.SAMBA_ERRTABLE('HEIMDAL_HEIM_ERR_ET',
+bld.HEIMDAL_ERRTABLE('HEIMDAL_HEIM_ERR_ET',
'../heimdal/lib/krb5/heim_err.et')
-bld.SAMBA_ERRTABLE('HEIMDAL_K524_ERR_ET',
+bld.HEIMDAL_ERRTABLE('HEIMDAL_K524_ERR_ET',
'../heimdal/lib/krb5/k524_err.et')
-bld.SAMBA_ERRTABLE('HEIMDAL_KRB_ERR_ET',
+bld.HEIMDAL_ERRTABLE('HEIMDAL_KRB_ERR_ET',
'../heimdal/lib/krb5/krb_err.et')
-bld.SAMBA_ERRTABLE('HEIMDAL_KRB5_ERR_ET',
+bld.HEIMDAL_ERRTABLE('HEIMDAL_KRB5_ERR_ET',
'../heimdal/lib/krb5/krb5_err.et')
-bld.SAMBA_ERRTABLE('HEIMDAL_GKRB5_ERR_ET',
+bld.HEIMDAL_ERRTABLE('HEIMDAL_GKRB5_ERR_ET',
'../heimdal/lib/gssapi/krb5/gkrb5_err.et')
-bld.SAMBA_ERRTABLE('HEIMDAL_HX509_ERR_ET',
+bld.HEIMDAL_ERRTABLE('HEIMDAL_HX509_ERR_ET',
'../heimdal/lib/hx509/hx509_err.et')
-bld.SAMBA_ERRTABLE('HEIMDAL_WIND_ERR_ET',
+bld.HEIMDAL_ERRTABLE('HEIMDAL_WIND_ERR_ET',
'../heimdal/lib/wind/wind_err.et')
HEIMDAL_ROKEN_HOSTCC_SOURCE = '''