build: neater way to find libreplace and start on tevent waf build
[mat/samba.git] / lib / talloc / wscript
1 VERSION = '2.0.1'
2
3 srcdir = '.'
4 blddir = 'build'
5
6 LIBREPLACE_DIR='../replace'
7
8 def set_options(opt):
9     opt.recurse(LIBREPLACE_DIR)
10
11 def configure(conf):
12     conf.sub_config(LIBREPLACE_DIR)
13     conf.SAMBA_CONFIG_H()
14
15 def build(bld):
16     bld.add_subdirs(LIBREPLACE_DIR)
17
18     bld.SAMBA_LIBRARY('talloc',
19                       'talloc.c',
20                       libdeps='replace',
21                       vnum=VERSION)
22
23     bld.SAMBA_BINARY('talloc_testsuite',
24                      'testsuite.c testsuite_main.c',
25                      'talloc')