build: moved util_reg.c into a common subsystem
authorAndrew Tridgell <tridge@samba.org>
Thu, 24 Feb 2011 02:01:27 +0000 (13:01 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 24 Feb 2011 04:53:52 +0000 (05:53 +0100)
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Feb 24 05:53:52 CET 2011 on sn-devel-104

libcli/registry/wscript_build [new file with mode: 0644]
source3/wscript_build
source4/lib/registry/wscript_build
wscript_build

diff --git a/libcli/registry/wscript_build b/libcli/registry/wscript_build
new file mode 100644 (file)
index 0000000..b9c73aa
--- /dev/null
@@ -0,0 +1,4 @@
+
+bld.SAMBA_SUBSYSTEM('util_reg',
+                    source='util_reg.c',
+                    deps='ndr')
index 1347574..a5c5337 100644 (file)
@@ -64,7 +64,7 @@ LIB_SRC = '''
           lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c
           lib/username.c
           lib/access.c lib/smbrun.c
-          lib/bitmap.c lib/dprintf.c ${UTIL_REG_SRC}
+          lib/bitmap.c lib/dprintf.c
           lib/wins_srv.c
           lib/clobber.c lib/util_sid.c
           lib/util_file.c
@@ -154,7 +154,6 @@ LIBMSRPC_SRC = '''
 #
 # registry-related objects
 #
-UTIL_REG_SRC = '''../libcli/registry/util_reg.c'''
 
 REG_INIT_BASIC_SRC = '''registry/reg_init_basic.c'''
 REG_INIT_SMBCONF_SRC = '''registry/reg_init_smbconf.c'''
@@ -757,7 +756,7 @@ bld.SAMBA3_SUBSYSTEM('KRBCLIENT',
 
 bld.SAMBA3_LIBRARY('samba3core',
                    source=LIB_SRC,
-                   deps='LIBCRYPTO ndr ndr-util security NDR_SECURITY charset NDR_MESSAGING LIBASYNC_REQ tdb-wrap3 samba-util3 CHARSET3 UTIL_TDB SAMBA_VERSION krb5 flag_mapping',
+                   deps='LIBCRYPTO ndr ndr-util security NDR_SECURITY charset NDR_MESSAGING LIBASYNC_REQ tdb-wrap3 samba-util3 CHARSET3 UTIL_TDB SAMBA_VERSION krb5 flag_mapping util_reg',
                    private_library=True,
                    vars=locals())
 
@@ -1336,6 +1335,7 @@ bld.RECURSE('../libcli/security')
 bld.RECURSE('../libcli/smb')
 bld.RECURSE('../libcli/smbreadline')
 bld.RECURSE('../libcli/nbt')
+bld.RECURSE('../libcli/registry')
 bld.RECURSE('../lib/crypto')
 bld.RECURSE('../lib/iniparser/src')
 bld.RECURSE('../lib/nss_wrapper')
index f7f167f..2f0372a 100644 (file)
@@ -11,9 +11,9 @@ bld.SAMBA_SUBSYSTEM('TDR_REGF',
 
 
 bld.SAMBA_LIBRARY('registry',
-       source='interface.c ../../../libcli/registry/util_reg.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',
+       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='samba-util TDR_REGF ldb RPC_NDR_WINREG ldbsamba',
+       public_deps='samba-util TDR_REGF ldb RPC_NDR_WINREG ldbsamba util_reg',
        public_headers='registry.h',
        vnum='0.0.1'
        )
index a35ac9b..318020c 100644 (file)
@@ -96,6 +96,7 @@ bld.RECURSE('libcli/auth')
 bld.RECURSE('libcli/drsuapi')
 bld.RECURSE('libcli/echo')
 bld.RECURSE('libcli/samsync')
+bld.RECURSE('libcli/registry')
 bld.RECURSE('source4/lib/policy')
 bld.RECURSE('libcli/named_pipe_auth')
 bld.RECURSE('source4/heimdal_build')