1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:17:44 +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,5 @@
include(accelerated_graphics)
serenity_component(
WebContent
TARGETS WebContent
@ -30,3 +32,8 @@ set(GENERATED_SOURCES
serenity_bin(WebContent)
target_link_libraries(WebContent PRIVATE LibCore LibFileSystem LibIPC LibGfx LibAudio LibImageDecoderClient LibJS LibWebView LibWeb LibLocale LibMain)
link_with_locale_data(WebContent)
if (HAS_ACCELERATED_GRAPHICS)
target_compile_definitions(WebContent PRIVATE HAS_ACCELERATED_GRAPHICS)
target_link_libraries(WebContent PRIVATE LibAccelGfx)
endif()