This commit is contained in:
2026-01-18 21:06:13 -06:00
parent c199a9b42f
commit b3fe941464
9 changed files with 22 additions and 36 deletions

View File

@@ -1,9 +1,7 @@
@echo off
setlocal
REM ================================
REM Configuration
REM ================================
REM config
set BUILD_DIR=build
set CONFIG=Release
@@ -12,22 +10,18 @@ set QT_ROOT=C:\Qt\6.10.1\msvc2022_64
set RTAUDIO_ROOT=C:\rtaudio
set RTMIDI_ROOT=C:\rtmidi
REM ================================
REM Environment setup
REM ================================
REM setup
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
set PATH=%QT_ROOT%\bin;%PATH%
REM ================================
REM Configure
REM ================================
if not exist %BUILD_DIR% (
mkdir %BUILD_DIR%
)
REM configure
cmake -S . -B %BUILD_DIR% ^
-G Ninja ^
-DCMAKE_BUILD_TYPE=%CONFIG% ^
@@ -36,17 +30,12 @@ cmake -S . -B %BUILD_DIR% ^
if errorlevel 1 goto error
REM ================================
REM Build
REM ================================
REM build
cmake --build %BUILD_DIR%
if errorlevel 1 goto error
REM ================================
REM Deploy Qt + RtAudio
REM ================================
REM link dlls
cd %BUILD_DIR%
@@ -56,14 +45,14 @@ copy "%RTAUDIO_ROOT%\bin\rtaudio.dll" .
copy "%RTMIDI_ROOT%\bin\rtmidi.dll" .
echo.
echo Build successful.
echo Build successful
goto end
:error
echo.
echo Build FAILED.
echo Build failed
exit /b 1
:end
endlocal
pause
pause