lib/param move source4 param code to the top level
[sfrench/samba-autobuild/.git] / source4 / param / wscript_build
index 0f0f1d0c04eafbebbab95d3db2a2d05fc4c32344..80b2758766caf2d7c45d329c66a45215314646a5 100644 (file)
@@ -1,27 +1,16 @@
 #!/usr/bin/env python
 
-bld.SAMBA_LIBRARY('LIBSAMBA-HOSTCONFIG',
-       source='loadparm.c generic.c util.c',
-       pc_files='samba-hostconfig.pc',
-       vnum='0.0.1',
-       deps='DYNCONFIG CHARSET',
-       public_deps='LIBSAMBA-UTIL',
-       public_headers='param.h',
-        autoproto='param_proto.h'                 
-       )
-
-
 bld.SAMBA_SUBSYSTEM('PROVISION',
        source='provision.c pyparam.c',
-       deps='LIBPYTHON pyparam_util ldb PYTALLOC',
-       needs_python=True,
+       deps='LIBPYTHON pyparam_util ldb pytalloc-util pyldb-util',
+       pyext=True,
        )
 
 
 bld.SAMBA_SUBSYSTEM('share',
        source='share.c',
        public_headers='share.h',
-       deps='LIBSAMBA-UTIL'
+       deps='samba-util samba-modules'
        )
 
 
@@ -29,7 +18,7 @@ bld.SAMBA_MODULE('share_classic',
        source='share_classic.c',
        subsystem='share',
        init_function='share_classic_init',
-       deps='LIBSAMBA-UTIL'
+       deps='samba-util'
        )
 
 
@@ -37,26 +26,35 @@ 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'
+       deps='ldb tdb-wrap UTIL_TDB NDR_SECURITY tevent ldbwrap'
        )
 
 
-bld.SAMBA_PYTHON('param',
+bld.SAMBA_PYTHON('pyparam',
        source='pyparam.c',
-       deps='LIBSAMBA-HOSTCONFIG PYTALLOC',
+       deps='samba-hostconfig pytalloc-util',
        realname='samba/param.so'
        )
 
+bld.SAMBA_SUBSYSTEM('param_options',
+       source='loadparm.c',
+       deps='samba-hostconfig')
+
 
 bld.SAMBA_SUBSYSTEM('pyparam_util',
        source='pyparam_util.c',
-       deps='LIBPYTHON LIBSAMBA-HOSTCONFIG',
-       needs_python=True
+       deps='LIBPYTHON samba-hostconfig',
+       pyext=True,
        )
 
+bld.SAMBA_LIBRARY('shares',
+                  source=[],
+                  deps='share',
+                  grouping_library=True,
+                  private_library=True)