mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 20:26:53 +00:00
Meta: Patch angle vcpkg to build on Windows
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Build Dev Container Image / build (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Build Dev Container Image / build (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
This commit is contained in:
parent
435aee2b1e
commit
8ef7df2a95
Notes:
github-actions[bot]
2025-06-30 14:02:21 +00:00
Author: https://github.com/ayeteadoe
Commit: 8ef7df2a95
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5240
Reviewed-by: https://github.com/ADKaster ✅
4 changed files with 13 additions and 16 deletions
|
@ -2,9 +2,7 @@ include(libweb_generators)
|
||||||
include(vulkan)
|
include(vulkan)
|
||||||
include(skia)
|
include(skia)
|
||||||
|
|
||||||
if (APPLE OR LINUX)
|
find_package(unofficial-angle REQUIRED CONFIG)
|
||||||
find_package(unofficial-angle REQUIRED CONFIG)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(SOURCES
|
set(SOURCES
|
||||||
Animations/Animatable.cpp
|
Animations/Animatable.cpp
|
||||||
|
@ -1014,13 +1012,7 @@ set(GENERATED_SOURCES
|
||||||
|
|
||||||
serenity_lib(LibWeb web)
|
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 LibThreading skia)
|
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)
|
||||||
|
|
||||||
if (APPLE OR LINUX)
|
|
||||||
target_link_libraries(LibWeb PRIVATE unofficial::angle::libEGL unofficial::angle::libGLESv2)
|
|
||||||
else()
|
|
||||||
target_link_libraries(LibWeb PRIVATE GL)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# FIXME: https://github.com/microsoft/vcpkg/issues/42324
|
# FIXME: https://github.com/microsoft/vcpkg/issues/42324
|
||||||
target_include_directories(LibWeb PRIVATE ${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include)
|
target_include_directories(LibWeb PRIVATE ${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include)
|
||||||
|
|
|
@ -9,8 +9,8 @@ list(APPEND ANGLE_DEFINITIONS
|
||||||
|
|
||||||
# We're targeting Windows 10 which will have DirectX 11
|
# We're targeting Windows 10 which will have DirectX 11
|
||||||
list(APPEND ANGLE_SOURCES
|
list(APPEND ANGLE_SOURCES
|
||||||
${_d3d11_backend_sources}
|
${d3d11_backend_sources}
|
||||||
${_d3d_shared_sources}
|
${d3d_shared_sources}
|
||||||
|
|
||||||
${angle_translator_hlsl_sources}
|
${angle_translator_hlsl_sources}
|
||||||
|
|
||||||
|
@ -25,11 +25,12 @@ list(APPEND ANGLE_DEFINITIONS
|
||||||
"-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ \"d3dcompiler_47.dll\", \"d3dcompiler_46.dll\", \"d3dcompiler_43.dll\" }"
|
"-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ \"d3dcompiler_47.dll\", \"d3dcompiler_46.dll\", \"d3dcompiler_43.dll\" }"
|
||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND ANGLEGLESv2_LIBRARIES dxguid dxgi)
|
# https://issues.angleproject.org/issues/345274916
|
||||||
|
list(APPEND ANGLEGLESv2_LIBRARIES dxguid dxgi synchronization)
|
||||||
|
|
||||||
if(NOT angle_is_winuwp) # vcpkg EDIT: Exclude DirectX 9 on UWP
|
if(NOT angle_is_winuwp) # vcpkg EDIT: Exclude DirectX 9 on UWP
|
||||||
# DirectX 9 support should be optional but ANGLE will not compile without it
|
# DirectX 9 support should be optional but ANGLE will not compile without it
|
||||||
list(APPEND ANGLE_SOURCES ${_d3d9_backend_sources})
|
list(APPEND ANGLE_SOURCES ${d3d9_backend_sources})
|
||||||
list(APPEND ANGLE_DEFINITIONS ANGLE_ENABLE_D3D9)
|
list(APPEND ANGLE_DEFINITIONS ANGLE_ENABLE_D3D9)
|
||||||
list(APPEND ANGLEGLESv2_LIBRARIES d3d9)
|
list(APPEND ANGLEGLESv2_LIBRARIES d3d9)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -156,7 +156,11 @@ function(checkout_in_path PATH URL REF)
|
||||||
URL "${URL}"
|
URL "${URL}"
|
||||||
REF "${REF}"
|
REF "${REF}"
|
||||||
)
|
)
|
||||||
file(RENAME "${DEP_SOURCE_PATH}" "${PATH}")
|
if (WIN32)
|
||||||
|
file(COPY "${DEP_SOURCE_PATH}/" DESTINATION "${PATH}")
|
||||||
|
else()
|
||||||
|
file(RENAME "${DEP_SOURCE_PATH}" "${PATH}")
|
||||||
|
endif()
|
||||||
file(REMOVE_RECURSE "${DEP_SOURCE_PATH}")
|
file(REMOVE_RECURSE "${DEP_SOURCE_PATH}")
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "angle",
|
"name": "angle",
|
||||||
"platform": "linux"
|
"platform": "linux | windows"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "curl",
|
"name": "curl",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue