summaryrefslogtreecommitdiff
path: root/msvc-build-launcher.cmd
diff options
context:
space:
mode:
authoragronholm <devnull@localhost>2009-09-25 22:01:27 +0300
committeragronholm <devnull@localhost>2009-09-25 22:01:27 +0300
commit6970c436dada5e70b212e534560422d65e0e63c1 (patch)
treec898087a0a0b29c61acad2f3f9e20ecb59201707 /msvc-build-launcher.cmd
parent28167d04dc3863a7c2f42697a5aefc7a7702afa0 (diff)
downloadpython-setuptools-bitbucket-6970c436dada5e70b212e534560422d65e0e63c1.tar.gz
Fix script launcher creation on 64-bit Windows, patch by Jason R. Coombs (http://bugs.python.org/setuptools/issue2)
Diffstat (limited to 'msvc-build-launcher.cmd')
-rw-r--r--msvc-build-launcher.cmd15
1 files changed, 15 insertions, 0 deletions
diff --git a/msvc-build-launcher.cmd b/msvc-build-launcher.cmd
new file mode 100644
index 00000000..3666d723
--- /dev/null
+++ b/msvc-build-launcher.cmd
@@ -0,0 +1,15 @@
+@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 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
+
+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