Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1436,6 +1436,12 @@ if(UNIX OR APPLE)
endif()
endif()

# libpbnjson_c, libhelpers, the Wayland ABI fix library and Wayland itself are
# all loaded through SDL_LoadObject() on webOS.
if(WEBOS AND NOT HAVE_DLOPEN)
message(FATAL_ERROR "webOS requires dlopen, but dlopen was not found.")
endif()

if(UNIX OR APPLE OR HAIKU OR RISCOS)
CheckO_CLOEXEC()
endif()
Expand Down Expand Up @@ -1883,6 +1889,16 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU)
CheckOpenGL()
CheckOpenGLES()
CheckWayland()

# The stand-ins for what the older libwayland on some webOS firmware lacks
# (wl_proxy_get_version and the marshal constructors) only exist in
# the dynamic loader, SDL_waylanddyn.c.
if(WEBOS AND HAVE_WAYLAND AND NOT HAVE_WAYLAND_SHARED)
message(FATAL_ERROR
"webOS requires Wayland to be loaded dynamically, "
"but this build links Wayland directly.")
endif()

CheckOpenVR()
CheckVivante()
CheckVulkan()
Expand Down
Loading