mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r12208: Remove obsolete scons directory
(This used to be commit e90abfcc7d
)
This commit is contained in:
parent
12354cbe91
commit
265b0c6a31
@ -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')
|
@ -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'])
|
@ -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
|
@ -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'])
|
@ -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
|
@ -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')
|
@ -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
|
Loading…
Reference in New Issue
Block a user