lib/util: consolidate module loading into common code
[samba.git] / source4 / param / wscript_build
index a6c2bff0804afb6e4e61dbe73677e6359fad053e..91e128f916c16a1c6ab35627f40672c4e461791f 100644 (file)
@@ -1,19 +1,30 @@
 #!/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_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 CHARSET',
-       public_deps='samba-util',
+       deps='DYNCONFIG',
+       public_deps='samba-util param_local_h',
        public_headers='param.h',
        autoproto='param_proto.h',
+       autoproto_extra_source='../../lib/param/param_functions.c'
        )
 
 
 bld.SAMBA_SUBSYSTEM('PROVISION',
        source='provision.c pyparam.c',
-       deps='LIBPYTHON pyparam_util ldb pytalloc-util',
+       deps='LIBPYTHON pyparam_util ldb pytalloc-util pyldb-util',
        pyext=True,
        )
 
@@ -21,7 +32,7 @@ bld.SAMBA_SUBSYSTEM('PROVISION',
 bld.SAMBA_SUBSYSTEM('share',
        source='share.c',
        public_headers='share.h',
-       deps='samba-util'
+       deps='samba-util samba-modules'
        )
 
 
@@ -37,17 +48,17 @@ bld.SAMBA_MODULE('share_ldb',
        source='share_ldb.c',
        subsystem='share',
        init_function='share_ldb_init',
-       deps='LDBSAMBA'
+       deps='ldbsamba auth_system_session'
        )
 
 
 bld.SAMBA_SUBSYSTEM('SECRETS',
        source='secrets.c',
-       deps='ldb TDB_WRAP UTIL_TDB NDR_SECURITY tevent LDBSAMBA'
+       deps='ldb tdb-wrap UTIL_TDB NDR_SECURITY tevent ldbwrap'
        )
 
 
-bld.SAMBA_PYTHON('param',
+bld.SAMBA_PYTHON('pyparam',
        source='pyparam.c',
        deps='samba-hostconfig pytalloc-util',
        realname='samba/param.so'
@@ -62,6 +73,6 @@ bld.SAMBA_SUBSYSTEM('pyparam_util',
 
 bld.SAMBA_LIBRARY('shares',
                   source=[],
-                  deps='share share_classic share_ldb',
+                  deps='share',
                   grouping_library=True,
                   private_library=True)