diff options
author | Grigory Petrov <grigory.v.p@gmail.com> | 2013-05-08 00:51:13 +0400 |
---|---|---|
committer | Grigory Petrov <grigory.v.p@gmail.com> | 2013-05-08 00:51:13 +0400 |
commit | abc8fccd3d4f1b4df28f53cdf6ab6ce993097573 (patch) | |
tree | 55f8205d5fad850707bbe74190f25b96633df0b8 | |
parent | d8189bb53bbd7b3c38ee6c31844087f100143f51 (diff) | |
download | external_python_setuptools-abc8fccd3d4f1b4df28f53cdf6ab6ce993097573.tar.gz external_python_setuptools-abc8fccd3d4f1b4df28f53cdf6ab6ce993097573.tar.bz2 external_python_setuptools-abc8fccd3d4f1b4df28f53cdf6ab6ce993097573.zip |
Refactoring before introducing Windows RT ARM build.
--HG--
branch : distribute
extra : rebase_source : 96035e75dcfab459652403b1001f34c12205fd7f
-rw-r--r-- | msvc-build-launcher.cmd | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/msvc-build-launcher.cmd b/msvc-build-launcher.cmd index 3666d723..f6d7fcbb 100644 --- a/msvc-build-launcher.cmd +++ b/msvc-build-launcher.cmd @@ -1,15 +1,30 @@ @echo off
REM VCVARSALL may be in Program Files or Program Files (x86)
-PATH=C:\Program Files\Microsoft Visual Studio 9.0\VC;%PATH%
-PATH=C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC;%PATH%
+REM Use old Visual Studio 2008 so created .exe will be compatible with
+REM old Windows versions. Free express edition can be downloaded via:
+REM http://download.microsoft.com/download/8/B/5/8B5804AD-4990-40D0-A6AA-CE894CBBB3DC/VS2008ExpressENUX1397868.iso
+set PATH_OLD=%PATH%
+set PATH=C:\Program Files\Microsoft Visual Studio 9.0\VC;%PATH%
+set PATH=C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC;%PATH%
REM set up the environment to compile to x86
-call VCVARSALL x86
-cl /D "GUI=0" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x86 /out:setuptools/cli-32.exe
-cl /D "GUI=1" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x86 /out:setuptools/gui-32.exe
+call VCVARSALL x86 >nul 2>&1
+if "%ERRORLEVEL%"=="0" (
+ cl /D "GUI=0" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x86 /out:setuptools/cli-32.exe
+ cl /D "GUI=1" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x86 /out:setuptools/gui-32.exe
+) else (
+ echo Visual Studio ^(Express^) 2008 not found to build Windows 32-bit version
+)
REM now for 64-bit
-call VCVARSALL x86_amd64
-cl /D "GUI=0" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x64 /out:setuptools/cli-64.exe
-cl /D "GUI=1" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x64 /out:setuptools/gui-64.exe
\ No newline at end of file +call VCVARSALL x86_amd64 >nul 2>&1
+if "%ERRORLEVEL%"=="0" (
+ cl /D "GUI=0" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x64 /out:setuptools/cli-64.exe
+ cl /D "GUI=1" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x64 /out:setuptools/gui-64.exe
+) else (
+ echo Visual Studio ^(Express^) 2008 not found to build Windows 64-bit version
+)
+
+set PATH=%PATH_OLD%
+
|