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