Fix clang 9 missing-field-initializer warnings
[samba.git] / source4 / lib / registry / wscript_build
index 66f2aa86d57dad8f8cb3849bf581141eda69218f..46040291dc391d2d85ca2a66bf7a66af9042d18b 100644 (file)
@@ -11,11 +11,10 @@ bld.SAMBA_SUBSYSTEM('TDR_REGF',
 
 
 bld.SAMBA_LIBRARY('registry',
-       source='interface.c util.c samba.c patchfile_dotreg.c patchfile_preg.c patchfile.c regf.c hive.c local.c ldb.c dir.c rpc.c',
-       pc_files='registry.pc',
-       public_deps='LIBSAMBA-UTIL CHARSET TDR_REGF ldb RPC_NDR_WINREG LDB_WRAP',
-       public_headers='registry.h',
-       vnum='0.0.1'
+       source='interface.c util.c samba.c patchfile_dotreg.c patchfile_preg.c patchfile.c regf.c hive.c local.c ldb.c rpc.c',
+       public_deps='dcerpc samba-util TDR_REGF ldb RPC_NDR_WINREG ldbsamba util_reg',
+       private_headers='registry.h',
+       private_library=True
        )
 
 
@@ -29,32 +28,28 @@ bld.SAMBA_SUBSYSTEM('registry_common',
 bld.SAMBA_BINARY('regdiff',
        source='tools/regdiff.c',
        manpages='man/regdiff.1',
-       installdir='BINDIR',
-       deps='LIBSAMBA-HOSTCONFIG registry popt POPT_SAMBA POPT_CREDENTIALS'
+       deps='samba-hostconfig registry popt POPT_SAMBA POPT_CREDENTIALS'
        )
 
 
 bld.SAMBA_BINARY('regpatch',
        source='tools/regpatch.c',
        manpages='man/regpatch.1',
-       installdir='BINDIR',
-       deps='LIBSAMBA-HOSTCONFIG registry popt POPT_SAMBA POPT_CREDENTIALS registry_common'
+       deps='samba-hostconfig registry popt POPT_SAMBA POPT_CREDENTIALS registry_common'
        )
 
 
 bld.SAMBA_BINARY('regshell',
        source='tools/regshell.c',
        manpages='man/regshell.1',
-       installdir='BINDIR',
-       deps='LIBSAMBA-HOSTCONFIG popt registry POPT_SAMBA POPT_CREDENTIALS SMBREADLINE registry_common'
+       deps='samba-hostconfig popt registry POPT_SAMBA POPT_CREDENTIALS SMBREADLINE registry_common'
        )
 
 
 bld.SAMBA_BINARY('regtree',
        source='tools/regtree.c',
        manpages='man/regtree.1',
-       installdir='BINDIR',
-       deps='LIBSAMBA-HOSTCONFIG popt registry POPT_SAMBA POPT_CREDENTIALS registry_common'
+       deps='samba-hostconfig popt registry POPT_SAMBA POPT_CREDENTIALS registry_common'
        )
 
 
@@ -64,10 +59,11 @@ bld.SAMBA_SUBSYSTEM('torture_registry',
        deps='torture registry'
        )
 
+pytalloc_util = bld.pyembed_libname('pytalloc-util')
+pyparam_util = bld.pyembed_libname('pyparam_util')
 
 bld.SAMBA_PYTHON('py_registry',
-       source='pyregistry.c',
-       public_deps='registry PYTALLOC pycredentials pyparam_util',
-       realname='samba/registry.so'
-       )
-
+               source='pyregistry.c',
+               public_deps='registry %s %s' % (pytalloc_util, pyparam_util),
+               realname='samba/registry.so'
+               )