From fd46308b2771da575387c5b7e87f3c917e65a695 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Tue, 25 Oct 2022 04:58:04 +0300 Subject: midiplay: Added Linux-only song switch for debug purposes --- utils/midiplay/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'utils/midiplay/CMakeLists.txt') diff --git a/utils/midiplay/CMakeLists.txt b/utils/midiplay/CMakeLists.txt index 98f888a..52d0128 100644 --- a/utils/midiplay/CMakeLists.txt +++ b/utils/midiplay/CMakeLists.txt @@ -24,6 +24,8 @@ if(WIN32 AND NOT USE_SDL2_AUDIO) ) endif() +option(DEBUG_SONG_SWITCHING "Enable song switching by left and right keys (Linux only)" OFF) + add_executable(adlmidiplay ${ADLMIDI_PLAY_SRC}) if(USE_SDL2_AUDIO) @@ -34,6 +36,10 @@ endif() set_nopie(adlmidiplay) +if(DEBUG_SONG_SWITCHING) + target_compile_definitions(adlmidiplay PRIVATE DEBUG_SONG_SWITCHING) +endif() + if(MIDIPLAY_WAVE_ONLY) target_compile_definitions(adlmidiplay PUBLIC OUTPUT_WAVE_ONLY) message("Demo tool will only output WAVE file, no playing support.") -- cgit v1.2.3