summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-21 00:24:28 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:33 +1000
commit5c103b484f6c6dc9ba544d501e9f701076381655 (patch)
treee181d3822bcfd1dfc72eac4dbd8a3b0509bbf48b /lib/replace/wscript
parent34b77a15d36e21c67d5493e45955358589f7b9c5 (diff)
downloadsamba-5c103b484f6c6dc9ba544d501e9f701076381655.tar.gz
samba-5c103b484f6c6dc9ba544d501e9f701076381655.tar.bz2
samba-5c103b484f6c6dc9ba544d501e9f701076381655.zip
build: renamed autoconf.py to wafsamba.py and added SAMBA_*() functions
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript27
1 files changed, 11 insertions, 16 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 6baab09b03..6fc49e57dc 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -13,7 +13,7 @@ def configure(conf):
conf.env.hlist = []
# load our local waf extensions
- conf.check_tool('autoconf', tooldir=conf.curdir)
+ conf.check_tool('wafsamba', tooldir=conf.curdir)
conf.check_tool('compiler_cc')
conf.DEFUN('_GNU_SOURCE', 1)
@@ -115,19 +115,14 @@ main() { foo("hello"); }
def build(bld):
bld.set_rpath()
- # the libreplace shared library
- bld(
- features = 'cc cshlib',
- source = 'replace.c',
- target='replace',
- includes = '. default')
-
- # test program
- bld(
- features = 'cc cprogram',
- source = '''test/testsuite.c test/main.c test/strptime.c
- test/os2_delete.c test/getifaddrs.c''',
- target = 'replace_testsuite',
- uselib_local = 'replace',
- includes = '. default /usr/include')
+ REPLACE_SOURCE = 'replace.c snprintf.c'
+ bld.SAMBA_LIBRARY('replace',
+ REPLACE_SOURCE)
+
+ TEST_SOURCES = '''test/testsuite.c test/main.c test/strptime.c
+ test/os2_delete.c test/getifaddrs.c'''
+
+ bld.SAMBA_BINARY('replace_testsuite',
+ TEST_SOURCES,
+ 'replace')