summaryrefslogtreecommitdiff
path: root/source4/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-29 07:47:57 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-29 08:01:48 +1000
commit4a87ca2028fe301d1d61e5cd365df49ff1f2dd22 (patch)
treeae8ec6fddf5d778652fd26e4e0683e9cd7753721 /source4/wscript
parent08c3ce25c6d0571c6271645ef4dae3c5ca2b0e33 (diff)
downloadsamba-4a87ca2028fe301d1d61e5cd365df49ff1f2dd22.tar.gz
samba-4a87ca2028fe301d1d61e5cd365df49ff1f2dd22.tar.bz2
samba-4a87ca2028fe301d1d61e5cd365df49ff1f2dd22.zip
s4-waf: added --enable-build-farm configure option
this adds a smbtorture.static binary which s3 will use in the build farm
Diffstat (limited to 'source4/wscript')
-rw-r--r--source4/wscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/wscript b/source4/wscript
index 4f8042db50..e5c8d23092 100644
--- a/source4/wscript
+++ b/source4/wscript
@@ -30,6 +30,12 @@ def set_options(opt):
opt.RECURSE('../lib/uid_wrapper')
opt.RECURSE('../pidl')
+ gr = opt.option_group('developer options')
+ gr.add_option('--enable-build-farm',
+ help='enable special build farm options',
+ action='store_true', dest='BUILD_FARM')
+
+
def configure(conf):
conf.DEFINE('PACKAGE_NAME', 'samba', quote=True)
conf.DEFINE('PACKAGE_STRING', 'samba 4', quote=True)
@@ -45,6 +51,9 @@ def configure(conf):
if Options.options.developer:
conf.ADD_CFLAGS('-DDEVELOPER -DDEBUG_PASSWORD')
+ # this enables smbtorture.static for s3 in the build farm
+ conf.env.BUILD_FARM = Options.options.BUILD_FARM or os.environ.get('RUN_FROM_BUILD_FARM')
+
# set a lower limit on recursing in waf preprocessor
conf.env.preprocessor_recursion_limit = 10