summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-10-30 15:59:14 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-30 17:49:38 +0200
commit58e99ae9169df39b383f711c91e0c0f76b954b33 (patch)
treef96d60a8750377549d3fae175123a03c95defa10 /lib
parent16206974e6557e71cd0e3595c3fe0538bfef956d (diff)
downloadsamba-58e99ae9169df39b383f711c91e0c0f76b954b33.tar.gz
samba-58e99ae9169df39b383f711c91e0c0f76b954b33.tar.bz2
samba-58e99ae9169df39b383f711c91e0c0f76b954b33.zip
replace: Only build replace-test in standalone build.
This allows turning libreplace-test back into a subsystem.
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 9340ded1a9..563e689d20 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -27,6 +27,8 @@ def set_options(opt):
def configure(conf):
conf.RECURSE('buildtools/wafsamba')
+ conf.env.standalone_replace = conf.IN_LAUNCH_DIR()
+
conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
# on Tru64 certain features are only available with _OSF_SOURCE set to 1
@@ -407,17 +409,17 @@ def build(bld):
private_library=True,
deps='crypt dl nsl socket rt')
- bld.SAMBA_LIBRARY('replace-test',
+ bld.SAMBA_SUBSYSTEM('replace-test',
source='''test/testsuite.c test/strptime.c
test/os2_delete.c test/getifaddrs.c''',
autoproto='replace-test.h',
- deps='replace',
- private_library=True)
+ deps='replace')
- bld.SAMBA_BINARY('replace_testsuite',
- source='test/main.c',
- deps='replace replace-test',
- install=False)
+ if bld.env.standalone_replace:
+ bld.SAMBA_BINARY('replace_testsuite',
+ source='test/main.c',
+ deps='replace replace-test',
+ install=False)
# build replacements for stdint.h and stdbool.h if needed
bld.SAMBA_GENERATOR('replace_stdint_h',