diff --git a/Libraries/LibWeb/CMakeLists.txt b/Libraries/LibWeb/CMakeLists.txt index 566bee608b..27f2b6b5da 100644 --- a/Libraries/LibWeb/CMakeLists.txt +++ b/Libraries/LibWeb/CMakeLists.txt @@ -1264,7 +1264,18 @@ set(GENERATED_SOURCES ladybird_lib(LibWeb web EXPLICIT_SYMBOL_EXPORT) add_dependencies(LibWeb generate_GLFunctions.cpp) -target_link_libraries(LibWeb PRIVATE LibCore LibCompress LibCrypto LibJS LibHTTP LibGfx LibIPC LibRegex LibSyntax LibTextCodec LibUnicode LibMedia LibWasm LibXML LibURL LibTLS LibRequests LibGC LibSync LibThreading skia ${ANGLE_TARGETS} SDL3::SDL3 LibXml2::LibXml2) +target_link_libraries(LibWeb PRIVATE LibCore LibCompress LibCrypto LibJS LibHTTP LibGfx LibIPC LibRegex LibSyntax LibTextCodec LibUnicode LibMedia LibWasm LibXML LibURL LibTLS LibRequests LibGC LibSync LibThreading skia SDL3::SDL3 LibXml2::LibXml2) + +# LibWeb still includes ANGLE's GLES headers for WebGL constants and types, but +# the actual GL entry points live in the Compositor. Copy only ANGLE's compile +# interface here so LibWeb can include those headers without linking ANGLE into +# WebContent. +foreach(angle_target IN LISTS ANGLE_TARGETS) + target_include_directories(LibWeb PRIVATE $) + target_include_directories(LibWeb SYSTEM PRIVATE $) + target_compile_definitions(LibWeb PRIVATE $) + target_compile_options(LibWeb PRIVATE $) +endforeach() import_rust_crate(MANIFEST_PATH Rust/Cargo.toml CRATE_NAME libweb_rust FFI_HEADER RustFFI.h)