From 523034b9fbc1841ed63137e3d8965d52997af4e6 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 19 Sep 2005 19:19:10 +0000 Subject: r10323: Add first bits required for getting compile with scons working. This does not work yet and can exist parallel with the existing build system. (This used to be commit 829568d75985e875e3363d76fb44270a0298c7f8) --- source4/SConstruct | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 source4/SConstruct (limited to 'source4/SConstruct') diff --git a/source4/SConstruct b/source4/SConstruct new file mode 100644 index 0000000000..3c8a54e04a --- /dev/null +++ b/source4/SConstruct @@ -0,0 +1,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') -- cgit