osb/scripts/gitlab-ci/windows/build.bat

33 lines
835 B
Batchfile
Raw Normal View History

2023-06-20 04:33:09 +00:00
set QT_PREFIX_PATH="C:\Qt\5.7\msvc2015_64"
set CMAKE_PREFIX_PATH="C:\Program Files\CMake"
set PATH=%PATH%;%CMAKE_PREFIX_PATH%\bin;%QT_PREFIX_PATH%\bin
mkdir build
cd build || exit /b 1
del /f CMakeCache.txt
cmake.exe ^
2023-06-20 04:35:39 +00:00
-G"Visual Studio 17 2022" ^
-T"v143" ^
2023-06-20 04:33:09 +00:00
-DCMAKE_PREFIX_PATH=%QT_PREFIX_PATH% ^
-DSTAR_USE_JEMALLOC=OFF ^
-DSTAR_ENABLE_STEAM_INTEGRATION=ON ^
-DSTAR_ENABLE_DISCORD_INTEGRATION=ON ^
2023-06-20 04:35:39 +00:00
-DSTAR_BUILD_QT_TOOLS=OFF ^
2023-06-30 22:39:38 +00:00
-DCMAKE_INCLUDE_PATH="..\lib\windows\include" ^
-DCMAKE_LIBRARY_PATH="..\lib\windows" ^
2023-06-20 04:33:09 +00:00
..\source || exit /b 1
cmake.exe --build . --config RelWithDebInfo || exit /b 1
cd ..
2023-06-30 22:39:38 +00:00
move dist windows_binaries || exit /b 1
2023-06-20 04:33:09 +00:00
2023-06-30 22:39:38 +00:00
if exist windows_binaries\mod_uploader.exe (
windeployqt.exe windows_binaries\mod_uploader.exe || exit /b 1
2023-06-20 04:35:39 +00:00
)
2023-06-20 04:33:09 +00:00
2023-06-30 22:39:38 +00:00
copy lib\windows\*.dll windows_binaries\ || exit /b 1