build: provide tevent-util as a public library
authorAndrew Bartlett <abartlet@samba.org>
Fri, 29 Jul 2011 07:01:38 +0000 (17:01 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 8 Aug 2011 11:34:06 +0000 (13:34 +0200)
This is needed so that OpenChange can get at _tevent_req_nterr(), which is referenced
by generated PIDL output.

Andrew Bartlett

17 files changed:
auth/gensec/wscript_build
lib/async_req/wscript_build
lib/util/wscript_build
lib/wscript_build
libcli/cldap/wscript_build
libcli/echo/tests/wscript_build
libcli/echo/wscript_build
libcli/nbt/wscript_build
librpc/wscript_build
source3/wscript_build
source4/auth/gensec/wscript_build
source4/auth/ntlm/wscript_build
source4/lib/tls/wscript
source4/libcli/smb2/wscript_build
source4/libcli/wscript_build
source4/librpc/wscript_build
source4/winbind/wscript_build

index 4daa1de..a9203f8 100644 (file)
@@ -2,6 +2,6 @@
 
 bld.SAMBA_SUBSYSTEM('gensec_runtime',
                     source='gensec.c',
-                    deps='UTIL_TEVENT tevent samba-util LIBTSOCKET',
+                    deps='tevent-util tevent samba-util LIBTSOCKET',
                     public_headers='gensec.h',
                     autoproto='gensec_toplevel_proto.h')
index 352861c..0de58e4 100644 (file)
@@ -4,6 +4,6 @@
 bld.SAMBA_SUBSYSTEM('LIBASYNC_REQ',
        source='async_sock.c',
        public_deps='talloc tevent',
-       deps='UTIL_TEVENT'
+       deps='tevent-util'
        )
 
index ee963ad..82af65c 100755 (executable)
@@ -48,12 +48,13 @@ bld.SAMBA_LIBRARY('UTIL_TDB',
                   private_library=True
        )
 
-bld.SAMBA_SUBSYSTEM('UTIL_TEVENT',
+bld.SAMBA_LIBRARY('tevent-util',
        source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
        local_include=False,
        public_deps='tevent',
        public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
        header_path=[ ('*', 'util') ],
+                 vnum='0.0.1'
        )
 
 
index 9ce832a..97c3cfa 100644 (file)
@@ -31,4 +31,4 @@ bld.SAMBA_LIBRARY('samba-sockets',
                   source=[],
                   private_library=True,
                   grouping_library=True,
-                  deps='LIBTSOCKET samba_socket UTIL_TEVENT')
+                  deps='LIBTSOCKET samba_socket tevent-util')
index c6257b2..889c0af 100644 (file)
@@ -4,7 +4,7 @@
 bld.SAMBA_LIBRARY('cli_cldap',
                   source='cldap.c',
                   public_deps='cli-ldap',
-                  deps='LIBTSOCKET samba-util UTIL_TEVENT ldb LIBCLI_NETLOGON',
+                  deps='LIBTSOCKET samba-util tevent-util ldb LIBCLI_NETLOGON',
                   private_library=True
                   )
 
index 7e58130..366c895 100644 (file)
@@ -4,5 +4,5 @@ bld.SAMBA_MODULE('TORTURE_LIBCLI_ECHO',
         source='echo.c',
         subsystem='smbtorture',
         init_function='torture_libcli_echo_init',
-        deps='LIBTSOCKET UTIL_TEVENT LIBCLI_ECHO',
+        deps='LIBTSOCKET tevent-util LIBCLI_ECHO',
         internal_module=True);
index eedb4ac..a9de131 100644 (file)
@@ -2,6 +2,6 @@
 
 bld.SAMBA_SUBSYSTEM('LIBCLI_ECHO',
         source='echo.c',
-        deps='LIBTSOCKET UTIL_TEVENT');
+        deps='LIBTSOCKET tevent-util');
 
 bld.RECURSE('tests')
index 07d8c51..2c70a1d 100644 (file)
@@ -14,7 +14,7 @@ bld.SAMBA_SUBSYSTEM('lmhosts',
 if bld.env._SAMBA_BUILD_ == 4:
     bld.SAMBA_LIBRARY('cli-nbt',
                       source='nbtsocket.c namequery.c nameregister.c namerefresh.c namerelease.c',
-                      public_deps='ndr NDR_NBT tevent UTIL_TEVENT NDR_SECURITY samba_socket samba-util lmhosts',
+                      public_deps='ndr NDR_NBT tevent tevent-util NDR_SECURITY samba_socket samba-util lmhosts',
                       private_library=True
                       )
 
index 8242741..aba7c3f 100644 (file)
@@ -589,5 +589,5 @@ bld.SAMBA_LIBRARY('ndr',
 
 bld.SAMBA_LIBRARY('rpccommon',
                   source='rpc/dcerpc_error.c rpc/binding.c rpc/dcerpc_util.c rpc/binding_handle.c',
-                  deps='ndr tevent NDR_DCERPC LIBTSOCKET UTIL_TEVENT',
+                  deps='ndr tevent NDR_DCERPC LIBTSOCKET tevent-util',
                   private_library=True)
index 42a12be..0a93999 100755 (executable)
@@ -1413,8 +1413,8 @@ if not bld.env.toplevel_build:
                         source='lib/ldb_compat.c',
                         deps='samba-util')
     bld.SAMBA3_SUBSYSTEM('ldb', source='', deps='ldb3')
-    bld.SAMBA3_SUBSYSTEM('dcerpc', '', deps='UTIL_TEVENT')
-    bld.SAMBA3_SUBSYSTEM('cli-ldap', '', deps='UTIL_TEVENT')
+    bld.SAMBA3_SUBSYSTEM('dcerpc', '', deps='tevent-util')
+    bld.SAMBA3_SUBSYSTEM('cli-ldap', '', deps='tevent-util')
     bld.SAMBA3_SUBSYSTEM('LOADPARM_CTX', '')
 
 ########################## INCLUDES #################################
index 4eed751..9424419 100644 (file)
@@ -4,7 +4,7 @@ bld.SAMBA_LIBRARY('gensec',
        source='gensec_start.c socket.c gensec_tstream.c',
        pc_files='gensec.pc',
        autoproto='gensec_proto.h',
-       public_deps='UTIL_TEVENT samba-util errors LIBPACKET auth_system_session gensec_runtime',
+       public_deps='tevent-util samba-util errors LIBPACKET auth_system_session gensec_runtime',
        deps='com_err',
        vnum='0.0.1'
        )
index 29e54fd..b8634c8 100644 (file)
@@ -51,7 +51,7 @@ bld.SAMBA_MODULE('auth4_unix',
 bld.SAMBA_LIBRARY('auth4',
        source='auth.c auth_util.c auth_simple.c',
        autoproto='auth_proto.h',
-       deps='samba-util security samdb credentials UTIL_TEVENT LIBWBCLIENT_OLD auth_unix_token',
+       deps='samba-util security samdb credentials tevent-util LIBWBCLIENT_OLD auth_unix_token',
        private_library=True
        )
 
index fc6fd88..f34d7e8 100644 (file)
@@ -49,5 +49,5 @@ def configure(conf):
 def build(bld):
     bld.SAMBA_SUBSYSTEM('LIBTLS',
                         source='tls.c tlscert.c tls_tstream.c',
-                        public_deps='talloc gnutls gcrypt samba-hostconfig samba_socket LIBTSOCKET tevent UTIL_TEVENT'
+                        public_deps='talloc gnutls gcrypt samba-hostconfig samba_socket LIBTSOCKET tevent tevent-util'
                         )
index fc8e7b4..1f3d7ef 100644 (file)
@@ -3,7 +3,7 @@
 bld.SAMBA_SUBSYSTEM('LIBCLI_SMB2',
        source='transport.c request.c negprot.c session.c tcon.c create.c close.c connect.c getinfo.c write.c read.c setinfo.c find.c ioctl.c logoff.c tdis.c flush.c lock.c notify.c cancel.c keepalive.c break.c util.c signing.c lease_break.c',
        autoproto='smb2_proto.h',
-       deps='UTIL_TEVENT',
+       deps='tevent-util',
        public_deps='cli_raw LIBPACKET gensec tevent'
        )
 
index 2522ccc..3184a19 100644 (file)
@@ -5,7 +5,7 @@ bld.RECURSE('wbclient')
 
 bld.SAMBA_SUBSYSTEM('LIBSAMBA_TSOCKET',
        source='../../libcli/util/tstream.c',
-       public_deps='LIBTSOCKET UTIL_TEVENT'
+       public_deps='LIBTSOCKET tevent-util'
        )
 
 
@@ -27,13 +27,13 @@ bld.SAMBA_SUBSYSTEM('cli_composite',
 bld.SAMBA_SUBSYSTEM('LIBCLI_SMB_COMPOSITE',
        source='smb_composite/loadfile.c smb_composite/savefile.c smb_composite/connect.c smb_composite/sesssetup.c smb_composite/fetchfile.c smb_composite/appendacl.c smb_composite/fsinfo.c smb_composite/smb2.c',
        autoproto='smb_composite/proto.h',
-       deps='LIBCLI_SMB2 UTIL_TEVENT',
+       deps='LIBCLI_SMB2 tevent-util',
        public_deps='cli_composite credentials gensec LIBCLI_RESOLVE tevent'
        )
 
 bld.SAMBA_PYTHON('pysmb',
     source='pysmb.c',
-    deps='LIBCLI_SMB_COMPOSITE LIBCLI_SMB2 UTIL_TEVENT pyparam_util',
+    deps='LIBCLI_SMB_COMPOSITE LIBCLI_SMB2 tevent-util pyparam_util',
        public_deps='cli_composite credentials gensec LIBCLI_RESOLVE tevent',
     realname='samba/smb.so'
     )
index 68141f6..35b0d4d 100755 (executable)
@@ -138,7 +138,7 @@ bld.SAMBA_LIBRARY('dcerpc',
        rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_smb2.c rpc/dcerpc_sock.c
        rpc/dcerpc_connect.c rpc/dcerpc_secondary.c''',
        pc_files='dcerpc.pc',
-       deps='samba_socket LIBCLI_RESOLVE LIBCLI_SMB LIBCLI_SMB2 ndr NDR_DCERPC RPC_NDR_EPMAPPER NDR_SCHANNEL RPC_NDR_NETLOGON RPC_NDR_MGMT gensec LIBCLI_AUTH cli_raw LP_RESOLVE UTIL_TEVENT rpccommon',
+       deps='samba_socket LIBCLI_RESOLVE LIBCLI_SMB LIBCLI_SMB2 ndr NDR_DCERPC RPC_NDR_EPMAPPER NDR_SCHANNEL RPC_NDR_NETLOGON RPC_NDR_MGMT gensec LIBCLI_AUTH cli_raw LP_RESOLVE tevent-util rpccommon',
        autoproto='rpc/dcerpc_proto.h',
        public_deps='credentials tevent talloc',
        public_headers='''rpc/dcerpc.h ../../librpc/gen_ndr/mgmt.h
index 09fee43..8bf5d76 100644 (file)
@@ -26,5 +26,5 @@ bld.SAMBA_SUBSYSTEM('IDMAP',
 
 bld.SAMBA_BINARY('wbinfo',
        source='../../nsswitch/wbinfo.c',
-       deps='samba-util LIBCLI_AUTH popt POPT_SAMBA winbind-client wbclient tevent UTIL_TEVENT LIBASYNC_REQ security ndr NDR_SECURITY'
+       deps='samba-util LIBCLI_AUTH popt POPT_SAMBA winbind-client wbclient tevent tevent-util LIBASYNC_REQ security ndr NDR_SECURITY'
        )