mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
fd694e8672
This commit makes it possible to build AK and most of Lagom for iOS, based on the work for the Ladybird build demoed on discord: https://discord.com/channels/830522505605283862/830525031720943627/1211987732646068314
19 lines
719 B
CMake
19 lines
719 B
CMake
if (NOT ENABLE_ACCELERATED_GRAPHICS OR EMSCRIPTEN)
|
|
# FIXME: Enable GL emulation in emscripten: https://emscripten.org/docs/porting/multimedia_and_graphics/OpenGL-support.html
|
|
set(HAS_ACCELERATED_GRAPHICS OFF CACHE BOOL "" FORCE)
|
|
return()
|
|
endif()
|
|
|
|
if (APPLE AND NOT IOS)
|
|
set(HAS_ACCELERATED_GRAPHICS ON CACHE BOOL "" FORCE)
|
|
set(ACCEL_GFX_LIBS "-framework OpenGL" CACHE STRING "" FORCE)
|
|
else()
|
|
find_package(OpenGL QUIET COMPONENTS OpenGL EGL)
|
|
|
|
if (OPENGL_FOUND)
|
|
set(HAS_ACCELERATED_GRAPHICS ON CACHE BOOL "" FORCE)
|
|
set(ACCEL_GFX_LIBS OpenGL::OpenGL OpenGL::EGL CACHE STRING "" FORCE)
|
|
else()
|
|
set(HAS_ACCELERATED_GRAPHICS OFF CACHE BOOL "" FORCE)
|
|
endif()
|
|
endif()
|