зеркало из https://github.com/mozilla/pjs.git
bug 291557 - update MozillaBuild to allow use of newer Platform SDKs with VC8. r=bsmedberg
This commit is contained in:
Родитель
d26a5c1574
Коммит
a0accfbc21
|
@ -73,10 +73,14 @@ SET SDK2003SP1KEY=%SDKROOTKEY%\8F9E5EF3-A9A5-491B-A889-C58EFFECE8B3
|
|||
SET SDK2003SP2KEY=%SDKROOTKEY%\D2FF9F89-8AA2-4373-8A31-C838BF4DBBE1
|
||||
SET SDK6KEY=HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0\WinSDKBuild
|
||||
|
||||
REM Just a base value to compare against
|
||||
SET SDKVER=0
|
||||
|
||||
REG QUERY "%SDK6KEY%" /v InstallationFolder >nul 2>nul
|
||||
if "%SDKDIR%"=="" (
|
||||
IF %ERRORLEVEL% EQU 0 (
|
||||
FOR /F "tokens=2* usebackq delims= " %%A IN (`REG QUERY "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0\WinSDKBuild" /v InstallationFolder`) DO SET SDKDIR=%%B
|
||||
SET SDKVER=6
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -84,6 +88,8 @@ REG QUERY "%SDK2003SP2KEY%" /v "Install Dir" >nul 2>nul
|
|||
if "%SDKDIR%"=="" (
|
||||
IF %ERRORLEVEL% EQU 0 (
|
||||
FOR /F "tokens=3* delims= " %%A IN ('REG QUERY "%SDK2003SP2KEY%" /v "Install Dir"') DO SET SDKDIR=%%B
|
||||
REM arbitrary, but works for me
|
||||
SET SDKVER=5
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -91,6 +97,7 @@ REG QUERY "%SDK2003SP1KEY%" /v "Install Dir" >nul 2>nul
|
|||
if "%SDKDIR%"=="" (
|
||||
IF %ERRORLEVEL% EQU 0 (
|
||||
FOR /F "tokens=3* delims= " %%A IN ('REG QUERY "%SDK2003SP1KEY%" /v "Install Dir"') DO SET SDKDIR=%%B
|
||||
SET SDKVER=4
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -101,3 +108,4 @@ ECHO Visual C++ 8 Express directory: %VC8EXPRESSDIR%
|
|||
ECHO Visual C++ 9 directory: %VC9DIR%
|
||||
ECHO Visual C++ 9 Express directory: %VC9EXPRESSDIR%
|
||||
ECHO SDK directory: %SDKDIR%
|
||||
ECHO SDK version: %SDKVER%
|
||||
|
|
|
@ -33,13 +33,19 @@ if "%VC8DIR%"=="" (
|
|||
rem Prepend MSVC paths
|
||||
call "%VC8EXPRESSDIR%\Bin\vcvars32.bat"
|
||||
|
||||
SET USESDK=1
|
||||
rem Don't set SDK paths in this block, because blocks are early-evaluated.
|
||||
) else (
|
||||
rem Prepend MSVC paths
|
||||
call "%VC8DIR%\Bin\vcvars32.bat"
|
||||
|
||||
rem If the SDK is Win2k3SP2 or higher, we want to use it
|
||||
if %SDKVER% GEQ 5 (
|
||||
SET USESDK=1
|
||||
)
|
||||
)
|
||||
|
||||
if "%VC8DIR%"=="" (
|
||||
if "%USESDK%"=="1" (
|
||||
rem Prepend SDK paths - Don't use the SDK SetEnv.cmd because it pulls in
|
||||
rem random VC paths which we don't want.
|
||||
rem Add the atlthunk compat library to the end of our LIB
|
||||
|
|
Загрузка…
Ссылка в новой задаче