summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-04 13:08:05 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:25 +1000
commit553324bc1022635e05a683c4bec5135d845f6fea (patch)
tree7d8aa296c7e433793e47bf1227310973a4aed7e9 /source4
parent8dc8d31f4adf84f35bce34339e13e9d70c4b8a66 (diff)
downloadsamba-553324bc1022635e05a683c4bec5135d845f6fea.tar.gz
samba-553324bc1022635e05a683c4bec5135d845f6fea.tar.bz2
samba-553324bc1022635e05a683c4bec5135d845f6fea.zip
s4-waf: move to a universal method of recursing into subdirs
This works with both standalone lib builds and bundled builds
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/wscript_build10
-rw-r--r--source4/dsdb/wscript_build2
-rw-r--r--source4/lib/ldb/wscript16
-rw-r--r--source4/libcli/wscript_build8
-rw-r--r--source4/librpc/wscript_build4
-rw-r--r--source4/ntvfs/wscript_build8
-rw-r--r--source4/smb_server/wscript_build4
-rw-r--r--source4/torture/wscript_build12
-rw-r--r--source4/wscript56
-rw-r--r--source4/wscript_build154
10 files changed, 137 insertions, 137 deletions
diff --git a/source4/auth/wscript_build b/source4/auth/wscript_build
index 6cb3ad510f..349171e081 100644
--- a/source4/auth/wscript_build
+++ b/source4/auth/wscript_build
@@ -1,10 +1,10 @@
#!/usr/bin/env python
-bld.BUILD_SUBDIR('gensec')
-bld.BUILD_SUBDIR('kerberos')
-bld.BUILD_SUBDIR('ntlmssp')
-bld.BUILD_SUBDIR('ntlm')
-bld.BUILD_SUBDIR('credentials')
+bld.RECURSE('gensec')
+bld.RECURSE('kerberos')
+bld.RECURSE('ntlmssp')
+bld.RECURSE('ntlm')
+bld.RECURSE('credentials')
bld.SAMBA_SUBSYSTEM('auth_session',
source='session.c',
diff --git a/source4/dsdb/wscript_build b/source4/dsdb/wscript_build
index 69d24e6261..966f65c65f 100644
--- a/source4/dsdb/wscript_build
+++ b/source4/dsdb/wscript_build
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-bld.BUILD_SUBDIR('samdb/ldb_modules')
+bld.RECURSE('samdb/ldb_modules')
bld.SAMBA_SUBSYSTEM('SAMDB',
source='samdb/samdb.c samdb/samdb_privilege.c samdb/cracknames.c repl/replicated_objects.c',
diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript
index 968485f69f..9d3eddfc99 100644
--- a/source4/lib/ldb/wscript
+++ b/source4/lib/ldb/wscript
@@ -26,13 +26,13 @@ LIBPOPT_DIR= '../../../lib/popt'
def set_options(opt):
opt.BUILTIN_DEFAULT('replace')
opt.BUNDLED_EXTENSION_DEFAULT('ldb', noextenion='ldb')
- opt.recurse(LIBTDB_DIR)
- opt.recurse(LIBTEVENT_DIR)
+ opt.RECURSE(LIBTDB_DIR)
+ opt.RECURSE(LIBTEVENT_DIR)
def configure(conf):
- conf.sub_config(LIBTDB_DIR)
- conf.sub_config(LIBTEVENT_DIR)
- conf.sub_config(LIBPOPT_DIR)
+ conf.RECURSE(LIBTDB_DIR)
+ conf.RECURSE(LIBTEVENT_DIR)
+ conf.RECURSE(LIBPOPT_DIR)
# where does the default LIBDIR end up? in conf.env somewhere?
#
conf.CONFIG_PATH('LDB_MODULESDIR', conf.SUBST_ENV_VAR('MODULESDIR') + '/ldb')
@@ -53,9 +53,9 @@ def configure(conf):
conf.SAMBA_CONFIG_H()
def build(bld):
- bld.BUILD_SUBDIR(LIBTDB_DIR)
- bld.BUILD_SUBDIR(LIBTEVENT_DIR)
- bld.BUILD_SUBDIR(LIBPOPT_DIR)
+ bld.RECURSE(LIBTDB_DIR)
+ bld.RECURSE(LIBTEVENT_DIR)
+ bld.RECURSE(LIBPOPT_DIR)
# in Samba4 we build some extra modules, and add extra
# capabilities to the ldb cmdline tools
diff --git a/source4/libcli/wscript_build b/source4/libcli/wscript_build
index d06ab4d755..d46fed7f1b 100644
--- a/source4/libcli/wscript_build
+++ b/source4/libcli/wscript_build
@@ -1,8 +1,8 @@
#!/usr/bin/env python
-bld.BUILD_SUBDIR('ldap')
-bld.BUILD_SUBDIR('security')
-bld.BUILD_SUBDIR('wbclient')
+bld.RECURSE('ldap')
+bld.RECURSE('security')
+bld.RECURSE('wbclient')
bld.SAMBA_SUBSYSTEM('LIBSAMBA-ERRORS',
source='../../libcli/util/doserr.c util/errormap.c util/nterr.c',
@@ -96,4 +96,4 @@ bld.SAMBA_SUBSYSTEM('LIBCLI_RAW',
deps='LIBCLI_COMPOSITE LP_RESOLVE gensec LIBCLI_RESOLVE LIBSECURITY LIBNDR'
)
-bld.BUILD_SUBDIR('smb2')
+bld.RECURSE('smb2')
diff --git a/source4/librpc/wscript_build b/source4/librpc/wscript_build
index 29fc95dcc0..ccc1eec139 100644
--- a/source4/librpc/wscript_build
+++ b/source4/librpc/wscript_build
@@ -1,7 +1,7 @@
#!/usr/bin/env python
-bld.BUILD_SUBDIR('../../librpc/idl')
-bld.BUILD_SUBDIR('idl')
+bld.RECURSE('../../librpc/idl')
+bld.RECURSE('idl')
bld.SAMBA_LIBRARY('LIBNDR',
source='ndr/ndr_string.c ../../librpc/ndr/ndr_basic.c ../../librpc/ndr/uuid.c ../../librpc/ndr/ndr.c ../../librpc/ndr/ndr_misc.c ../../librpc/gen_ndr/ndr_misc.c',
diff --git a/source4/ntvfs/wscript_build b/source4/ntvfs/wscript_build
index 9124f662a4..8aead7f224 100644
--- a/source4/ntvfs/wscript_build
+++ b/source4/ntvfs/wscript_build
@@ -1,9 +1,9 @@
#!/usr/bin/env python
-bld.BUILD_SUBDIR('posix')
-bld.BUILD_SUBDIR('common')
-bld.BUILD_SUBDIR('unixuid')
-bld.BUILD_SUBDIR('sysdep')
+bld.RECURSE('posix')
+bld.RECURSE('common')
+bld.RECURSE('unixuid')
+bld.RECURSE('sysdep')
bld.SAMBA_MODULE('ntvfs_cifs',
source='cifs/vfs_cifs.c',
diff --git a/source4/smb_server/wscript_build b/source4/smb_server/wscript_build
index 38f50ff0db..8ea4b48b81 100644
--- a/source4/smb_server/wscript_build
+++ b/source4/smb_server/wscript_build
@@ -23,5 +23,5 @@ bld.SAMBA_SUBSYSTEM('SMB_SERVER',
public_deps='share LIBPACKET SMB_PROTOCOL SMB2_PROTOCOL'
)
-bld.BUILD_SUBDIR('smb')
-bld.BUILD_SUBDIR('smb2')
+bld.RECURSE('smb')
+bld.RECURSE('smb2')
diff --git a/source4/torture/wscript_build b/source4/torture/wscript_build
index f36f2e22ce..79deefb3ed 100644
--- a/source4/torture/wscript_build
+++ b/source4/torture/wscript_build
@@ -27,10 +27,10 @@ bld.SAMBA_MODULE('TORTURE_RAW',
internal_module=True
)
-bld.BUILD_SUBDIR('smb2')
-bld.BUILD_SUBDIR('winbind')
-bld.BUILD_SUBDIR('libnetapi')
-bld.BUILD_SUBDIR('libsmbclient')
+bld.RECURSE('smb2')
+bld.RECURSE('winbind')
+bld.RECURSE('libnetapi')
+bld.RECURSE('libsmbclient')
bld.SAMBA_SUBSYSTEM('TORTURE_NDR',
source='ndr/ndr.c ndr/winreg.c ndr/atsvc.c ndr/lsa.c ndr/epmap.c ndr/dfs.c ndr/netlogon.c ndr/drsuapi.c ndr/spoolss.c ndr/samr.c ndr/dfsblob.c ndr/drsblobs.c',
@@ -48,7 +48,7 @@ bld.SAMBA_MODULE('torture_rpc',
internal_module=True
)
-bld.BUILD_SUBDIR('drs')
+bld.RECURSE('drs')
bld.SAMBA_MODULE('TORTURE_RAP',
source='rap/rap.c rap/rpc.c',
@@ -68,7 +68,7 @@ bld.SAMBA_MODULE('TORTURE_AUTH',
internal_module=True
)
-bld.BUILD_SUBDIR('local')
+bld.RECURSE('local')
bld.SAMBA_MODULE('TORTURE_NBENCH',
source='nbench/nbio.c nbench/nbench.c',
diff --git a/source4/wscript b/source4/wscript
index 36796d6333..fea5831047 100644
--- a/source4/wscript
+++ b/source4/wscript
@@ -19,16 +19,16 @@ Options.default_prefix = '/usr/local/samba'
def set_options(opt):
opt.BUILTIN_DEFAULT('NONE')
opt.BUNDLED_EXTENSION_DEFAULT('samba4')
- opt.recurse('../lib/replace')
- opt.recurse('dynconfig')
- opt.recurse('scripting/python')
- opt.recurse('lib/ldb')
- opt.recurse('selftest')
- opt.recurse('lib/tls')
- opt.recurse('../lib/nss_wrapper')
- opt.recurse('../lib/socket_wrapper')
- opt.recurse('../lib/uid_wrapper')
- opt.recurse('../pidl')
+ opt.RECURSE('../lib/replace')
+ opt.RECURSE('dynconfig')
+ opt.RECURSE('scripting/python')
+ opt.RECURSE('lib/ldb')
+ opt.RECURSE('selftest')
+ opt.RECURSE('lib/tls')
+ opt.RECURSE('../lib/nss_wrapper')
+ opt.RECURSE('../lib/socket_wrapper')
+ opt.RECURSE('../lib/uid_wrapper')
+ opt.RECURSE('../pidl')
def configure(conf):
conf.DEFINE('PACKAGE_NAME', 'samba', quote=True)
@@ -50,7 +50,7 @@ def configure(conf):
conf.ADD_EXTRA_INCLUDES('#source4 #lib #source4/lib #source4/include')
- conf.sub_config('../lib/replace')
+ conf.RECURSE('../lib/replace')
conf.find_program('python', var='PYTHON', mandatory=True)
conf.find_program('perl', var='PERL', mandatory=True)
@@ -60,23 +60,23 @@ def configure(conf):
conf.check_python_version((2,4,2))
conf.check_python_headers()
- conf.sub_config('dynconfig')
- conf.sub_config('scripting/python')
- conf.sub_config('lib/ldb')
- conf.sub_config('heimdal_build')
- conf.sub_config('lib/tls')
- conf.sub_config('ntvfs/sysdep')
- conf.sub_config('../lib/util')
- conf.sub_config('../lib/zlib')
- conf.sub_config('../lib/util/charset')
- conf.sub_config('auth')
- conf.sub_config('../lib/nss_wrapper')
- conf.sub_config('../nsswitch')
- conf.sub_config('../lib/socket_wrapper')
- conf.sub_config('../lib/uid_wrapper')
- conf.sub_config('../lib/popt')
- conf.sub_config('lib/smbreadline')
- conf.sub_config('../pidl')
+ conf.RECURSE('dynconfig')
+ conf.RECURSE('scripting/python')
+ conf.RECURSE('lib/ldb')
+ conf.RECURSE('heimdal_build')
+ conf.RECURSE('lib/tls')
+ conf.RECURSE('ntvfs/sysdep')
+ conf.RECURSE('../lib/util')
+ conf.RECURSE('../lib/zlib')
+ conf.RECURSE('../lib/util/charset')
+ conf.RECURSE('auth')
+ conf.RECURSE('../lib/nss_wrapper')
+ conf.RECURSE('../nsswitch')
+ conf.RECURSE('../lib/socket_wrapper')
+ conf.RECURSE('../lib/uid_wrapper')
+ conf.RECURSE('../lib/popt')
+ conf.RECURSE('lib/smbreadline')
+ conf.RECURSE('../pidl')
# we don't want PYTHONDIR in config.h, as otherwise changing
# --prefix causes a complete rebuild
diff --git a/source4/wscript_build b/source4/wscript_build
index f3b20eab36..d128a85299 100644
--- a/source4/wscript_build
+++ b/source4/wscript_build
@@ -40,80 +40,80 @@ bld.SAMBA_SUBSYSTEM('pyldb_util', '')
bld.SAMBA_SUBSYSTEM('TORTURE_LDB_MODULE', '')
-bld.BUILD_SUBDIR('../lib/replace')
-bld.BUILD_SUBDIR('../lib/talloc')
-bld.BUILD_SUBDIR('../lib/tdb')
-bld.BUILD_SUBDIR('../lib/tevent')
-bld.BUILD_SUBDIR('lib/ldb')
-bld.BUILD_SUBDIR('dynconfig')
-bld.BUILD_SUBDIR('../lib/util/charset')
-bld.BUILD_SUBDIR('scripting/python')
-bld.BUILD_SUBDIR('../lib/subunit/python')
-bld.BUILD_SUBDIR('param')
-bld.BUILD_SUBDIR('librpc')
-bld.BUILD_SUBDIR('dsdb')
-bld.BUILD_SUBDIR('smbd')
-bld.BUILD_SUBDIR('cluster')
-bld.BUILD_SUBDIR('smbd')
-bld.BUILD_SUBDIR('libnet')
-bld.BUILD_SUBDIR('auth')
-bld.BUILD_SUBDIR('../nsswitch')
-bld.BUILD_SUBDIR('../nsswitch/libwbclient')
-bld.BUILD_SUBDIR('lib/samba3')
-bld.BUILD_SUBDIR('lib/socket')
-bld.BUILD_SUBDIR('lib/ldb-samba')
-bld.BUILD_SUBDIR('lib/tls')
-bld.BUILD_SUBDIR('lib/registry')
-bld.BUILD_SUBDIR('lib/messaging')
-bld.BUILD_SUBDIR('lib/events')
-bld.BUILD_SUBDIR('lib/cmdline')
-bld.BUILD_SUBDIR('../lib/socket_wrapper')
-bld.BUILD_SUBDIR('../lib/nss_wrapper')
-bld.BUILD_SUBDIR('../lib/uid_wrapper')
-bld.BUILD_SUBDIR('../lib/popt')
-bld.BUILD_SUBDIR('lib/stream')
-bld.BUILD_SUBDIR('../lib/util')
-bld.BUILD_SUBDIR('../lib/tdr')
-bld.BUILD_SUBDIR('../lib/tsocket')
-bld.BUILD_SUBDIR('../lib/crypto')
-bld.BUILD_SUBDIR('../lib/torture')
-bld.BUILD_SUBDIR('../lib/zlib')
-bld.BUILD_SUBDIR('lib')
-bld.BUILD_SUBDIR('lib/com')
-bld.BUILD_SUBDIR('smb_server')
-bld.BUILD_SUBDIR('rpc_server')
-bld.BUILD_SUBDIR('ldap_server')
-bld.BUILD_SUBDIR('web_server')
-bld.BUILD_SUBDIR('winbind')
-bld.BUILD_SUBDIR('nbt_server')
-bld.BUILD_SUBDIR('wrepl_server')
-bld.BUILD_SUBDIR('cldap_server')
-bld.BUILD_SUBDIR('ntp_signd')
-bld.BUILD_SUBDIR('utils/net')
-bld.BUILD_SUBDIR('utils')
-bld.BUILD_SUBDIR('ntvfs')
-bld.BUILD_SUBDIR('ntptr')
-bld.BUILD_SUBDIR('torture')
-bld.BUILD_SUBDIR('../librpc')
-bld.BUILD_SUBDIR('client')
-bld.BUILD_SUBDIR('libcli')
-bld.BUILD_SUBDIR('../libcli/smb')
-bld.BUILD_SUBDIR('../libcli/cldap')
-bld.BUILD_SUBDIR('kdc')
-bld.BUILD_SUBDIR('../lib/smbconf')
-bld.BUILD_SUBDIR('../lib/async_req')
-bld.BUILD_SUBDIR('../libcli/security')
-bld.BUILD_SUBDIR('../libcli/ldap')
-bld.BUILD_SUBDIR('../libcli/nbt')
-bld.BUILD_SUBDIR('../libcli/auth')
-bld.BUILD_SUBDIR('../libcli/drsuapi')
-bld.BUILD_SUBDIR('../libcli/samsync')
-bld.BUILD_SUBDIR('../libgpo')
-bld.BUILD_SUBDIR('../libcli/named_pipe_auth')
-bld.BUILD_SUBDIR('heimdal_build')
-bld.BUILD_SUBDIR('lib/smbreadline')
-bld.BUILD_SUBDIR('../codepages')
-bld.BUILD_SUBDIR('setup')
-bld.BUILD_SUBDIR('scripting')
-bld.BUILD_SUBDIR('../pidl')
-bld.BUILD_SUBDIR('../lib')
+bld.RECURSE('../lib/replace')
+bld.RECURSE('../lib/talloc')
+bld.RECURSE('../lib/tdb')
+bld.RECURSE('../lib/tevent')
+bld.RECURSE('lib/ldb')
+bld.RECURSE('dynconfig')
+bld.RECURSE('../lib/util/charset')
+bld.RECURSE('scripting/python')
+bld.RECURSE('../lib/subunit/python')
+bld.RECURSE('param')
+bld.RECURSE('librpc')
+bld.RECURSE('dsdb')
+bld.RECURSE('smbd')
+bld.RECURSE('cluster')
+bld.RECURSE('smbd')
+bld.RECURSE('libnet')
+bld.RECURSE('auth')
+bld.RECURSE('../nsswitch')
+bld.RECURSE('../nsswitch/libwbclient')
+bld.RECURSE('lib/samba3')
+bld.RECURSE('lib/socket')
+bld.RECURSE('lib/ldb-samba')
+bld.RECURSE('lib/tls')
+bld.RECURSE('lib/registry')
+bld.RECURSE('lib/messaging')
+bld.RECURSE('lib/events')
+bld.RECURSE('lib/cmdline')
+bld.RECURSE('../lib/socket_wrapper')
+bld.RECURSE('../lib/nss_wrapper')
+bld.RECURSE('../lib/uid_wrapper')
+bld.RECURSE('../lib/popt')
+bld.RECURSE('lib/stream')
+bld.RECURSE('../lib/util')
+bld.RECURSE('../lib/tdr')
+bld.RECURSE('../lib/tsocket')
+bld.RECURSE('../lib/crypto')
+bld.RECURSE('../lib/torture')
+bld.RECURSE('../lib/zlib')
+bld.RECURSE('lib')
+bld.RECURSE('lib/com')
+bld.RECURSE('smb_server')
+bld.RECURSE('rpc_server')
+bld.RECURSE('ldap_server')
+bld.RECURSE('web_server')
+bld.RECURSE('winbind')
+bld.RECURSE('nbt_server')
+bld.RECURSE('wrepl_server')
+bld.RECURSE('cldap_server')
+bld.RECURSE('ntp_signd')
+bld.RECURSE('utils/net')
+bld.RECURSE('utils')
+bld.RECURSE('ntvfs')
+bld.RECURSE('ntptr')
+bld.RECURSE('torture')
+bld.RECURSE('../librpc')
+bld.RECURSE('client')
+bld.RECURSE('libcli')
+bld.RECURSE('../libcli/smb')
+bld.RECURSE('../libcli/cldap')
+bld.RECURSE('kdc')
+bld.RECURSE('../lib/smbconf')
+bld.RECURSE('../lib/async_req')
+bld.RECURSE('../libcli/security')
+bld.RECURSE('../libcli/ldap')
+bld.RECURSE('../libcli/nbt')
+bld.RECURSE('../libcli/auth')
+bld.RECURSE('../libcli/drsuapi')
+bld.RECURSE('../libcli/samsync')
+bld.RECURSE('../libgpo')
+bld.RECURSE('../libcli/named_pipe_auth')
+bld.RECURSE('heimdal_build')
+bld.RECURSE('lib/smbreadline')
+bld.RECURSE('../codepages')
+bld.RECURSE('setup')
+bld.RECURSE('scripting')
+bld.RECURSE('../pidl')
+bld.RECURSE('../lib')