mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 14:20:21 +00:00
LibWeb: Support linking custom-built ANGLE libraries not from vcpkg
This is a similar approach to what we're using for skia.
This commit is contained in:
parent
c427f75b02
commit
9df7eb2e1b
Notes:
github-actions[bot]
2025-07-07 10:48:39 +00:00
Author: https://github.com/ADKaster
Commit: 9df7eb2e1b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5325
1 changed files with 9 additions and 2 deletions
|
@ -2,7 +2,14 @@ include(libweb_generators)
|
|||
include(vulkan)
|
||||
include(skia)
|
||||
|
||||
find_package(unofficial-angle REQUIRED CONFIG)
|
||||
find_package(unofficial-angle CONFIG)
|
||||
if(unofficial-angle_FOUND)
|
||||
set(ANGLE_TARGETS unofficial::angle::libEGL unofficial::angle::libGLESv2)
|
||||
else()
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(angle REQUIRED IMPORTED_TARGET angle)
|
||||
set(ANGLE_TARGETS PkgConfig::angle)
|
||||
endif()
|
||||
|
||||
set(SOURCES
|
||||
Animations/Animatable.cpp
|
||||
|
@ -1003,7 +1010,7 @@ set(GENERATED_SOURCES
|
|||
|
||||
ladybird_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 LibThreading skia unofficial::angle::libEGL unofficial::angle::libGLESv2)
|
||||
target_link_libraries(LibWeb PRIVATE LibCore LibCompress LibCrypto LibJS LibHTTP LibGfx LibIPC LibRegex LibSyntax LibTextCodec LibUnicode LibMedia LibWasm LibXML LibIDL LibURL LibTLS LibRequests LibGC LibThreading skia ${ANGLE_TARGETS})
|
||||
|
||||
# FIXME: https://github.com/microsoft/vcpkg/issues/42324
|
||||
target_include_directories(LibWeb PRIVATE ${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue