lib/param move source4 param code to the top level
[sfrench/samba-autobuild/.git] / lib / param / wscript_build
index c84a99d7eac08c6b3ea1b908bc44538a611b9b3b..f61e822037553c2155104fc057274ca6574fbece 100644 (file)
@@ -4,3 +4,27 @@ bld.SAMBA_GENERATOR('param_local_h',
                     source= 'param_functions.c ../../script/mkparamdefs.pl',
                     target='param_local.h',
                     rule='${PERL} ${SRC[1].abspath(env)} ${SRC[0].abspath(env)} --file ${TGT} --generate-scope=LOCAL')
+
+
+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_GENERATOR('param_global_h',
+                    source= 'loadparm.c ../../script/mkparamdefs.pl',
+                    target='param_global.h',
+                    rule='${PERL} ${SRC[1].abspath(env)} ${SRC[0].abspath(env)} --file ${TGT} --generate-scope=GLOBAL')
+
+bld.SAMBA_LIBRARY('samba-hostconfig',
+       source='loadparm.c generic.c util.c',
+       pc_files='samba-hostconfig.pc',
+       vnum='0.0.1',
+       deps='DYNCONFIG',
+       public_deps='samba-util param_local_h',
+       public_headers='param.h',
+       autoproto='param_proto.h',
+       autoproto_extra_source='param_functions.c'
+       )
+
+