consolidate linux install script
This commit is contained in:
@@ -107,4 +107,5 @@ target_link_libraries(metabolus
|
|||||||
RtMidi::rtmidi
|
RtMidi::rtmidi
|
||||||
yaml-cpp
|
yaml-cpp
|
||||||
Qt6::Widgets
|
Qt6::Widgets
|
||||||
|
atomic
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ if (-not (Test-Path -Path $BUILD_DIR)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# detect dependencies
|
# detect dependencies
|
||||||
|
|
||||||
$libraries = @("rtaudio", "rtmidi", "yaml-cpp")
|
$libraries = @("rtaudio", "rtmidi", "yaml-cpp")
|
||||||
$dependencies_found = 0
|
$dependencies_found = 0
|
||||||
foreach ($lib in $libraries) {
|
foreach ($lib in $libraries) {
|
||||||
@@ -38,6 +37,7 @@ foreach ($lib in $libraries) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# run the install script if dependencies not found
|
||||||
if (-not ($dependencies_found -eq $libraries.Count)) {
|
if (-not ($dependencies_found -eq $libraries.Count)) {
|
||||||
& "scripts\install_dependencies.ps1"
|
& "scripts\install_dependencies.ps1"
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -8,6 +8,26 @@ RTAUDIO_ROOT=${LIB_ROOT}/rtaudio
|
|||||||
RTMIDI_ROOT=${LIB_ROOT}/rtmidi
|
RTMIDI_ROOT=${LIB_ROOT}/rtmidi
|
||||||
YAMLCPP_ROOT=${LIB_ROOT}/yaml-cpp
|
YAMLCPP_ROOT=${LIB_ROOT}/yaml-cpp
|
||||||
|
|
||||||
|
# detect dependencies
|
||||||
|
libraries=("rtaudio" "rtmidi" "yaml-cpp")
|
||||||
|
dependencies_found=0
|
||||||
|
|
||||||
|
for lib in "${libraries[@]}"; do
|
||||||
|
if [[ -e "./build/lib/$lib" ]]; then
|
||||||
|
echo "found $lib"
|
||||||
|
((dependencies_found++))
|
||||||
|
else
|
||||||
|
echo "did not find $lib"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# run the install script if dependencies not found
|
||||||
|
if [[ "$dependencies_found" -ne "${#libraries[@]}" ]]; then
|
||||||
|
./scripts/install_dependencies.sh
|
||||||
|
else
|
||||||
|
echo "All dependencies detected, skipping dependency install step..."
|
||||||
|
fi
|
||||||
|
|
||||||
cmake -S . -B ${BUILD_DIR} -G Ninja \
|
cmake -S . -B ${BUILD_DIR} -G Ninja \
|
||||||
-DRtAudio_DIR="${RTAUDIO_ROOT}/share/rtaudio" \
|
-DRtAudio_DIR="${RTAUDIO_ROOT}/share/rtaudio" \
|
||||||
-DRtMidi_DIR="${RTMIDI_ROOT}/share/rtmidi" \
|
-DRtMidi_DIR="${RTMIDI_ROOT}/share/rtmidi" \
|
||||||
|
|||||||
0
tests/.gitkeep
Normal file
0
tests/.gitkeep
Normal file
Reference in New Issue
Block a user