-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathbuild.bat
More file actions
34 lines (24 loc) · 1.66 KB
/
Copy pathbuild.bat
File metadata and controls
34 lines (24 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
setlocal enabledelayedexpansion
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64 || exit /b !errorlevel!
set PREFIX=C:\deps
set CMAKE_PREFIX_PATH=C:\deps;C:\depends\windows-x86_64
lib /def:C:\depends\windows-x86_64\bin\libgreen_gdk.def /out:C:\depends\windows-x86_64\lib\libgreen_gdk.lib /machine:x64 || exit /b !errorlevel!
lib /def:C:\depends\windows-x86_64\bin\libserialport-0.def /out:C:\depends\windows-x86_64\lib\libserialport-0.lib /machine:x64 || exit /b !errorlevel!
if /i "%CI_COMMIT_REF_NAME:~0,8%"=="release_" (
set "GREEN_ENV=Production"
) else (
set "GREEN_ENV=Testing"
set "GREEN_BUILD_ID=-%CI_COMMIT_SHORT_SHA%"
)
cd /d C:\src || exit /b !errorlevel!
call C:\qt\6.11.1\msvc2022_64\bin\qt-cmake --preset ci-windows || exit /b !errorlevel!
cmake --build C:\src\bld --config RelWithDebInfo --parallel 4 || exit /b !errorlevel!
C:\qt\6.11.1\msvc2022_64\bin\windeployqt.exe --qmldir C:\src\qml C:\src\bld\RelWithDebInfo\blockstream.exe || exit /b !errorlevel!
copy C:\depends\windows-x86_64\bin\libgreen_gdk.dll C:\src\bld\RelWithDebInfo\ || exit /b !errorlevel!
copy C:\depends\windows-x86_64\bin\libserialport-0.dll C:\src\bld\RelWithDebInfo\ || exit /b !errorlevel!
REM sentry-native crashpad backend handler + WER module, shipped next to blockstream.exe.
REM crashpad_wer.dll lets crashpad capture fast-fail/non-SEH crashes (abort, heap
REM corruption, 0xC0000409); sentry-native auto-registers it from the handler's dir.
copy C:\deps\bin\crashpad_handler.exe C:\src\bld\RelWithDebInfo\ || exit /b !errorlevel!
copy C:\deps\bin\crashpad_wer.dll C:\src\bld\RelWithDebInfo\ || exit /b !errorlevel!
endlocal