2010-03-17 21:46:38 +11:00
#! /usr/bin/env python
2010-03-17 20:26:03 +11:00
srcdir = '..'
blddir = 'bin'
2010-02-26 22:21:50 +11:00
import sys
sys.path.insert(0, srcdir+"/buildtools/wafsamba")
import wafsamba
2010-03-17 20:26:03 +11:00
LIBREPLACE_DIR= srcdir + '/lib/replace'
LIBLDB_DIR= srcdir + '/source4/lib/ldb'
def set_options(opt):
opt.recurse(LIBREPLACE_DIR)
opt.recurse(LIBLDB_DIR)
2010-03-17 20:38:03 +11:00
opt.recurse('selftest')
2010-03-07 13:30:22 +11:00
opt.recurse('lib/tls')
2010-03-17 20:38:03 +11:00
2010-03-17 20:26:03 +11:00
def configure(conf):
2010-02-24 17:38:12 +11:00
conf.DEFINE('_SAMBA_BUILD_', 4)
2010-03-17 21:46:38 +11:00
conf.find_program('python', var='PYTHON', mandatory=True)
2010-03-17 21:53:29 +11:00
conf.find_program('perl', var='PERL', mandatory=True)
2010-03-17 20:26:03 +11:00
conf.sub_config(LIBREPLACE_DIR)
conf.sub_config(LIBLDB_DIR)
2010-02-24 17:38:12 +11:00
conf.sub_config('heimdal_build')
2010-03-07 13:30:22 +11:00
conf.sub_config('lib/tls')
2010-03-07 14:01:05 +11:00
conf.sub_config('ntvfs/sysdep')
2010-03-07 14:07:32 +11:00
conf.sub_config('../lib/util')
2010-03-07 17:35:20 +11:00
conf.sub_config('../lib/zlib')
2010-03-07 17:53:41 +11:00
conf.sub_config('auth')
2010-03-17 20:26:03 +11:00
2010-02-24 17:38:12 +11:00
conf.DEFINE('CONFIG_H_IS_FROM_SAMBA', 1)
2010-03-17 21:53:29 +11:00
conf.ADD_EXTRA_INCLUDES('#source4 #lib #source4/lib #source4/include #lib/socket_wrapper #lib/talloc #lib/replace #lib/event')
2010-02-24 17:38:12 +11:00
2010-02-23 08:09:46 +11:00
conf.SAMBA_CONFIG_H('include/config.h')