1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:17:46 +00:00

WebContent: Use the accelerated_graphics CMake helper

Instead of relying on AK_OS_LINUX, actually use the more accurate
HAS_ACCELERATED_GRAPHICS define to figure out if we should try to use
the generic LibAccelGfx GPU painter.
This commit is contained in:
Andrew Kaster 2023-10-31 13:47:22 -06:00 committed by Andrew Kaster
parent 26e5c20cfa
commit 40363f54d8
3 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,4 @@
include(accelerated_graphics)
set(WEBCONTENT_SOURCE_DIR ${SERENITY_SOURCE_DIR}/Userland/Services/WebContent/)
set(WEBCONTENT_SOURCES
@ -77,6 +78,11 @@ if (HAVE_PULSEAUDIO)
endif()
endif()
if (LINUX)
if (HAS_ACCELERATED_GRAPHICS)
target_compile_definitions(WebContent PRIVATE HAS_ACCELERATED_GRAPHICS)
target_link_libraries(WebContent PRIVATE LibAccelGfx)
if (TARGET webcontent)
target_compile_definitions(webcontent PRIVATE HAS_ACCELERATED_GRAPHICS)
target_link_libraries(webcontent PRIVATE LibAccelGfx)
endif()
endif()