osb/scripts/windows/setup64.bat

51 lines
1.0 KiB
Batchfile
Raw Normal View History

2023-06-20 04:33:09 +00:00
cd /d %~dp0
cd ..\..
mkdir dist
del dist\*.dll
copy lib\windows64\*.dll dist\
copy scripts\windows\sbinit.config dist\
mkdir build
cd build
2023-06-20 07:20:08 +00:00
del /f CMakeCache.txt
2023-06-20 04:33:09 +00:00
if exist "C:\Program Files (x86)\CMake\bin" (
set CMAKE_EXE_PATH="C:\Program Files (x86)\CMake\bin"
) else (
set CMAKE_EXE_PATH="C:\Program Files\CMake\bin"
)
set QT_PREFIX_PATH=C:\Qt\5.6\msvc2015_64
if exist %QT_PREFIX_PATH% (
%CMAKE_EXE_PATH%\cmake.exe ^
2023-06-20 07:20:08 +00:00
-G"Visual Studio 17 2022" ^
-T"v143" ^
2023-06-20 04:33:09 +00:00
-DCMAKE_PREFIX_PATH=%QT_PREFIX_PATH% ^
2023-06-20 07:20:08 +00:00
-DSTAR_USE_JEMALLOC=OFF ^
-DSTAR_ENABLE_STEAM_INTEGRATION=ON ^
-DSTAR_ENABLE_DISCORD_INTEGRATION=ON ^
2023-06-20 04:33:09 +00:00
-DSTAR_BUILD_QT_TOOLS=ON ^
-DCMAKE_INCLUDE_PATH="..\lib\windows64\include" ^
2023-06-20 07:20:08 +00:00
-DCMAKE_LIBRARY_PATH="..\lib\windows64" ^
..\source
2023-06-20 04:33:09 +00:00
) else (
%CMAKE_EXE_PATH%\cmake.exe ^
2023-06-20 07:20:08 +00:00
-G"Visual Studio 17 2022" ^
-T"v143" ^
-DSTAR_USE_JEMALLOC=OFF ^
-DSTAR_ENABLE_STEAM_INTEGRATION=ON ^
-DSTAR_ENABLE_DISCORD_INTEGRATION=ON ^
2023-06-20 04:33:09 +00:00
-DCMAKE_INCLUDE_PATH="..\lib\windows64\include" ^
2023-06-20 07:20:08 +00:00
-DCMAKE_LIBRARY_PATH="..\lib\windows64" ^
..\source
2023-06-20 04:33:09 +00:00
)
pause