diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-17 20:12:16 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:48 +1000 |
commit | 844acb226086e55de9a2442396a4e002471295e8 (patch) | |
tree | f84eef86a64b5f1c34f44999bea6b1913d47e864 /buildtools/wafsamba/samba_errtable.py | |
parent | 845e0cbe6f43e2762796c644035ac6bc2b07cf17 (diff) | |
download | samba-844acb226086e55de9a2442396a4e002471295e8.tar.gz samba-844acb226086e55de9a2442396a4e002471295e8.tar.bz2 samba-844acb226086e55de9a2442396a4e002471295e8.zip |
build: waf quicktest nearly works
Rewrote wafsamba using a new dependency handling system, and started
adding the waf test code
Diffstat (limited to 'buildtools/wafsamba/samba_errtable.py')
-rw-r--r-- | buildtools/wafsamba/samba_errtable.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_errtable.py b/buildtools/wafsamba/samba_errtable.py new file mode 100644 index 0000000000..d324a3541b --- /dev/null +++ b/buildtools/wafsamba/samba_errtable.py @@ -0,0 +1,26 @@ +# waf build tool for building .et files with compile_et +import Build, os +from samba_utils import * + +def SAMBA_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[0].abspath(env)} . ${TGT[0].parent.abspath(env)} default/source4/heimdal_build/compile_et ${SRC[2].abspath(env)} ${TGT[0].bldpath(env)}', + ext_out = '.c', + before = 'cc', + shell = True, + source = ['et_compile_wrapper.sh', 'compile_et', source], + target = out_files, + name = name) +Build.BuildContext.SAMBA_ERRTABLE = SAMBA_ERRTABLE |