mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-17 09:20:28 +03:00
Meta: Add vulkan and vulkan-headers to vcpkg dependencies
Also require a specific ICU version to not run into unexpected problems.
This commit is contained in:
parent
c84ff9f693
commit
bd97442771
Notes:
sideshowbarker
2024-07-17 20:19:08 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/bd97442771 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/446 Issue: https://github.com/LadybirdBrowser/ladybird/issues/444 Reviewed-by: https://github.com/kalenikaliaksandr ✅
4
.github/actions/setup/action.yml
vendored
4
.github/actions/setup/action.yml
vendored
@ -25,7 +25,9 @@ runs:
|
||||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install autoconf autoconf-archive automake build-essential cmake libavcodec-dev fonts-liberation2 zip curl tar ccache clang-18 clang++-18 lld-18 gcc-13 g++-13 libstdc++-13-dev ninja-build unzip qt6-base-dev qt6-tools-dev-tools libqt6svg6-dev qt6-multimedia-dev libgl1-mesa-dev libpulse-dev libssl-dev libegl1-mesa-dev
|
||||
sudo apt-get install autoconf autoconf-archive automake build-essential cmake libavcodec-dev fonts-liberation2 zip curl tar ccache clang-18 clang++-18 lld-18 gcc-13 g++-13 libstdc++-13-dev \
|
||||
ninja-build unzip qt6-base-dev qt6-tools-dev-tools libqt6svg6-dev qt6-multimedia-dev libgl1-mesa-dev libpulse-dev libssl-dev libegl1-mesa-dev \
|
||||
libx11-dev libxrandr-dev
|
||||
|
||||
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 100
|
||||
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 100
|
||||
|
@ -1,6 +1,7 @@
|
||||
if (NOT APPLE)
|
||||
find_package(VulkanHeaders CONFIG QUIET)
|
||||
find_package(Vulkan QUIET)
|
||||
if (Vulkan_FOUND)
|
||||
if (VulkanHeaders_FOUND AND Vulkan_FOUND)
|
||||
set(HAS_VULKAN ON CACHE BOOL "" FORCE)
|
||||
add_compile_definitions(USE_VULKAN=1)
|
||||
endif()
|
||||
|
@ -82,7 +82,6 @@ else()
|
||||
endif()
|
||||
|
||||
if (HAS_VULKAN)
|
||||
include_directories(${Vulkan_INCLUDE_DIR})
|
||||
list(APPEND SOURCES VulkanContext.cpp)
|
||||
endif()
|
||||
|
||||
@ -112,5 +111,5 @@ if (ANDROID)
|
||||
endif()
|
||||
|
||||
if (HAS_VULKAN)
|
||||
target_link_libraries(LibCore PUBLIC ${Vulkan_LIBRARIES})
|
||||
target_link_libraries(LibCore PUBLIC Vulkan::Vulkan Vulkan::Headers)
|
||||
endif()
|
||||
|
@ -26,5 +26,5 @@ set(GENERATED_SOURCES ${CURRENT_LIB_GENERATED})
|
||||
|
||||
serenity_lib(LibUnicode unicode)
|
||||
|
||||
find_package(ICU REQUIRED COMPONENTS data i18n uc)
|
||||
find_package(ICU 74 REQUIRED COMPONENTS data i18n uc)
|
||||
target_link_libraries(LibUnicode PRIVATE ICU::i18n ICU::uc ICU::data)
|
||||
|
10
vcpkg.json
10
vcpkg.json
@ -32,7 +32,15 @@
|
||||
"platform": "android"
|
||||
},
|
||||
"sqlite3",
|
||||
"woff2"
|
||||
"woff2",
|
||||
{
|
||||
"name": "vulkan",
|
||||
"platform": "!android"
|
||||
},
|
||||
{
|
||||
"name": "vulkan-headers",
|
||||
"platform": "!android"
|
||||
}
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user