1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 13:47:46 +00:00

CMake: Use a helper file to find GL and EGL in a platform agnostic way

Also add a flag to turn off accelerated graphics entirely.
This commit is contained in:
Andrew Kaster 2023-10-29 16:31:36 -06:00 committed by Andrew Kaster
parent bec1c1fff7
commit 49d21619d4
5 changed files with 23 additions and 7 deletions

View file

@ -1,4 +1,6 @@
if (LINUX)
include(accelerated_graphics)
if (HAS_ACCELERATED_GRAPHICS)
set(SOURCES
Canvas.cpp
Context.cpp
@ -6,5 +8,5 @@ if (LINUX)
)
serenity_lib(LibAccelGfx accelgfx)
target_link_libraries(LibAccelGfx PRIVATE LibGfx GL EGL)
target_link_libraries(LibAccelGfx PRIVATE LibGfx ${ACCEL_GFX_LIBS})
endif()