Commit 3ed96087 authored by Jondy Zhao's avatar Jondy Zhao

Fix ipwin does not build 64-bit application in windows 7

parent 067ba1ad
......@@ -4,8 +4,9 @@ SETLOCAL
SET VCVARSALL="C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
SET SETENV="C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin\SetEnv.cmd"
IF /I "%PROCESSOR_ARCHITECTURE%" == "x86" GOTO ARCH_X86
IF /I "%PROCESSOR_ARCHITEW6432%" == "AMD64" GOTO ARCH_AMD64
IF /I "%PROCESSOR_ARCHITECTURE%" == "AMD64" GOTO ARCH_AMD64
IF /I "%PROCESSOR_ARCHITECTURE%" == "x86" GOTO ARCH_X86
ECHO.
ECHO Failed to build, unknown architecture: %PROCESSOR_ARCHITECTURE%
......@@ -13,8 +14,8 @@ ECHO.
GOTO END
:ARCH_X86
IF EXIST %VCVARSALL%. (
CALL %VCVARSALL%
IF EXIST %VCVARSALL%. (
CALL %VCVARSALL%
cl /D"UNICODE" /D"_UNICODE" ipwin.cpp netcfg.cpp setupapi.lib iphlpapi.lib advapi32.lib
GOTO END )
......@@ -27,10 +28,10 @@ ECHO.
GOTO END
:ARCH_AMD64
IF EXIST %SETENV%. (
IF EXIST %SETENV%. (
SETLOCAL ENABLEDELAYEDEXPANSION
SETLOCAL ENABLEDELAYEDEXPANSION
CALL %SETENV%
CALL %SETENV%
cl /D"UNICODE" /D"_UNICODE" ipwin.cpp netcfg.cpp setupapi.lib iphlpapi.lib advapi32.lib
GOTO END )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment