Build windows breakpad libs as part of pre-setup like linux

This commit is contained in:
Asher Baker 2018-07-19 17:24:25 +01:00
parent 67b3972469
commit 08c991129d
2 changed files with 12 additions and 27 deletions

View File

@ -18,4 +18,15 @@ IF EXIST gyp\NUL GOTO HASGYP
git clone --depth=1 --branch=master https://chromium.googlesource.com/external/gyp.git gyp
:HASGYP
cd ..
IF EXIST build\NUL GOTO HASBUILD
mkdir build
:HASBUILD
cd build
..\gyp\gyp.bat --no-circular-check ..\src\src\client\windows\handler\exception_handler.gyp
msbuild ..\src\src\client\windows\handler\exception_handler.sln /m /p:Configuration=Release
..\gyp\gyp.bat --no-circular-check ..\src\src\client\windows\crash_generation\crash_generation.gyp
msbuild ..\src\src\client\windows\crash_generation\crash_generation.sln /m /p:Configuration=Release
cd ..\..

View File

@ -9,32 +9,6 @@ def BuildEverything():
if AMBuild.target['platform'] not in ['linux', 'windows']:
return
if AMBuild.target['platform'] in ['windows']:
BuildBreakpad()
BuildExtension();
def BuildBreakpad():
breakpad = AMBuild.AddJob('breakpad')
if osutil.FileExists(os.path.join(AMBuild.sourceFolder, 'breakpad', 'src', 'client', 'windows', 'handler', 'Release', 'lib', 'exception_handler.lib')):
return
gyp = os.path.join(AMBuild.sourceFolder, 'breakpad', 'gyp', 'gyp.bat')
gyppath = os.path.join(AMBuild.sourceFolder, 'breakpad', 'src', 'src', 'client', 'windows', 'handler', 'exception_handler.gyp')
breakpad.AddCommand(DirectCommand([gyp, '--no-circular-check', gyppath]))
slnpath = os.path.join(AMBuild.sourceFolder, 'breakpad', 'src', 'src', 'client', 'windows', 'handler', 'exception_handler.sln')
breakpad.AddCommand(DirectCommand(['msbuild', slnpath, '/p:Configuration=Release']))
gyppath = os.path.join(AMBuild.sourceFolder, 'breakpad', 'src', 'src', 'client', 'windows', 'crash_generation', 'crash_generation.gyp')
breakpad.AddCommand(DirectCommand([gyp, '--no-circular-check', gyppath]))
slnpath = os.path.join(AMBuild.sourceFolder, 'breakpad', 'src', 'src', 'client', 'windows', 'crash_generation', 'crash_generation.sln')
breakpad.AddCommand(DirectCommand(['msbuild', slnpath, '/p:Configuration=Release']))
def BuildExtension():
compiler = SM.DefaultCompiler()
compiler['CXXINCLUDES'].append(os.path.join(AMBuild.sourceFolder, 'extension'))