From 553324bc1022635e05a683c4bec5135d845f6fea Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 4 Apr 2010 13:08:05 +1000 Subject: s4-waf: move to a universal method of recursing into subdirs This works with both standalone lib builds and bundled builds --- source4/wscript | 56 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'source4/wscript') 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 -- cgit