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 ...@@ -4,8 +4,9 @@ SETLOCAL
SET VCVARSALL="C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" 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" 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%" == "AMD64" GOTO ARCH_AMD64
IF /I "%PROCESSOR_ARCHITECTURE%" == "x86" GOTO ARCH_X86
ECHO. ECHO.
ECHO Failed to build, unknown architecture: %PROCESSOR_ARCHITECTURE% ECHO Failed to build, unknown architecture: %PROCESSOR_ARCHITECTURE%
...@@ -13,8 +14,8 @@ ECHO. ...@@ -13,8 +14,8 @@ ECHO.
GOTO END GOTO END
:ARCH_X86 :ARCH_X86
IF EXIST %VCVARSALL%. ( IF EXIST %VCVARSALL%. (
CALL %VCVARSALL% CALL %VCVARSALL%
cl /D"UNICODE" /D"_UNICODE" ipwin.cpp netcfg.cpp setupapi.lib iphlpapi.lib advapi32.lib cl /D"UNICODE" /D"_UNICODE" ipwin.cpp netcfg.cpp setupapi.lib iphlpapi.lib advapi32.lib
GOTO END ) GOTO END )
...@@ -27,10 +28,10 @@ ECHO. ...@@ -27,10 +28,10 @@ ECHO.
GOTO END GOTO END
:ARCH_AMD64 :ARCH_AMD64
IF EXIST %SETENV%. ( IF EXIST %SETENV%. (
SETLOCAL ENABLEDELAYEDEXPANSION SETLOCAL ENABLEDELAYEDEXPANSION
SETLOCAL ENABLEDELAYEDEXPANSION SETLOCAL ENABLEDELAYEDEXPANSION
CALL %SETENV% CALL %SETENV%
cl /D"UNICODE" /D"_UNICODE" ipwin.cpp netcfg.cpp setupapi.lib iphlpapi.lib advapi32.lib cl /D"UNICODE" /D"_UNICODE" ipwin.cpp netcfg.cpp setupapi.lib iphlpapi.lib advapi32.lib
GOTO END ) 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