diff options
author | Steven Knight <knight@baldmt.com> | 2004-05-08 23:00:41 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-05-08 23:00:41 (GMT) |
commit | 726fb30a6bf97ec2bc59c630f8291a990050cb13 (patch) | |
tree | c5dabe3f08e703324e118b91017875b6c22d4168 /src/engine/SCons/Tool/midl.py | |
parent | 0d0ce94069ac7a1d7ca8f3e1cb9528074d8fee23 (diff) | |
download | SCons-726fb30a6bf97ec2bc59c630f8291a990050cb13.zip SCons-726fb30a6bf97ec2bc59c630f8291a990050cb13.tar.gz SCons-726fb30a6bf97ec2bc59c630f8291a990050cb13.tar.bz2 |
Better midl (Visual Studio MIDL compiler) Tool detection. (Anthony Roach)
Diffstat (limited to 'src/engine/SCons/Tool/midl.py')
-rw-r--r-- | src/engine/SCons/Tool/midl.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/midl.py b/src/engine/SCons/Tool/midl.py index 2efabcc..d02f23a 100644 --- a/src/engine/SCons/Tool/midl.py +++ b/src/engine/SCons/Tool/midl.py @@ -38,6 +38,7 @@ import os.path import SCons.Defaults import SCons.Scanner.IDL import SCons.Util +import SCons.Tool.msvs def midl_emitter(target, source, env): """Produces a list of outputs from the MIDL compiler""" @@ -69,4 +70,10 @@ def generate(env): env['BUILDERS']['TypeLibrary'] = midl_builder def exists(env): - return env.Detect('midl') + if SCons.Tool.msvs.is_msvs_installed(): + # there's at least one version of MSVS installed, which comes with midl: + return 1 + else: + return env.Detect('midl') + + |