Merge pull request #2345 from shihuade/WP8ScriptUpdate

update build script for wp8 under multi-vc version
This commit is contained in:
HaiboZhu 2016-01-24 07:56:23 +08:00
commit 51f3bbdfde

View File

@ -7,25 +7,25 @@ rem Win32-C-Only: AutoBuildForWPAndWindows.bat Win32-Debug-C
rem Win32-ASM: AutoBuildForWPAndWindows.bat Win32-Debug-ASM rem Win32-ASM: AutoBuildForWPAndWindows.bat Win32-Debug-ASM
rem Win64-C-Only: AutoBuildForWPAndWindows.bat Win64-Debug-C rem Win64-C-Only: AutoBuildForWPAndWindows.bat Win64-Debug-C
rem Win64-ASM: AutoBuildForWPAndWindows.bat Win64-Debug-ASM rem Win64-ASM: AutoBuildForWPAndWindows.bat Win64-Debug-ASM
rem ARM-C-Only: AutoBuildForWPAndWindows.bat ARM-Debug-C rem ARM-C-Only(WP8): AutoBuildForWPAndWindows.bat ARM-Debug-C
rem ARM-ASM: AutoBuildForWPAndWindows.bat ARM-Debug-ASM rem ARM-ASM(WP8): AutoBuildForWPAndWindows.bat ARM-Debug-ASM
rem --For release version: rem --For release version:
rem Win32-C-Only: AutoBuildForWPAndWindows.bat Win32-Release-C rem Win32-C-Only: AutoBuildForWPAndWindows.bat Win32-Release-C
rem Win32-ASM: AutoBuildForWPAndWindows.bat Win32-Release-ASM rem Win32-ASM: AutoBuildForWPAndWindows.bat Win32-Release-ASM
rem Win64-C-Only: AutoBuildForWPAndWindows.bat Win64-Release-C rem Win64-C-Only: AutoBuildForWPAndWindows.bat Win64-Release-C
rem Win64-ASM: AutoBuildForWPAndWindows.bat Win64-Release-ASM rem Win64-ASM(WP8): AutoBuildForWPAndWindows.bat Win64-Release-ASM
rem ARM-C-Only: AutoBuildForWPAndWindows.bat ARM-Release-C rem ARM-C-Only(WP8): AutoBuildForWPAndWindows.bat ARM-Release-C
rem ARM-ASM: AutoBuildForWPAndWindows.bat ARM-Release-ASM rem ARM-ASM(WP8): AutoBuildForWPAndWindows.bat ARM-Release-ASM
rem --For debug and release version: rem --For debug and release version:
rem Win32-C-Only: AutoBuildForWPAndWindows.bat Win32-All-C rem Win32-C-Only: AutoBuildForWPAndWindows.bat Win32-All-C
rem Win32-ASM: AutoBuildForWPAndWindows.bat Win32-All-ASM rem Win32-ASM: AutoBuildForWPAndWindows.bat Win32-All-ASM
rem Win64-C-Only: AutoBuildForWPAndWindows.bat Win64-All-C rem Win64-C-Only: AutoBuildForWPAndWindows.bat Win64-All-C
rem Win64-ASM: AutoBuildForWPAndWindows.bat Win64-All-ASM rem Win64-ASM: AutoBuildForWPAndWindows.bat Win64-All-ASM
rem ARM-C-Only: AutoBuildForWPAndWindows.bat ARM-All-C rem ARM-C-Only(WP8): AutoBuildForWPAndWindows.bat ARM-All-C
rem ARM-ASM: AutoBuildForWPAndWindows.bat ARM-All-ASM rem ARM-ASM(WP8): AutoBuildForWPAndWindows.bat ARM-All-ASM
rem --For default: rem --For default:
rem AutoBuildForWPAndWindows.bat rem AutoBuildForWPAndWindows.bat
rem ARM-All-ASM rem ARM-All-ASM(WP8)
rem rem
rem --lib/dll files will be copied to folder .\bin rem --lib/dll files will be copied to folder .\bin
rem --win32 folder bin\i386* rem --win32 folder bin\i386*
@ -46,6 +46,8 @@ rem --more detail, please refer to http://www.mingw.org/
rem rem
rem 2015/03/15 huashi@cisco.com rem 2015/03/15 huashi@cisco.com
rem ************************************************************************************************* rem *************************************************************************************************
set WP8Flag=0
call :BasicSetting call :BasicSetting
call :PathSetting call :PathSetting
call :SetBuildOption %1 call :SetBuildOption %1
@ -112,6 +114,7 @@ goto :EOF
if exist "%VC11Path%" set VCPATH=%VC11Path% if exist "%VC11Path%" set VCPATH=%VC11Path%
if exist "%VC12Path%" set VCPATH=%VC12Path% if exist "%VC12Path%" set VCPATH=%VC12Path%
if exist "%VC14Path%" set VCPATH=%VC14Path% if exist "%VC14Path%" set VCPATH=%VC14Path%
if %WP8Flag%==1 set VCPATH=%VC12Path%
set GasScriptPath=%VCPATH%\bin set GasScriptPath=%VCPATH%\bin
@ -123,7 +126,7 @@ goto :EOF
if "%vArcType%" =="i386" call "%VCPATH%\vcvarsall.bat" x86 if "%vArcType%" =="i386" call "%VCPATH%\vcvarsall.bat" x86
if "%vArcType%" =="x86_64" call "%VCPATH%\vcvarsall.bat" x64 if "%vArcType%" =="x86_64" call "%VCPATH%\vcvarsall.bat" x64
if "%vArcType%" =="arm" call "%VCPATH%\vcvarsall.bat" x86_arm if "%vArcType%" =="arm" call "%VCPATH%\vcvarsall.bat" x86_arm
if "%vArcType%" =="arm" call :WPSetting if %WP8Flag%==1 call :WPSetting
echo PATH is %PATH% echo PATH is %PATH%
echo LIB is %LIB% echo LIB is %LIB%
@ -131,6 +134,8 @@ goto :EOF
:WPSetting :WPSetting
set LIB=%VC12ArmLib01%;%VC12ArmLib02%;%WP8KitLib% set LIB=%VC12ArmLib01%;%VC12ArmLib02%;%WP8KitLib%
echo LIB setting for wp8 is:
echo %LIB%
if not exist "%VC12Path%" ( if not exist "%VC12Path%" (
echo VC12 does not exist, echo VC12 does not exist,
echo ****************************************** echo ******************************************
@ -148,6 +153,7 @@ goto :EOF
set vOSType=msvc-wp set vOSType=msvc-wp
set vEnable64BitFlag=No set vEnable64BitFlag=No
set vASMFlag=Yes set vASMFlag=Yes
set WP8Flag=1
echo default setting echo default setting
) else if "%1"=="Win32-Debug-C" ( ) else if "%1"=="Win32-Debug-C" (
set aConfigurationList=Debug set aConfigurationList=Debug
@ -183,6 +189,7 @@ goto :EOF
set vOSType=msvc-wp set vOSType=msvc-wp
set vEnable64BitFlag=No set vEnable64BitFlag=No
set vASMFlag=No set vASMFlag=No
set WP8Flag=1
echo ARM-Debug-C setting echo ARM-Debug-C setting
) else if "%1"=="ARM-Release-C" ( ) else if "%1"=="ARM-Release-C" (
set aConfigurationList=Debug Release set aConfigurationList=Debug Release
@ -190,6 +197,7 @@ goto :EOF
set vOSType=msvc-wp set vOSType=msvc-wp
set vEnable64BitFlag=No set vEnable64BitFlag=No
set vASMFlag=No set vASMFlag=No
set WP8Flag=1
echo ARM-Release-C setting echo ARM-Release-C setting
) else if "%1"=="Win32-All-C" ( ) else if "%1"=="Win32-All-C" (
set aConfigurationList=Debug Release set aConfigurationList=Debug Release
@ -211,6 +219,7 @@ goto :EOF
set vOSType=msvc-wp set vOSType=msvc-wp
set vEnable64BitFlag=No set vEnable64BitFlag=No
set vASMFlag=No set vASMFlag=No
set WP8Flag=1
echo ARM-All-C setting echo ARM-All-C setting
) else if "%1"=="Win32-Debug-ASM" ( ) else if "%1"=="Win32-Debug-ASM" (
set aConfigurationList=Debug set aConfigurationList=Debug
@ -246,6 +255,7 @@ goto :EOF
set vOSType=msvc-wp set vOSType=msvc-wp
set vEnable64BitFlag=No set vEnable64BitFlag=No
set vASMFlag=Yes set vASMFlag=Yes
set WP8Flag=1
echo ARM-Debug-ASM setting echo ARM-Debug-ASM setting
) else if "%1"=="ARM-Release-ASM" ( ) else if "%1"=="ARM-Release-ASM" (
set aConfigurationList=Release set aConfigurationList=Release
@ -253,6 +263,7 @@ goto :EOF
set vOSType=msvc-wp set vOSType=msvc-wp
set vEnable64BitFlag=No set vEnable64BitFlag=No
set vASMFlag=Yes set vASMFlag=Yes
set WP8Flag=1
echo ARM-Release-ASM setting echo ARM-Release-ASM setting
) else if "%1"=="Win32-All-ASM" ( ) else if "%1"=="Win32-All-ASM" (
set aConfigurationList=Debug Release set aConfigurationList=Debug Release
@ -274,6 +285,7 @@ goto :EOF
set vOSType=msvc-wp set vOSType=msvc-wp
set vEnable64BitFlag=No set vEnable64BitFlag=No
set vASMFlag=Yes set vASMFlag=Yes
set WP8Flag=1
echo ARM-All-ASM setting echo ARM-All-ASM setting
) else ( ) else (
call :help call :help
@ -345,25 +357,25 @@ rem ***********************************************
echo Win32-ASM: AutoBuildForWPAndWindows.bat Win32-Debug-ASM echo Win32-ASM: AutoBuildForWPAndWindows.bat Win32-Debug-ASM
echo Win64-C-Only: AutoBuildForWPAndWindows.bat Win64-Debug-C echo Win64-C-Only: AutoBuildForWPAndWindows.bat Win64-Debug-C
echo Win64-ASM: AutoBuildForWPAndWindows.bat Win64-Debug-ASM echo Win64-ASM: AutoBuildForWPAndWindows.bat Win64-Debug-ASM
echo ARM-C-Only: AutoBuildForWPAndWindows.bat ARM-Debug-C echo ARM-C-Only(WP8): AutoBuildForWPAndWindows.bat ARM-Debug-C
echo ARM-ASM: AutoBuildForWPAndWindows.bat ARM-Debug-ASM echo ARM-ASM(WP8): AutoBuildForWPAndWindows.bat ARM-Debug-ASM
echo --For release version: echo --For release version:
echo Win32-C-Only: AutoBuildForWPAndWindows.bat Win32-Release-C echo Win32-C-Only: AutoBuildForWPAndWindows.bat Win32-Release-C
echo Win32-ASM: AutoBuildForWPAndWindows.bat Win32-Release-ASM echo Win32-ASM: AutoBuildForWPAndWindows.bat Win32-Release-ASM
echo Win64-C-Only: AutoBuildForWPAndWindows.bat Win64-Release-C echo Win64-C-Only: AutoBuildForWPAndWindows.bat Win64-Release-C
echo Win64-ASM: AutoBuildForWPAndWindows.bat Win64-Release-ASM echo Win64-ASM: AutoBuildForWPAndWindows.bat Win64-Release-ASM
echo ARM-C-Only: AutoBuildForWPAndWindows.bat ARM-Release-C echo ARM-C-Only(WP8): AutoBuildForWPAndWindows.bat ARM-Release-C
echo ARM-ASM: AutoBuildForWPAndWindows.bat ARM-Release-ASM echo ARM-ASM(WP8): AutoBuildForWPAndWindows.bat ARM-Release-ASM
echo --For debug and release version: echo --For debug and release version:
echo Win32-C-Only: AutoBuildForWPAndWindows.bat Win32-All-C echo Win32-C-Only: AutoBuildForWPAndWindows.bat Win32-All-C
echo Win32-ASM: AutoBuildForWPAndWindows.bat Win32-All-ASM echo Win32-ASM: AutoBuildForWPAndWindows.bat Win32-All-ASM
echo Win64-C-Only: AutoBuildForWPAndWindows.bat Win64-All-C echo Win64-C-Only: AutoBuildForWPAndWindows.bat Win64-All-C
echo Win64-ASM: AutoBuildForWPAndWindows.bat Win64-All-ASM echo Win64-ASM: AutoBuildForWPAndWindows.bat Win64-All-ASM
echo ARM-C-Only: AutoBuildForWPAndWindows.bat ARM-All-C echo ARM-C-Only(WP8): AutoBuildForWPAndWindows.bat ARM-All-C
echo ARM-ASM: AutoBuildForWPAndWindows.bat ARM-All-ASM echo ARM-ASM(WP8): AutoBuildForWPAndWindows.bat ARM-All-ASM
echo --For default: echo --For default:
echo AutoBuildForWPAndWindows.bat echo AutoBuildForWPAndWindows.bat
echo ARM-All-ASM echo ARM-All-ASM(WP8)
echo ******************************************************************************* echo *******************************************************************************
goto :EOF goto :EOF