1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
samba-mirror/buildtools/wafsamba/samba_patterns.py
Andrew Tridgell b7ff06b904 build: tidy up the wafsamba rules a bit
use python string conventions for function comments
2010-04-06 20:27:14 +10:00

18 lines
548 B
Python

# 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="cd .. && ${SRC[0].abspath(env)} VERSION ${TGT[0].abspath(env)}",
source= [ "script/mkversion.sh", 'VERSION' ],
target=target,
shell=True,
on_results=True,
before="cc")
Build.BuildContext.SAMBA_MKVERSION = SAMBA_MKVERSION