diff options
Diffstat (limited to 'source4/SConstruct')
-rw-r--r-- | source4/SConstruct | 34 |
1 files changed, 34 insertions, 0 deletions
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') |