build: waf quicktest nearly works
[kai/samba.git] / buildtools / wafsamba / samba_patterns.py
1 # a waf tool to add extension based build patterns for Samba
2
3 import Task
4 from TaskGen import extension
5 from samba_utils import *
6
7 def SAMBA_MKVERSION(bld, target):
8     '''generate the version.h header for Samba'''
9     bld.SET_BUILD_GROUP('setup')
10     t = bld(rule="${SRC} ${TGT}",
11             source= [ "script/mkversion.sh", 'VERSION' ],
12             target=target,
13             before="cc")
14     # force this rule to be constructed now
15     t.post()
16 Build.BuildContext.SAMBA_MKVERSION = SAMBA_MKVERSION
17