From fed492c6630a502c3fa0dc58b01b7c0e0b651c04 Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Tue, 15 Oct 2024 09:33:12 -0700 Subject: [PATCH] Add back possibility of enabling broken GTK4 UI frontend, but disable it by default. --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3abeae2..047fa15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -392,10 +392,10 @@ macro(add_ui_backend) endif() endmacro() macro(ui_backend_subdir) - cmake_parse_arguments(UI_OPTS "" "SUBDIR;NAME;READABLE_NAME" "" ${ARGN} ) + cmake_parse_arguments(UI_OPTS "DEFAULT_OFF" "SUBDIR;NAME;READABLE_NAME" "" ${ARGN} ) message("Backend ${UI_OPTS_READABLE_NAME} defined...") set(UI_DISABLE_OPT DISABLE_${UI_OPTS_NAME}_UI) - option(${UI_DISABLE_OPT} "Disables the ${UI_OPTS_READABLE_NAME} UI" OFF) + option(${UI_DISABLE_OPT} "Disables the ${UI_OPTS_READABLE_NAME} UI" ${UI_OPTS_DEFAULT_OFF}) if (NOT ${${UI_DISABLE_OPT}}) cmake_path(GET UI_OPTS_SUBDIR STEM UI_OPTS_DIRNAME) set(BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/${UI_OPTS_SUBDIR}) @@ -435,9 +435,9 @@ endmacro() set(ENABLED_UIS ) set(ENABLED_PLAYBACK_BACKENDS ) ui_backend_subdir(NAME "IMGUI" READABLE_NAME "Dear ImGui" SUBDIR backends/ui/imgui) -#if (NOT (DEFINED EMSCRIPTEN OR DEFINED ANDROID_NDK)) - #ui_backend_subdir(NAME "GTK" READABLE_NAME "GTK4" SUBDIR backends/ui/gtk) -#:endif() +if (NOT (DEFINED EMSCRIPTEN OR DEFINED ANDROID_NDK)) + ui_backend_subdir(DEFAULT_OFF NAME "GTK" READABLE_NAME "GTK4" SUBDIR backends/ui/gtk) +endif() playback_backend_subdir(NAME "VGMSTREAM" READABLE_NAME "VgmStream" SUBDIR backends/playback/vgmstream) playback_backend_subdir(NAME "SDL_MIXER_X" READABLE_NAME "SDL Mixer X" SUBDIR backends/playback/sdl_mixer_x) playback_backend_subdir(NAME "ZSM" READABLE_NAME "ZSM" SUBDIR backends/playback/zsm)