From 4f012da8e577ea86d38f7cec889e0e172f1e2e03 Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Sat, 9 Jul 2022 13:30:01 +0400 Subject: [PATCH] Use dummy MIDI implementation on OpenBSD The X11 implementation uses ALSA for which is not ported to this system. --- CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 26a6fc26..08feb6af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -335,12 +335,20 @@ elseif (UNIX) set(BZC_PLATFORM_SRCS ${CMAKE_SOURCE_DIR}/src/platform_glfw/Renderer.cpp ${CMAKE_SOURCE_DIR}/src/platform_common/FFT.cpp - ${CMAKE_SOURCE_DIR}/src/platform_x11/MIDI.cpp ${CMAKE_SOURCE_DIR}/src/platform_x11/Misc.cpp ${CMAKE_SOURCE_DIR}/src/platform_x11/SetupDialog.cpp ${CMAKE_SOURCE_DIR}/src/platform_x11/Timer.cpp ${CMAKE_SOURCE_DIR}/src/platform_x11/Clipboard.cpp ) + if ("${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD") + list(APPEND BZC_PLATFORM_SRCS + ${CMAKE_SOURCE_DIR}/src/platform_common/MIDIDummy.cpp + ) + else () + list(APPEND BZC_PLATFORM_SRCS + ${CMAKE_SOURCE_DIR}/src/platform_x11/MIDI.cpp + ) + endif () source_group("Bonzomatic\\Platform" FILES ${BZC_PLATFORM_SRCS}) elseif (WIN32) if (${BONZOMATIC_WINDOWS_FLAVOR} MATCHES "DX11")