Signed-off-by: Aleksandr Popovich <alekpopo@pm.me> Signed-off-by: swurl <swurl@swurl.xyz> Reviewed-on: #118 Co-authored-by: Aleksandr Popovich <alekpopo@pm.me> Co-authored-by: swurl <swurl@swurl.xyz> Co-committed-by: Aleksandr Popovich <alekpopo@pm.me>
26 lines
586 B
Batchfile
Executable file
26 lines
586 B
Batchfile
Executable file
@echo off
|
|
|
|
set chain=%1
|
|
set qt_ver=%2
|
|
|
|
if not defined DevEnvDir (
|
|
CALL "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" %chain%
|
|
)
|
|
|
|
CALL mkdir build
|
|
|
|
CALL cmake -S . -B build\%chain% ^
|
|
-DCMAKE_BUILD_TYPE=Release ^
|
|
-DENABLE_QT_TRANSLATION=ON ^
|
|
-DUSE_DISCORD_PRESENCE=ON ^
|
|
-DYUZU_USE_BUNDLED_QT=OFF ^
|
|
-DYUZU_USE_QT_MULTIMEDIA=ON ^
|
|
-DYUZU_USE_QT_WEB_ENGINE=ON ^
|
|
-DYUZU_USE_BUNDLED_VCPKG=ON ^
|
|
-DYUZU_USE_BUNDLED_SDL2=ON ^
|
|
-DYUZU_ENABLE_LTO=ON ^
|
|
-G "Ninja" ^
|
|
-DYUZU_TESTS=OFF ^
|
|
-DQt6_DIR=C:\Qt\%qt_ver%\msvc2022_64
|
|
|
|
CALL cmake --build build\%chain%
|