Meta: Add provision for user-specified port variables to vcpkg

If a CMake file set()'s some variables that VCPKG understands here,
it will be used in the build of all ports
This commit is contained in:
Andrew Kaster 2024-07-06 06:21:29 -06:00 committed by Daniel Bertalan
parent ccb3a2f7ad
commit 34892cf3c4
Notes: sideshowbarker 2024-07-16 20:31:50 +09:00
4 changed files with 8 additions and 0 deletions

2
.gitignore vendored
View file

@ -41,6 +41,8 @@ Tests/LibWeb/WPT/wpt
Tests/LibWeb/WPT/metadata Tests/LibWeb/WPT/metadata
Tests/LibWeb/WPT/MANIFEST.json Tests/LibWeb/WPT/MANIFEST.json
Meta/CMake/vcpkg/user-variables.cmake
# Ensure that all files in /Base can be tracked, even if they match one of the above rules # Ensure that all files in /Base can be tracked, even if they match one of the above rules
!/Base/** !/Base/**

View file

@ -2,3 +2,5 @@ set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_TARGET_ARCHITECTURE arm64) set(VCPKG_TARGET_ARCHITECTURE arm64)
set(VCPKG_OSX_ARCHITECTURES arm64) set(VCPKG_OSX_ARCHITECTURES arm64)
set(VCPKG_CRT_LINKAGE dynamic) set(VCPKG_CRT_LINKAGE dynamic)
include(${CMAKE_CURRENT_LIST_DIR}/../user-variables.cmake OPTIONAL)

View file

@ -1,3 +1,5 @@
set(VCPKG_CMAKE_SYSTEM_NAME Linux) set(VCPKG_CMAKE_SYSTEM_NAME Linux)
set(VCPKG_TARGET_ARCHITECTURE x64) set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic) set(VCPKG_CRT_LINKAGE dynamic)
include(${CMAKE_CURRENT_LIST_DIR}/../user-variables.cmake OPTIONAL)

View file

@ -2,3 +2,5 @@ set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_TARGET_ARCHITECTURE x64) set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_OSX_ARCHITECTURES x86_64) set(VCPKG_OSX_ARCHITECTURES x86_64)
set(VCPKG_CRT_LINKAGE dynamic) set(VCPKG_CRT_LINKAGE dynamic)
include(${CMAKE_CURRENT_LIST_DIR}/../user-variables.cmake OPTIONAL)