From 265b0c6a312d9bc70c651e51a93e26f01b4fff9c Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 13 Dec 2005 16:25:07 +0000 Subject: r12208: Remove obsolete scons directory (This used to be commit e90abfcc7d84d0cae566ecf395dbef4b927de0f9) --- source4/build/scons/asn1.py | 36 ---------------------------- source4/build/scons/et.py | 21 ---------------- source4/build/scons/fallback.py | 34 -------------------------- source4/build/scons/pidl.py | 52 ---------------------------------------- source4/build/scons/pkgconfig.py | 13 ---------- source4/build/scons/proto.py | 20 ---------------- source4/build/scons/samba.py | 34 -------------------------- 7 files changed, 210 deletions(-) delete mode 100644 source4/build/scons/asn1.py delete mode 100644 source4/build/scons/et.py delete mode 100644 source4/build/scons/fallback.py delete mode 100644 source4/build/scons/pidl.py delete mode 100644 source4/build/scons/pkgconfig.py delete mode 100644 source4/build/scons/proto.py delete mode 100644 source4/build/scons/samba.py (limited to 'source4') diff --git a/source4/build/scons/asn1.py b/source4/build/scons/asn1.py deleted file mode 100644 index b8b7073151..0000000000 --- a/source4/build/scons/asn1.py +++ /dev/null @@ -1,36 +0,0 @@ -"""SCons.Tool.asn1 - -Tool-specific initialization for ASN1 - -""" - -import SCons.Defaults -import SCons.Util -import re - -output_re = re.compile(r'^([A-Za-z0-9_-]+)[ \t]*::=', re.M) - -def asn1_emitter(target,source,env): - targets = [] - for s in source: - node = env.File(s) - contents = node.get_contents() - for j in output_re.findall(contents): - targets.append(str(node.get_dir()) + '/asn1_' + j + '.c') - targets.append("%s/%s.h" % (str(node.get_dir()), env['ASN1PREFIX'])) - return targets, source - -asn1_builder = SCons.Builder.Builder(action='$ASN1COM', - src_suffix = '.asn1', - suffix='.c', - single_source=True, - emitter = asn1_emitter) - -def generate(env): - env['ASN1'] = './bin/asn1_compile' - env['ASN1PREFIX'] = 'asn1' - env['ASN1COM'] = 'cd ${SOURCE.dir} && $ASN1 $ASN1PREFIX ${SOURCE.file}' - env['BUILDERS']['ASN1'] = asn1_builder - -def exists(env): - return env.Detect('asn1_compile') diff --git a/source4/build/scons/et.py b/source4/build/scons/et.py deleted file mode 100644 index 2864b32957..0000000000 --- a/source4/build/scons/et.py +++ /dev/null @@ -1,21 +0,0 @@ -"""SCons.Tool.et - -Tool-specific initialization for et - -""" - -import SCons.Defaults -import SCons.Util -import SCons.Tool - -et_builder = SCons.Builder.Builder(action='$ETCOM', - src_suffix = '.et', - suffix='.c') - -def generate(env): - env['ET'] = './bin/compile_et' - env['ETCOM'] = '$ET $SOURCE' - env['BUILDERS']['ErrorTable'] = et_builder - -def exists(env): - return env.Detect(['./bin/compile_et']) diff --git a/source4/build/scons/fallback.py b/source4/build/scons/fallback.py deleted file mode 100644 index d8db9ec268..0000000000 --- a/source4/build/scons/fallback.py +++ /dev/null @@ -1,34 +0,0 @@ -# Generate fallback configure + Makefile -# Copyright (C) 2005 Jelmer Vernooij - -# No support for: -# - cross-compilation -# - caching -# - config.status (?) - -import SCons.Defaults -import SCons.Util -import SCons.Tool - -# Configure structure: -# - Check for available tools first -# - Check for available tool capabilities (C99, volatile, etc) -# - Check for available `base' headers -# - Check for available types -# - Check for libs / headers -def configure_builder(target, source, env): - pass - -# Makefile structure: -# - Declare all variables first -# - Declare targets + dependencies + actions - -def makefile_builder(target, source, env): - pass - -def generate(env): - env['BUILDERS']['ConfigureScript'] = configure_builder - env['BUILDERS']['MakefileIn'] = makefile_in_builder - -def exists(env): - return 1 diff --git a/source4/build/scons/pidl.py b/source4/build/scons/pidl.py deleted file mode 100644 index e225e7ce9c..0000000000 --- a/source4/build/scons/pidl.py +++ /dev/null @@ -1,52 +0,0 @@ -"""SCons.Tool.pidl - -Tool-specific initialization for pidl (Perl-based IDL compiler) - -""" - -import SCons.Defaults -import SCons.Util -import SCons.Scanner - -idl_scanner = SCons.Scanner.ClassicCPP("PIDLScan", '.idl', 'CPPPATH', r'depends\(([^,]+),+\)', SCons.Node.FS.default_fs) - -def ndr_emitter(target, source, env): - result = [] - for s in source: - base, ext = SCons.Util.splitext(str(s).split('/')[-1]) - result.append('gen_ndr/ndr_%s.c' % base) - result.append('gen_ndr/ndr_%s.h' % base) - result.append('gen_ndr/%s.h' % base) - return result, source - -ndr_builder = SCons.Builder.Builder(action='$NDRCOM', - emitter = ndr_emitter, - src_suffix = '.idl', - scanner = idl_scanner) - -def tdr_emitter(target, source, env): - result = [] - for s in source: - base, ext = SCons.Util.splitext(str(s).split('/')[-1]) - result.append('%s/tdr_%s.c' % (s.get_dir(), base)) - result.append('%s/tdr_%s.h' % (s.get_dir(), base)) - result.append('%s/%s.h' % (s.get_dir(), base)) - return result, source - -tdr_builder = SCons.Builder.Builder(action='$TDRCOM', - emitter = tdr_emitter, - src_suffix = '.idl', - single_source = True, - scanner = idl_scanner) - -def generate(env): - env['PIDL'] = env.WhereIs('pidl', ['pidl']) - env['NDRFLAGS'] = ['--outputdir', 'librpc/gen_ndr','--ndr-header', '--ndr-parser','--header'] - env['TDRFLAGS'] = ['--tdr-parser', '--tdr-header','--header'] - env['NDRCOM'] = '$PIDL $NDRFLAGS -- $SOURCES' - env['TDRCOM'] = 'cd ${SOURCE.dir} && $PIDL $TDRFLAGS -- ${SOURCE.file}' - env['BUILDERS']['NdrMarshaller'] = ndr_builder - env['BUILDERS']['TdrMarshaller'] = tdr_builder - -def exists(env): - return env.WhereIs('pidl', ['pidl']) diff --git a/source4/build/scons/pkgconfig.py b/source4/build/scons/pkgconfig.py deleted file mode 100644 index 6a0c82fd35..0000000000 --- a/source4/build/scons/pkgconfig.py +++ /dev/null @@ -1,13 +0,0 @@ -# Based on the examples from the scons wiki - -def CheckPKGConfig(context, version): - context.Message('Checking for pkg-config... ') - ret = context.TryAction('pkg-config --atleast-pkgconfig-version=%s' % version)[0] - context.Result(ret) - return ret - -def CheckPackage(context, name): - context.Message('Checking for %s... ' % name) - ret = context.TryAction('pkg-config --exists \'%s\'' % name)[0] - context.Result(ret) - return ret diff --git a/source4/build/scons/proto.py b/source4/build/scons/proto.py deleted file mode 100644 index ef9d1d11b2..0000000000 --- a/source4/build/scons/proto.py +++ /dev/null @@ -1,20 +0,0 @@ -"""SCons.Tool.proto - -Tool-specific initialization for mkproto (C Proto File generator) - -""" - -import SCons.Defaults -import SCons.Util - -proto_builder = SCons.Builder.Builder(action='$PROTOCOM', - src_suffix = '.c', - suffix='.h') - -def generate(env): - env['MKPROTO'] = './script/mkproto.sh' - env['PROTOCOM'] = '$MKPROTO "$PERL" ${TARGETS[0]} $SOURCES' - env['BUILDERS']['CProtoHeader'] = proto_builder - -def exists(env): - return env.Detect('./script/mkproto.sh') diff --git a/source4/build/scons/samba.py b/source4/build/scons/samba.py deleted file mode 100644 index 949be1c41a..0000000000 --- a/source4/build/scons/samba.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/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