Skip to content

Commit

Permalink
Haiku support
Browse files Browse the repository at this point in the history
  • Loading branch information
jmairboeck committed Aug 20, 2022
1 parent 9a1de81 commit 86f07ac
Show file tree
Hide file tree
Showing 6 changed files with 501 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packaging/PortMidiConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@PACKAGE_INIT@

include(CMakeFindDependencyMacro)
if(UNIX AND NOT APPLE AND (@LINUX_DEFINES@ MATCHES ".*PMALSA.*"))
if(UNIX AND NOT APPLE AND NOT HAIKU AND (@LINUX_DEFINES@ MATCHES ".*PMALSA.*"))
find_dependency(ALSA)
endif()

Expand Down
7 changes: 7 additions & 0 deletions pm_common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ if(UNIX AND APPLE)
${COREFOUNDATION_LIBRARY} ${COREMIDI_LIBRARY} ${CORESERVICES_LIBRARY})
# set to CMake default; is this right?:
set_target_properties(portmidi PROPERTIES MACOSX_RPATH ON)
elseif(HAIKU)
set(PM_LIB_PRIVATE_SRC
${PMDIR}/porttime/pthaiku.cpp
${PMDIR}/pm_haiku/pmhaiku.cpp
${PMDIR}/pm_linux/finddefault.c)
set(PM_NEEDED_LIBS be midi2 PARENT_SCOPE)
target_link_libraries(portmidi PRIVATE be midi2)
elseif(UNIX)
target_compile_definitions(portmidi PRIVATE ${LINUX_FLAGS})
set(PM_LIB_PRIVATE_SRC
Expand Down

0 comments on commit 86f07ac

Please sign in to comment.