summaryrefslogtreecommitdiff
path: root/source4/SConstruct
blob: 3c8a54e04a743d4eedb0ff3894c352e9ae2826e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This is the experimental scons build script for Samba 4. For a proper 
# build use the old build system (configure + make). scons will 
# eventually replace this system.

hostenv = Environment(CCFLAGS='-Iinclude -I. -Ilib ')
hostenv.Append(CCFLAGS=' -Iheimdal_build -Iheimdal/lib/krb5 -Iheimdal/lib/hdb -Iheimdal/lib/gssapi -Iheimdal/lib/asn1 -Iheimdal/lib/des -Iheimdal/kdc -Iheimdal/lib/roken -Iheimdal/lib/com_err')
buildenv = hostenv.Copy()

SConscript('param/SConscript','hostenv')
SConscript('lib/SConscript','hostenv')

dynenv = hostenv.Copy()

paths = { 
	'BINDIR': "bin",
	'SBINDIR': "sbin",
	'CONFIGFILE': "cfg",
	'LOGFILEBASE': "lfb",
	'NCALRPCDIR': "ncalrpc",
	'LMHOSTSFILE': "lmhosts",
	'LIBDIR': "libdir",
	'SHLIBEXT': "ext",
	'LOCKDIR': "lockdir",
	'PIDDIR': "piddir",
	'SMB_PASSWD_FILE': "smbpasswd",
	'PRIVATE_DIR': 'private',
	'SWATDIR': "swat"
}

for i in paths:
	dynenv.Append(CCFLAGS=' -D'+i+'=\\"'+paths[i]+'\\"')
	
dynconfig = dynenv.Object('dynconfig.c')
Export('dynconfig')