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 | 4ef08f4ff1914f6a8cf79fde2c105753885a8bfd (patch) | |
tree | c5dabe3f08e703324e118b91017875b6c22d4168 /src/engine/SCons/Tool/midl.py | |
parent | f424fc07e9aed44d3f5df0a14d4b44081c806ff1 (diff) | |
download | SCons-4ef08f4ff1914f6a8cf79fde2c105753885a8bfd.zip SCons-4ef08f4ff1914f6a8cf79fde2c105753885a8bfd.tar.gz SCons-4ef08f4ff1914f6a8cf79fde2c105753885a8bfd.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') + + |