diff options
Diffstat (limited to 'site_scons')
-rwxr-xr-x | site_scons/site_tools/idl_tool.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/site_scons/site_tools/idl_tool.py b/site_scons/site_tools/idl_tool.py index 6584c797773..9606ce0c405 100755 --- a/site_scons/site_tools/idl_tool.py +++ b/site_scons/site_tools/idl_tool.py @@ -37,13 +37,6 @@ def idlc_emitter(target, source, env): IDLCAction = SCons.Action.Action('$IDLCCOM', '$IDLCCOMSTR') -# TODO: create a scanner for imports when imports are implemented -IDLCBuilder = SCons.Builder.Builder( - action=IDLCAction, - emitter=idlc_emitter, - srcsuffx=".idl", - suffix=".cpp" - ) def idl_scanner(node, env, path): # Use the import scanner mode of the IDL compiler to file imported files @@ -58,8 +51,19 @@ def idl_scanner(node, env, path): return nodes_deps_list + idl_scanner = SCons.Scanner.Scanner(function=idl_scanner, skeys=['.idl']) +# TODO: create a scanner for imports when imports are implemented +IDLCBuilder = SCons.Builder.Builder( + action=IDLCAction, + emitter=idlc_emitter, + srcsuffx=".idl", + suffix=".cpp", + source_scanner = idl_scanner + ) + + def generate(env): bld = IDLCBuilder |