-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
option(USE_MIDI_TIMIDITY "Build with Timidity wave table MIDI sequencer support" ON) | ||
if(USE_MIDI_TIMIDITY AND NOT USE_SYSTEM_AUDIO_LIBRARIES) | ||
message("== using Timidity-SDL ==") | ||
list(APPEND SDL_MIXER_DEFINITIONS -DMUSIC_MID_TIMIDITY) | ||
|
||
if(AUDIO_CODECS_REPO_PATH) | ||
list(APPEND SDL_MIXER_INCLUDE_PATHS ${AUDIO_CODECS_PATH}/libtimidity/include) | ||
endif() | ||
|
||
if(DOWNLOAD_AUDIO_CODECS_DEPENDENCY) | ||
set(LIBTIMIDITY_LIB timidity) | ||
set(TIMIDITYSDL_LIBRARIES timidity) | ||
set(TIMIDITYSDL_FOUND True) | ||
else() | ||
find_library(LIBTIMIDITY_LIB NAMES timidity | ||
find_library(TIMIDITYSDL_LIBRARIES NAMES timidity | ||
HINTS "${AUDIO_CODECS_INSTALL_PATH}/lib") | ||
if(TIMIDITYSDL_LIBRARIES) | ||
set(TIMIDITYSDL_FOUND True) | ||
endif() | ||
endif() | ||
|
||
list(APPEND SDLMixerX_LINK_LIBS ${LIBTIMIDITY_LIB}) | ||
if(TIMIDITYSDL_FOUND) | ||
list(APPEND SDL_MIXER_DEFINITIONS -DMUSIC_MID_TIMIDITY) | ||
if(AUDIO_CODECS_REPO_PATH) | ||
list(APPEND SDL_MIXER_INCLUDE_PATHS ${AUDIO_CODECS_PATH}/libtimidity/include) | ||
endif() | ||
list(APPEND SDLMixerX_LINK_LIBS ${TIMIDITYSDL_LIBRARIES}) | ||
endif() | ||
endif() | ||
|
||
list(APPEND SDLMixerX_SOURCES ${CMAKE_CURRENT_LIST_DIR}/music_timidity.c) |