summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-12-13 16:25:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:18 -0500
commit265b0c6a312d9bc70c651e51a93e26f01b4fff9c (patch)
tree4cbbd52508df610c660703b9a1b7a56074ebe656 /source4/build
parent12354cbe919a0f00ecf648a0878782d0a96a748e (diff)
downloadsamba-265b0c6a312d9bc70c651e51a93e26f01b4fff9c.tar.gz
samba-265b0c6a312d9bc70c651e51a93e26f01b4fff9c.tar.bz2
samba-265b0c6a312d9bc70c651e51a93e26f01b4fff9c.zip
r12208: Remove obsolete scons directory
(This used to be commit e90abfcc7d84d0cae566ecf395dbef4b927de0f9)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/scons/asn1.py36
-rw-r--r--source4/build/scons/et.py21
-rw-r--r--source4/build/scons/fallback.py34
-rw-r--r--source4/build/scons/pidl.py52
-rw-r--r--source4/build/scons/pkgconfig.py13
-rw-r--r--source4/build/scons/proto.py20
-rw-r--r--source4/build/scons/samba.py34
7 files changed, 0 insertions, 210 deletions
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 <jelmer@samba.org>
-
-# 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