File tree Expand file tree Collapse file tree 4 files changed +666
-1
lines changed
Expand file tree Collapse file tree 4 files changed +666
-1
lines changed Original file line number Diff line number Diff line change 11/build *
22* .user *
3+ .DS_Store
Original file line number Diff line number Diff line change @@ -107,7 +107,17 @@ if(WIN32)
107107 target_compile_definitions (zmusic-obj INTERFACE HAVE_SYSTEM_MIDI)
108108 target_link_libraries (zmusic-obj INTERFACE winmm)
109109 target_sources (zmusic-obj INTERFACE mididevices/music_win_mididevice.cpp)
110- elseif (NOT APPLE )
110+ elseif (APPLE )
111+ target_compile_definitions (zmusic-obj INTERFACE HAVE_SYSTEM_MIDI)
112+ target_sources (zmusic-obj INTERFACE
113+ mididevices/music_coremidi_mididevice.mm
114+ )
115+ target_link_libraries (zmusic-obj INTERFACE
116+ "-framework CoreMIDI"
117+ "-framework CoreFoundation"
118+ "-framework CoreAudio"
119+ )
120+ else ()
111121 find_package (ALSA)
112122 if (ALSA_FOUND)
113123 target_compile_definitions (zmusic-obj INTERFACE HAVE_SYSTEM_MIDI)
Original file line number Diff line number Diff line change @@ -158,3 +158,7 @@ MIDIDevice* CreateWinMIDIDevice(int mididevice);
158158#ifdef __linux__
159159MIDIDevice* CreateAlsaMIDIDevice (int mididevice);
160160#endif
161+
162+ #ifdef __APPLE__
163+ MIDIDevice* CreateCoreMIDIDevice (int mididevice);
164+ #endif
You can’t perform that action at this time.
0 commit comments