2018-07-19 18:33:19 +02:00
|
|
|
@echo on
|
|
|
|
|
2019-01-05 02:57:01 +01:00
|
|
|
IF EXIST C:\Python27\NUL SET PATH=C:\Python27\;%PATH%
|
|
|
|
|
|
|
|
python --version
|
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
|
|
|
|
|
|
|
@IF EXIST breakpad\NUL GOTO HASBREAKPAD
|
2016-01-14 13:43:08 +01:00
|
|
|
mkdir breakpad
|
|
|
|
:HASBREAKPAD
|
|
|
|
cd breakpad
|
|
|
|
|
2019-01-05 02:57:01 +01:00
|
|
|
@IF EXIST depot_tools\NUL GOTO HASDEPOTTOOLS
|
2016-01-14 13:43:08 +01:00
|
|
|
git clone --depth=1 --branch=master https://chromium.googlesource.com/chromium/tools/depot_tools.git depot_tools
|
2019-01-05 02:57:01 +01:00
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
2016-01-14 13:43:08 +01:00
|
|
|
:HASDEPOTTOOLS
|
|
|
|
|
2019-01-05 02:57:01 +01:00
|
|
|
@IF EXIST src\NUL GOTO HASSRC
|
2016-02-14 15:40:01 +01:00
|
|
|
cmd /c depot_tools\fetch --nohooks breakpad
|
2019-01-05 02:57:01 +01:00
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
2016-01-14 13:43:08 +01:00
|
|
|
GOTO DONESRC
|
|
|
|
:HASSRC
|
2019-01-13 13:55:39 +01:00
|
|
|
git -C src checkout origin/master
|
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
2016-02-14 15:40:01 +01:00
|
|
|
cmd /c depot_tools\gclient sync --nohooks
|
2019-01-05 02:57:01 +01:00
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
2016-01-14 13:43:08 +01:00
|
|
|
:DONESRC
|
|
|
|
|
2019-01-13 14:05:38 +01:00
|
|
|
cd src
|
|
|
|
git config user.name patches
|
|
|
|
git config user.email patches@localhost
|
|
|
|
git am -3 ../../patches/*.patch
|
2019-01-13 13:55:39 +01:00
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
2019-01-13 14:05:38 +01:00
|
|
|
cd ..
|
2019-01-13 13:55:39 +01:00
|
|
|
|
2019-01-05 02:57:01 +01:00
|
|
|
@IF EXIST gyp\NUL GOTO HASGYP
|
2016-01-14 13:43:08 +01:00
|
|
|
git clone --depth=1 --branch=master https://chromium.googlesource.com/external/gyp.git gyp
|
2019-01-05 02:57:01 +01:00
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
2016-01-14 13:43:08 +01:00
|
|
|
:HASGYP
|
|
|
|
|
2018-07-19 18:33:19 +02:00
|
|
|
powershell -Command "& {(Get-Content src\src\build\common.gypi).replace('''WarnAsError'': ''true'',', '''WarnAsError'': ''false'',') | Set-Content src\src\build\common.gypi}"
|
2019-01-05 02:57:01 +01:00
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
2018-07-19 18:33:19 +02:00
|
|
|
|
|
|
|
cmd /c gyp\gyp.bat --no-circular-check src\src\client\windows\handler\exception_handler.gyp
|
2019-01-05 02:57:01 +01:00
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
|
|
|
msbuild src\src\client\windows\handler\exception_handler.sln /m /p:Configuration=Release /p:Platform=Win32
|
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
2018-07-19 18:24:25 +02:00
|
|
|
|
2018-07-19 18:33:19 +02:00
|
|
|
cmd /c gyp\gyp.bat --no-circular-check src\src\client\windows\crash_generation\crash_generation.gyp
|
2019-01-05 02:57:01 +01:00
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
|
|
|
msbuild src\src\client\windows\crash_generation\crash_generation.sln /m /p:Configuration=Release /p:Platform=Win32
|
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
2018-07-19 18:24:25 +02:00
|
|
|
|
2018-07-19 18:33:19 +02:00
|
|
|
cmd /c gyp\gyp.bat --no-circular-check src\src\processor\processor.gyp
|
2019-01-05 02:57:01 +01:00
|
|
|
IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
|
|
|
@REM msbuild src\src\processor\processor.sln /m /p:Configuration=Release /p:Platform=Win32
|
|
|
|
@REM IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
|
|
|
@REM The solution file is currently including a load of broken projects, so just build exactly what we need.
|
|
|
|
msbuild src\src\processor\processor.vcxproj /m /p:Configuration=Release /p:Platform=Win32
|
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
|
|
|
msbuild src\src\third_party\libdisasm\libdisasm.vcxproj /m /p:Configuration=Release /p:Platform=Win32
|
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
2018-07-19 18:24:25 +02:00
|
|
|
|
2018-07-21 15:33:16 +02:00
|
|
|
cmd /c gyp\gyp.bat --no-circular-check src\src\tools\windows\dump_syms\dump_syms.gyp
|
2019-01-05 02:57:01 +01:00
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
|
|
|
msbuild src\src\tools\windows\dump_syms\dump_syms.sln /m /p:Configuration=Release /p:Platform=Win32
|
|
|
|
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
|
2018-07-21 15:33:16 +02:00
|
|
|
|
2018-07-19 18:33:19 +02:00
|
|
|
cd ..
|