summaryrefslogtreecommitdiffstats
path: root/etc/TestSCons.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2006-02-12 19:56:03 (GMT)
committerSteven Knight <knight@baldmt.com>2006-02-12 19:56:03 (GMT)
commitcb3d0d67affebe678a5ea2b15500d54b0eba25a3 (patch)
tree56208f374c81c91b572cd0fc3cf28223ef80a732 /etc/TestSCons.py
parente12ccf2b9d0e046ff6c4d433d1d093e945e71d33 (diff)
downloadSCons-cb3d0d67affebe678a5ea2b15500d54b0eba25a3.zip
SCons-cb3d0d67affebe678a5ea2b15500d54b0eba25a3.tar.gz
SCons-cb3d0d67affebe678a5ea2b15500d54b0eba25a3.tar.bz2
Add support for Visual Studio 2005 Professional. Windows portability fixes for various tests. (Baptiste Lepilleur)
Diffstat (limited to 'etc/TestSCons.py')
-rw-r--r--etc/TestSCons.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/TestSCons.py b/etc/TestSCons.py
index 87eadfb..49e8da6 100644
--- a/etc/TestSCons.py
+++ b/etc/TestSCons.py
@@ -505,6 +505,20 @@ print "self._msvs_versions =", str(env['MSVS']['VERSIONS'])
result = string.replace(result, r'<PROJECT_GUID>', project_guid)
return result
+ def get_msvs_executable(self, version):
+ """Returns a full path to the executable (MSDEV or devenv)
+ for the specified version of Visual Studio.
+ """
+ sub_path = {
+ '6.0' : ['Common', 'MSDev98', 'Bin', 'MSDEV.COM'],
+ '7.0' : ['Common7', 'IDE', 'devenv.com'],
+ '7.1' : ['Common7', 'IDE', 'devenv.com'],
+ '8.0' : ['Common7', 'IDE', 'devenv.com'],
+ }
+ from SCons.Tool.msvs import get_msvs_install_dirs
+ vs_path = get_msvs_install_dirs(version)['VSINSTALLDIR']
+ return apply(os.path.join, [vs_path] + sub_path[version])
+
# In some environments, $AR will generate a warning message to stderr
# if the library doesn't previously exist and is being created. One
# way to fix this is to tell AR to be quiet (sometimes the 'c' flag),