diff options
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') - - |