d04313155bcbbdae0e243eff90ef7c90359841c1
[nivanova/samba-autobuild/.git] / source4 / wscript
1 #! /usr/bin/env python
2
3 srcdir = '..'
4 blddir = 'bin'
5
6 import sys
7 sys.path.insert(0, srcdir+"/buildtools/wafsamba")
8 import wafsamba
9
10 LIBREPLACE_DIR= srcdir + '/lib/replace'
11 LIBLDB_DIR=     srcdir + '/source4/lib/ldb'
12
13 def set_options(opt):
14     opt.recurse(LIBREPLACE_DIR)
15     opt.recurse(LIBLDB_DIR)
16     opt.recurse('selftest')
17     opt.recurse('lib/tls')
18
19
20 def configure(conf):
21     conf.DEFINE('_SAMBA_BUILD_', 4)
22     conf.find_program('python', var='PYTHON', mandatory=True)
23     conf.find_program('perl', var='PERL', mandatory=True)
24     conf.sub_config(LIBREPLACE_DIR)
25     conf.sub_config(LIBLDB_DIR)
26     conf.sub_config('heimdal_build')
27     conf.sub_config('lib/tls')
28     conf.sub_config('ntvfs/sysdep')
29     conf.sub_config('../lib/util')
30
31     conf.DEFINE('CONFIG_H_IS_FROM_SAMBA', 1)
32     conf.ADD_EXTRA_INCLUDES('#source4 #lib #source4/lib  #source4/include #lib/socket_wrapper #lib/talloc #lib/replace #lib/event')
33
34     conf.SAMBA_CONFIG_H('include/config.h')