summaryrefslogtreecommitdiff
path: root/source4/build/scons
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-28 18:18:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:08 -0500
commit5058f4b9e82ca8b9f2405930db3a46b8c37f06ed (patch)
tree008fb92b76381b2070568a27b905ff64608cb2b0 /source4/build/scons
parent09ee7a470ba052d184f94336cd7635efca387ace (diff)
downloadsamba-5058f4b9e82ca8b9f2405930db3a46b8c37f06ed.tar.gz
samba-5058f4b9e82ca8b9f2405930db3a46b8c37f06ed.tar.bz2
samba-5058f4b9e82ca8b9f2405930db3a46b8c37f06ed.zip
r10586: Add MergedObject() builder. Default to Library() rather
then StaticLibrary() (This used to be commit b53313dc517986c69a4e4cb8fe3885b696f8faa1)
Diffstat (limited to 'source4/build/scons')
-rw-r--r--source4/build/scons/samba.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/source4/build/scons/samba.py b/source4/build/scons/samba.py
new file mode 100644
index 0000000000..949be1c41a
--- /dev/null
+++ b/source4/build/scons/samba.py
@@ -0,0 +1,34 @@
+#!/usr/bin/python
+
+import SCons.Defaults
+import SCons.Util
+
+# Samba contains different "subsystems":
+# - binaries. Program()
+# receive list of component init functions
+# - "real" subsystems (that you might want to use as shared libs,
+# and depend on such as RPC, NDR, REGISTRY, SAMR, LDAP_SERVER, GENSEC, etc). "Libraries"
+# have init_function that receives list of backend init functions
+# - parts of subsystems (RPC_RAW, NDR_RAW, REGISTRY_CORE). have "parent". can have convienience init_function. Module()
+# - optional parts of subsystems (RPC_SMB, REGISTRY_NT4, SERVER_SERVICE_LDAP). also have "parent". have init_function
+
+# Library() builder
+# autoproto=True/False
+# proto_file=(defaults to include/proto.h)
+# optional=True/False
+# automatically get dependency on LIBREPLACE (unless this is LIBREPLACE, of course)
+#def library(env, target, source = None, autoproto = False, proto_file = None, optional = False):
+# print "IEKS: %s, %s\n" % (target, env['CC'])
+
+mergedobj_builder = SCons.Builder.Builder(action='ld -r -o $TARGET $SOURCES',
+ src_suffix='$OBJSUFFIX',
+ suffix='.mo',
+ src_builder='StaticObject'
+ )
+
+def generate(env):
+ env['BUILDERS']['MergedObject'] = mergedobj_builder
+ #env['BUILDERS']['Library'] = library
+
+def exists(env):
+ return True