From 5b9ca48d81a92a1b6c079654ce71038ab5f844b4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 7 Mar 2010 10:59:01 +1100 Subject: build: added generation of version.h --- buildtools/wafsamba/samba_patterns.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'buildtools/wafsamba/samba_patterns.py') diff --git a/buildtools/wafsamba/samba_patterns.py b/buildtools/wafsamba/samba_patterns.py index 868aa2874e..ef89db69a6 100644 --- a/buildtools/wafsamba/samba_patterns.py +++ b/buildtools/wafsamba/samba_patterns.py @@ -21,3 +21,16 @@ def process_et(self, node): self.create_task('et', node, [c_node, h_node]) self.allnodes.append(c_node) + + +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 + -- cgit