mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
build: added generation of version.h
This commit is contained in:
parent
88a138f373
commit
5b9ca48d81
@ -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
|
||||
|
||||
|
@ -9,6 +9,8 @@ bld.env.TOPDIR = os.path.normpath(os.path.join(os.environ.get('PWD'), srcdir))
|
||||
# building the C from ASN1 and IDL, and finally the main build process
|
||||
bld.SETUP_BUILD_GROUPS()
|
||||
|
||||
bld.SAMBA_MKVERSION('version.h')
|
||||
|
||||
bld.ENABLE_MAGIC_ORDERING()
|
||||
|
||||
bld.PREDECLARE('LIBNDR', 'LIBRARY')
|
||||
|
Loading…
x
Reference in New Issue
Block a user