build: neater way to find libreplace and start on tevent waf build
[samba.git] / lib / talloc / wscript
index bcbb844a971ffc265da62b4987e1532014950f65..989a8a8b41c161486b4d64cc9e91866efd4b82f3 100644 (file)
@@ -1,18 +1,24 @@
+VERSION = '2.0.1'
+
 srcdir = '.'
 blddir = 'build'
 
+LIBREPLACE_DIR='../replace'
+
 def set_options(opt):
-    opt.recurse('../replace')
+    opt.recurse(LIBREPLACE_DIR)
 
 def configure(conf):
-    conf.recurse('../replace')
+    conf.sub_config(LIBREPLACE_DIR)
+    conf.SAMBA_CONFIG_H()
 
 def build(bld):
-    bld.recurse('../replace')
+    bld.add_subdirs(LIBREPLACE_DIR)
 
     bld.SAMBA_LIBRARY('talloc',
                       'talloc.c',
-                      'replace')
+                      libdeps='replace',
+                      vnum=VERSION)
 
     bld.SAMBA_BINARY('talloc_testsuite',
                      'testsuite.c testsuite_main.c',