1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

replace: Only build replace-test in standalone build.

This allows turning libreplace-test back into a subsystem.
This commit is contained in:
Jelmer Vernooij 2010-10-30 15:59:14 +02:00
parent 16206974e6
commit 58e99ae916

View File

@ -27,6 +27,8 @@ def set_options(opt):
def configure(conf): def configure(conf):
conf.RECURSE('buildtools/wafsamba') conf.RECURSE('buildtools/wafsamba')
conf.env.standalone_replace = conf.IN_LAUNCH_DIR()
conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1) conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
# on Tru64 certain features are only available with _OSF_SOURCE set to 1 # on Tru64 certain features are only available with _OSF_SOURCE set to 1
@ -407,17 +409,17 @@ def build(bld):
private_library=True, private_library=True,
deps='crypt dl nsl socket rt') deps='crypt dl nsl socket rt')
bld.SAMBA_LIBRARY('replace-test', bld.SAMBA_SUBSYSTEM('replace-test',
source='''test/testsuite.c test/strptime.c source='''test/testsuite.c test/strptime.c
test/os2_delete.c test/getifaddrs.c''', test/os2_delete.c test/getifaddrs.c''',
autoproto='replace-test.h', autoproto='replace-test.h',
deps='replace', deps='replace')
private_library=True)
bld.SAMBA_BINARY('replace_testsuite', if bld.env.standalone_replace:
source='test/main.c', bld.SAMBA_BINARY('replace_testsuite',
deps='replace replace-test', source='test/main.c',
install=False) deps='replace replace-test',
install=False)
# build replacements for stdint.h and stdbool.h if needed # build replacements for stdint.h and stdbool.h if needed
bld.SAMBA_GENERATOR('replace_stdint_h', bld.SAMBA_GENERATOR('replace_stdint_h',