summaryrefslogtreecommitdiff
path: root/source4/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'source4/SConstruct')
-rw-r--r--source4/SConstruct44
1 files changed, 27 insertions, 17 deletions
diff --git a/source4/SConstruct b/source4/SConstruct
index 431cba17fe..43ca7517fc 100644
--- a/source4/SConstruct
+++ b/source4/SConstruct
@@ -1,11 +1,19 @@
+#!/usr/bin/env python
# tastes like -*- python -*-
# This is the experimental scons build script for Samba 4. For a proper
# build use the old build system (configure + make). scons may
# eventually replace this system.
-
-hostenv = Environment(CPPPATH = ['#', '#include', '#lib'])
-
+#
+# Copyright (C) 2005 Jelmer Vernooij <jelmer@samba.org>
+# Published under the GNU GPL
+
+hostenv = Environment(
+ toolpath=['build/scons','.'],
+ tools=['default'],
+ CPPPATH=['#include','#','#lib'],
+ CCFLAGS='-D_SAMBA_BUILD_'
+ )
hostenv.Append(CPPPATH = ['#heimdal_build', '#heimdal/lib/krb5',
'#heimdal/lib/hdb', '#heimdal/lib/gssapi',
'#heimdal/lib/asn1', '#heimdal/lib/des',
@@ -14,23 +22,22 @@ hostenv.Append(CPPPATH = ['#heimdal_build', '#heimdal/lib/krb5',
buildenv = hostenv.Copy()
-SConscript('param/SConscript','hostenv')
-SConscript('lib/SConscript','hostenv')
-
dynenv = hostenv.Copy()
+bindir = "bindir"
+
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',
+ 'BINDIR': bindir,
+ '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'
}
@@ -39,3 +46,6 @@ paths = {
dynconfig = dynenv.Object('dynconfig.c')
Export('dynconfig')
+
+SConscript(dirs=['param','lib'],exports='hostenv')
+