From 5058f4b9e82ca8b9f2405930db3a46b8c37f06ed Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 28 Sep 2005 18:18:09 +0000 Subject: r10586: Add MergedObject() builder. Default to Library() rather then StaticLibrary() (This used to be commit b53313dc517986c69a4e4cb8fe3885b696f8faa1) --- source4/build/scons/samba.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 source4/build/scons/samba.py (limited to 'source4/build') 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 -- cgit