make basic audio engine parameters configurable
This commit is contained in:
@@ -47,7 +47,6 @@ if (-not ($dependencies_found -eq $libraries.Count)) {
|
||||
# configure
|
||||
Write-Host "Configuring metabolus..."
|
||||
cmake -S . -B $BUILD_DIR -G "Visual Studio 17 2022" `
|
||||
-DCMAKE_BUILD_TYPE=Release `
|
||||
-DQt6_ROOT="$QT_ROOT\lib\cmake\Qt6" `
|
||||
-DRtAudio_ROOT="$RTAUDIO_ROOT" `
|
||||
-DRtMidi_ROOT="$RTMIDI_ROOT" `
|
||||
@@ -56,7 +55,7 @@ cmake -S . -B $BUILD_DIR -G "Visual Studio 17 2022" `
|
||||
|
||||
# build
|
||||
Write-Host "Building metabolus..."
|
||||
cmake --build $BUILD_DIR
|
||||
cmake --build $BUILD_DIR --config $CONFIG
|
||||
|
||||
# TODO: install
|
||||
|
||||
@@ -64,14 +63,14 @@ cmake --build $BUILD_DIR
|
||||
Write-Host "Deploying metabolus..."
|
||||
cd $BUILD_DIR
|
||||
|
||||
& "$QT_ROOT\bin\windeployqt6.exe" .\Debug\metabolus.exe
|
||||
& "$QT_ROOT\bin\windeployqt6.exe" .\$CONFIG\metabolus.exe
|
||||
|
||||
# copy dlls
|
||||
Copy-Item -Path "$RTAUDIO_ROOT\bin\rtaudio.dll" -Destination .\Debug
|
||||
Copy-Item -Path "$RTMIDI_ROOT\bin\rtmidi.dll" -Destination .\Debug
|
||||
Copy-Item -Path "$YAMLCPP_ROOT\bin\yaml-cpp.dll" -Destination .\Debug
|
||||
Copy-Item -Path "$RTAUDIO_ROOT\bin\rtaudio.dll" -Destination .\$CONFIG
|
||||
Copy-Item -Path "$RTMIDI_ROOT\bin\rtmidi.dll" -Destination .\$CONFIG
|
||||
Copy-Item -Path "$YAMLCPP_ROOT\bin\yaml-cpp.dll" -Destination .\$CONFIG
|
||||
|
||||
# copy configs, but don't overwrite
|
||||
Copy-Item -Path "$CONFIG_ROOT" -Destination ".\Debug\" -Recurse -ErrorAction SilentlyContinue
|
||||
Copy-Item -Path "$CONFIG_ROOT" -Destination ".\$CONFIG\" -Recurse -ErrorAction SilentlyContinue
|
||||
|
||||
cd $PROJECT_ROOT
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
|
||||
echo "Installing dependencies ... "
|
||||
|
||||
# TODO: add a clean (like delete build dirs) script
|
||||
|
||||
$project_root = $PWD
|
||||
|
||||
if (-not (Test-Path -Path "$PWD\build\lib")) {
|
||||
@@ -12,21 +14,28 @@ $build_lib_dir = "$PWD\build\lib"
|
||||
# rtaudio
|
||||
mkdir "$build_lib_dir\rtaudio" -Force
|
||||
cd $project_root\lib\rtaudio
|
||||
cmake -S . -B build -G "Visual Studio 17 2022" -DRTDUIO_API_WASAPI=ON -DRTAUDIO_API_DS=OFF -DRT_AUDIO_API_ASIO=OFF -DRTAUDIO_BUILD_SHARED_LIBS=ON
|
||||
cmake -S . -B build -G "Visual Studio 17 2022" `
|
||||
-DRTDUIO_API_WASAPI=ON `
|
||||
-DRTAUDIO_API_DS=OFF `
|
||||
-DRT_AUDIO_API_ASIO=OFF `
|
||||
-DRTAUDIO_BUILD_SHARED_LIBS=ON
|
||||
cmake --build build --config Release
|
||||
cmake --install build --prefix "$build_lib_dir\rtaudio"
|
||||
|
||||
# rtmidi
|
||||
mkdir "$build_lib_dir\rtmidi" -Force
|
||||
cd $project_root\lib\rtmidi
|
||||
cmake -S . -B build -G "Visual Studio 17 2022" -DRT_MIDI_API_WINMM=ON -DRTMIDI_BUILD_SHARED_LIBS=ON
|
||||
cmake -S . -B build -G "Visual Studio 17 2022" `
|
||||
-DRT_MIDI_API_WINMM=ON `
|
||||
-DRTMIDI_BUILD_SHARED_LIBS=ON
|
||||
cmake --build build --config Release
|
||||
cmake --install build --prefix "$build_lib_dir\rtmidi"
|
||||
|
||||
# yaml-cpp
|
||||
mkdir "$build_lib_dir\yaml-cpp" -Force
|
||||
cd $project_root\lib\yaml-cpp
|
||||
cmake -S . -B build -G "Visual Studio 17 2022" -DYAML_BUILD_SHARED_LIBS=ON
|
||||
cmake -S . -B build -G "Visual Studio 17 2022" `
|
||||
-DYAML_BUILD_SHARED_LIBS=ON
|
||||
cmake --build build --config Release
|
||||
cmake --install build --prefix "$build_lib_dir\yaml-cpp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user