1 # a waf tool to add extension based build patterns for Samba
3 import os, sys, Options
4 import string, Task, Utils, optparse
5 from Configure import conf
7 from TaskGen import extension
8 from samba_utils import *
10 ################################################################################
11 # a et task which calls out to compile_et to do the work
12 Task.simple_task_type('et',
13 '../heimdal_build/et_compile_wrapper.sh . ${TGT[0].bld_dir(env)} default/source4/heimdal_build/compile_et ${SRC[0].abspath(env)} ${TGT[0].bldpath(env)}',
14 color='BLUE', ext_out='.c',
18 def process_et(self, node):
19 c_node = node.change_ext('.c')
20 h_node = node.change_ext('.h')
21 self.create_task('et', node, [c_node, h_node])
22 self.allnodes.append(c_node)
26 def SAMBA_MKVERSION(bld, target):
27 '''generate the version.h header for Samba'''
28 bld.SET_BUILD_GROUP('setup')
29 t = bld(rule="${SRC} ${TGT}",
30 source= [ "script/mkversion.sh", 'VERSION' ],
33 # force this rule to be constructed now
35 Build.BuildContext.SAMBA_MKVERSION = SAMBA_MKVERSION