LibWeb: Add ANGLE

ANGLE is going to be used for WebGL implementation in upcoming changes.
This commit is contained in:
Aliaksandr Kalenik 2024-11-29 19:26:57 +01:00 committed by Alexander Kalenik
parent f719b05ab9
commit 4f219f46ee
Notes: github-actions[bot] 2024-12-03 22:37:47 +00:00
2 changed files with 19 additions and 0 deletions

View file

@ -2,6 +2,10 @@ include(libweb_generators)
include(vulkan)
include(skia)
if (APPLE)
find_package(unofficial-angle REQUIRED CONFIG)
endif()
set(SOURCES
Animations/Animatable.cpp
Animations/Animation.cpp
@ -873,6 +877,13 @@ serenity_lib(LibWeb web)
target_link_libraries(LibWeb PRIVATE LibCore LibCompress LibCrypto LibJS LibHTTP LibGfx LibIPC LibRegex LibSyntax LibTextCodec LibUnicode LibMedia LibWasm LibXML LibIDL LibURL LibTLS LibRequests LibGC skia)
if (APPLE)
target_link_libraries(LibWeb PRIVATE unofficial::angle::libEGL unofficial::angle::libGLESv2)
endif()
# FIXME: https://github.com/microsoft/vcpkg/issues/42324
target_include_directories(LibWeb PRIVATE ${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include)
generate_js_bindings(LibWeb)
if (ENABLE_SWIFT)

View file

@ -1,6 +1,10 @@
{
"builtin-baseline": "b2cb0da531c2f1f740045bfe7c4dac59f0b2b69c",
"dependencies": [
{
"name": "angle",
"platform": "osx"
},
{
"name": "curl",
"features": [
@ -118,6 +122,10 @@
"woff2"
],
"overrides": [
{
"name": "angle",
"version": "chromium_5414#9"
},
{
"name": "curl",
"version": "8.10.1#0"