Created
June 1, 2011 19:40
-
-
Save sdwilsh/1003118 to your computer and use it in GitHub Desktop.
Script used to be a buildslave (x86-64)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET MOZBUILDDIR=c:\mozilla-build\ | |
@echo off | |
SET MOZ_MSVCVERSION=9 | |
SET MOZILLABUILD=%MOZBUILDDIR% | |
echo "Mozilla tools directory: %MOZBUILDDIR%" | |
REM Get MSVC paths | |
call "%MOZBUILDDIR%guess-msvc.bat" | |
REM Use the "new" moztools-static | |
set MOZ_TOOLS=%MOZBUILDDIR%moztools-x64 | |
rem append moztools to PATH | |
SET PATH=%PATH%;%MOZ_TOOLS%\bin | |
SET PATH=%PATH%;%MOZBUILDDIR%\msys\bin | |
SET PATH=%PATH%;c:\Program Files (x86)\Git\bin | |
if "%VC9DIR%"=="" ( | |
if "%VC9EXPRESSDIR%"=="" ( | |
ECHO "Microsoft Visual C++ version 9 (2008) was not found. Exiting." | |
pause | |
EXIT /B 1 | |
) | |
if "%SDKDIR%"=="" ( | |
ECHO "Microsoft Platform SDK was not found. Exiting." | |
pause | |
EXIT /B 1 | |
) | |
rem Prepend MSVC paths | |
call "%VC9EXPRESSDIR%\Bin\amd64\vcvarsamd64.bat" | |
rem Don't set SDK paths in this block, because blocks are early-evaluated. | |
rem Fix problem with VC++Express Edition | |
if "%SDKVER%" GEQ "6" ( | |
rem SDK Ver.6.0 (Windows Vista SDK) and newer | |
rem do not contain ATL header files. | |
rem We need to use the Platform SDK's ATL header files. | |
SET USEPSDKATL=1 | |
) | |
rem SDK ver.6.0 does not contain OleAcc.idl | |
rem We need to use the Platform SDK's OleAcc.idl | |
if "%SDKVER%" == "6" ( | |
if "%SDKMINORVER%" == "0" ( | |
SET USEPSDKIDL=1 | |
) | |
) | |
) else ( | |
rem Prepend MSVC paths | |
rem If the SDK is Win2k8, we want to use it. | |
rem The Win7 SDK (or newer) should automatically integrate itself into vcvars32.bat | |
if "%SDKVER%" == "6" ( | |
if "%SDKMINORVER%" == "1" ( | |
SET USESDK=1 | |
) | |
) | |
if "%USESDK%" == "0" ( | |
ECHO Using VC 2008 built-in SDK | |
) | |
call "%VC9DIR%\Bin\amd64\vcvarsamd64.bat" | |
) | |
if "%VC9DIR%"=="" ( | |
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 | |
set "PATH=%SDKDIR%\bin\x64;%SDKDIR%\bin;%PATH%" | |
set "LIB=%SDKDIR%\lib\x64;%SDKDIR%\lib;%LIB%;%MOZBUILDDIR%atlthunk_compat" | |
if "%USEPSDKATL%"=="1" ( | |
if "%USEPSDKIDL%"=="1" ( | |
set "INCLUDE=%SDKDIR%\include;%PSDKDIR%\include\atl;%PSDKDIR%\include;%INCLUDE%" | |
) else ( | |
set "INCLUDE=%SDKDIR%\include;%PSDKDIR%\include\atl;%INCLUDE%" | |
) | |
) else ( | |
if "%USEPSDKIDL%"=="1" ( | |
set "INCLUDE=%SDKDIR%\include;%SDKDIR%\include\atl;%PSDKDIR%\include;%INCLUDE%" | |
) else ( | |
set "INCLUDE=%SDKDIR%\include;%SDKDIR%\include\atl;%INCLUDE%" | |
) | |
) | |
) | |
"%MOZILLABUILD%msys\bin\bash" -l -c "/c/mozilla-build/python/Scripts/buildslave start /c/slaves/slave3/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment