Skip to content

Commit

Permalink
Use dummy MIDI implementation on OpenBSD
Browse files Browse the repository at this point in the history
The X11 implementation uses ALSA for which is not ported to this system.
  • Loading branch information
klemensn authored and Gargaj committed Jul 9, 2022
1 parent 2fe2602 commit 4f012da
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4f012da

Please sign in to comment.