mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
The idea is that scripts directly under Meta are meant to be run by people. Scripts that are only imported or run by other scripts are moved to a subdirectory.
18 lines
677 B
CMake
18 lines
677 B
CMake
# Keep the lists here in sync with Meta/Utils/host_platform.py
|
|
if (ANDROID OR VCPKG_TARGET_ANDROID)
|
|
set(_possible_guis "Android")
|
|
set(_default_gui "Android")
|
|
elseif (APPLE)
|
|
set(_possible_guis "AppKit" "Qt")
|
|
set(_default_gui "AppKit")
|
|
else()
|
|
set(_possible_guis "Qt" "Gtk")
|
|
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()
|