Add back possibility of enabling broken GTK4 UI frontend, but disable it by default.
This commit is contained in:
parent
80ff7bdcf3
commit
fed492c663
1 changed files with 5 additions and 5 deletions
|
@ -392,10 +392,10 @@ macro(add_ui_backend)
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
macro(ui_backend_subdir)
|
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...")
|
message("Backend ${UI_OPTS_READABLE_NAME} defined...")
|
||||||
set(UI_DISABLE_OPT DISABLE_${UI_OPTS_NAME}_UI)
|
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}})
|
if (NOT ${${UI_DISABLE_OPT}})
|
||||||
cmake_path(GET UI_OPTS_SUBDIR STEM UI_OPTS_DIRNAME)
|
cmake_path(GET UI_OPTS_SUBDIR STEM UI_OPTS_DIRNAME)
|
||||||
set(BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/${UI_OPTS_SUBDIR})
|
set(BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/${UI_OPTS_SUBDIR})
|
||||||
|
@ -435,9 +435,9 @@ endmacro()
|
||||||
set(ENABLED_UIS )
|
set(ENABLED_UIS )
|
||||||
set(ENABLED_PLAYBACK_BACKENDS )
|
set(ENABLED_PLAYBACK_BACKENDS )
|
||||||
ui_backend_subdir(NAME "IMGUI" READABLE_NAME "Dear ImGui" SUBDIR backends/ui/imgui)
|
ui_backend_subdir(NAME "IMGUI" READABLE_NAME "Dear ImGui" SUBDIR backends/ui/imgui)
|
||||||
#if (NOT (DEFINED EMSCRIPTEN OR DEFINED ANDROID_NDK))
|
if (NOT (DEFINED EMSCRIPTEN OR DEFINED ANDROID_NDK))
|
||||||
#ui_backend_subdir(NAME "GTK" READABLE_NAME "GTK4" SUBDIR backends/ui/gtk)
|
ui_backend_subdir(DEFAULT_OFF NAME "GTK" READABLE_NAME "GTK4" SUBDIR backends/ui/gtk)
|
||||||
#:endif()
|
endif()
|
||||||
playback_backend_subdir(NAME "VGMSTREAM" READABLE_NAME "VgmStream" SUBDIR backends/playback/vgmstream)
|
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 "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)
|
playback_backend_subdir(NAME "ZSM" READABLE_NAME "ZSM" SUBDIR backends/playback/zsm)
|
||||||
|
|
Loading…
Reference in a new issue