1 # waf build tool for building .et files with compile_et
3 from samba_utils
import *
5 def SAMBA_ERRTABLE(bld
, name
, source
):
6 '''Build a heimdal errtable from a .et file'''
8 bname
= source
[0:-3]; # strip off the .et suffix
10 if not SET_TARGET_TYPE(bld
, name
, 'ET'):
13 bld
.SET_BUILD_GROUP('build_source')
16 out_files
.append('%s.c' % bname
)
17 out_files
.append('%s.h' % bname
)
19 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)}',
24 source
= [source
, 'et_compile_wrapper.sh', 'compile_et'],
27 Build
.BuildContext
.SAMBA_ERRTABLE
= SAMBA_ERRTABLE