2026-04-23 11:10:23 -03:00
|
|
|
# Keep the lists here in sync with Meta/Utils/host_platform.py
|
2026-03-27 17:03:22 -03:00
|
|
|
if (ANDROID OR VCPKG_TARGET_ANDROID)
|
|
|
|
|
set(_possible_guis "Android")
|
|
|
|
|
set(_default_gui "Android")
|
|
|
|
|
elseif (APPLE)
|
2026-05-28 15:19:54 -03:00
|
|
|
set(_possible_guis "AppKit" "Gtk" "Qt")
|
2026-03-27 17:03:22 -03:00
|
|
|
set(_default_gui "AppKit")
|
|
|
|
|
else()
|
2026-04-09 02:29:46 -03:00
|
|
|
set(_possible_guis "Qt" "Gtk")
|
2026-03-27 17:03:22 -03:00
|
|
|
set(_default_gui "Qt")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
set(LADYBIRD_GUI_FRAMEWORK ${_default_gui} CACHE STRING "The GUI framework to use for the ladybird application. Possible values: ${_possible_guis}")
|
|
|
|
|
|
|
|
|
|
if (NOT "${LADYBIRD_GUI_FRAMEWORK}" IN_LIST _possible_guis)
|
|
|
|
|
message(FATAL_ERROR "Invalid value for LADYBIRD_GUI_FRAMEWORK: ${LADYBIRD_GUI_FRAMEWORK}. Possible values: ${_possible_guis}")
|
|
|
|
|
endif()
|