diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-09-20 17:49:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:31 -0500 |
commit | 920a627ba814d78a1765a6c1c7209ff29acc6153 (patch) | |
tree | 193937ab55ada69c24f970dc00d722e03980a466 /source4/build/scons/proto.py | |
parent | 5c40f9cd9b59041b3382ec24a1091a60134dd8c5 (diff) | |
download | samba-920a627ba814d78a1765a6c1c7209ff29acc6153.tar.gz samba-920a627ba814d78a1765a6c1c7209ff29acc6153.tar.bz2 samba-920a627ba814d78a1765a6c1c7209ff29acc6153.zip |
r10356: Make the proto generator work with scons
(This used to be commit a2268f1dd441059955bee30cf2a9028656c14099)
Diffstat (limited to 'source4/build/scons/proto.py')
-rw-r--r-- | source4/build/scons/proto.py | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/source4/build/scons/proto.py b/source4/build/scons/proto.py index 6a53bfb4ab..b3255fc7e8 100644 --- a/source4/build/scons/proto.py +++ b/source4/build/scons/proto.py @@ -5,22 +5,16 @@ Tool-specific initialization for mkproto (C Proto File generator) """ import SCons.Defaults -import SCons.Scanner.C import SCons.Util -c_scanner = SCons.Scanner.C.CScan() - proto_builder = SCons.Builder.Builder(action='$PROTOCOM', - src_suffix = '.idl', - suffix='.h', - scanner = c_scanner) + src_suffix = '.c', + suffix='.h') def generate(env): - env['MKPROTO'] = './script/mkproto.sh' - env['PROTOCOM'] = '$MKPROTO "$PERL" -h _PROTO_H_ ${TARGETS[0]} $SOURCE' - env['BUILDERS']['ProtoHeader'] = proto_builder + env['MKPROTO'] = './script/mkproto.sh' + env['PROTOCOM'] = '$MKPROTO "$PERL" -h _PROTO_H_ ${TARGETS[0]} $SOURCE' + env['BUILDERS']['CProtoHeader'] = proto_builder def exists(env): return env.Detect('./script/mkproto.sh') - - |