summaryrefslogtreecommitdiff
path: root/source4/param/wscript_build
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-06-01 23:22:24 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-06-06 17:37:51 +1000
commit1dfc6fa558e7735341a7095aa46e5568a4f56cfe (patch)
tree80c2474135ebb6eedb8287b2a469e3dd5754a68c /source4/param/wscript_build
parent521687be0d4bcd6326417696fabdce6506824b99 (diff)
downloadsamba-1dfc6fa558e7735341a7095aa46e5568a4f56cfe.tar.gz
samba-1dfc6fa558e7735341a7095aa46e5568a4f56cfe.tar.bz2
samba-1dfc6fa558e7735341a7095aa46e5568a4f56cfe.zip
s4-param Add hook between Samba3 and Samba4 loadparm systems.
In the top level build, this allows calls to code that requires a lpcfg_ style loadparm_context, while using the global parameters loaded from the source3 loadparm code. Andrew Bartlett
Diffstat (limited to 'source4/param/wscript_build')
-rw-r--r--source4/param/wscript_build5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/param/wscript_build b/source4/param/wscript_build
index 72674e5574..98e838133e 100644
--- a/source4/param/wscript_build
+++ b/source4/param/wscript_build
@@ -1,5 +1,10 @@
#!/usr/bin/env python
+bld.SAMBA_GENERATOR('s3_param_h',
+ source= 'loadparm.c ../script/mks3param.pl',
+ target='s3_param.h',
+ rule='${PERL} ${SRC[1].abspath(env)} ${SRC[0].abspath(env)} --file ${TGT}')
+
bld.SAMBA_LIBRARY('samba-hostconfig',
source='loadparm.c generic.c util.c',
pc_files='samba-hostconfig.pc',