wafsamba: add source directory define SRCDIR to config.h
authorRalph Boehme <slow@samba.org>
Sat, 15 Apr 2017 07:09:21 +0000 (09:09 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 20 Apr 2017 14:53:16 +0000 (16:53 +0200)
This will be used in the next commit to prepare the path to a test
script in a smbtorture test.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
buildtools/wafsamba/wscript

index 4eef008cf884c0ebb4eb9259be6087d5a7ad7718..430d164b60d71318cfe47cdee8b6348f359d55b3 100644 (file)
@@ -212,6 +212,8 @@ def configure(conf):
     conf.env.hlist = []
     conf.env.srcdir = conf.srcdir
 
+    conf.define('SRCDIR', conf.env['srcdir'])
+
     if Options.options.timestamp_dependencies:
         conf.ENABLE_TIMESTAMP_DEPENDENCIES()