diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-12-13 16:25:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:47:18 -0500 |
commit | 265b0c6a312d9bc70c651e51a93e26f01b4fff9c (patch) | |
tree | 4cbbd52508df610c660703b9a1b7a56074ebe656 /source4/build/scons/pidl.py | |
parent | 12354cbe919a0f00ecf648a0878782d0a96a748e (diff) | |
download | samba-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/scons/pidl.py')
-rw-r--r-- | source4/build/scons/pidl.py | 52 |
1 files changed, 0 insertions, 52 deletions
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']) |