[vcpkg-tool-meson] Define the Apple target platforms (#52221)

This commit is contained in:
Chase Knowlden 2026-06-08 14:04:36 -04:00 committed by GitHub
parent 5eb6bd1c67
commit 76d4fc36ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 21 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{
"name": "vcpkg-tool-meson",
"version": "1.9.0",
"port-version": 9,
"port-version": 10,
"description": "Meson build system",
"homepage": "https://github.com/mesonbuild/meson",
"license": "Apache-2.0",

View File

@ -272,12 +272,24 @@ function(z_vcpkg_get_build_and_host_system build_system host_system is_cross) #h
string(APPEND host "endian = 'little'\n")
if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_TARGET_IS_MINGW OR VCPKG_TARGET_IS_UWP)
set(meson_system_name "windows")
elseif(VCPKG_TARGET_IS_APPLE)
set(meson_system_name "darwin")
else()
string(TOLOWER "${VCPKG_CMAKE_SYSTEM_NAME}" meson_system_name)
endif()
string(APPEND host "system = '${meson_system_name}'\n")
if(meson_system_name STREQUAL "darwin")
string(APPEND host "subsystem = 'macos'\n")
if(VCPKG_TARGET_IS_APPLE)
if(VCPKG_TARGET_IS_OSX)
string(APPEND host "subsystem = 'macos'\n")
elseif(VCPKG_TARGET_IS_IOS)
string(APPEND host "subsystem = 'ios'\n")
elseif(VCPKG_TARGET_IS_TVOS)
string(APPEND host "subsystem = 'tvos'\n")
elseif(VCPKG_TARGET_IS_WATCHOS)
string(APPEND host "subsystem = 'watchos'\n")
elseif(VCPKG_TARGET_IS_VISIONOS)
string(APPEND host "subsystem = 'visionos'\n")
endif()
endif()
string(APPEND host "cpu_family = '${host_cpu_fam}'\n")
string(APPEND host "cpu = '${host_cpu}'")

View File

@ -10594,7 +10594,7 @@
},
"vcpkg-tool-meson": {
"baseline": "1.9.0",
"port-version": 9
"port-version": 10
},
"vcpkg-tool-mozbuild": {
"baseline": "4.0.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "86a0d388e3e72719eadc392e359ee80f2f8d8a16",
"version": "1.9.0",
"port-version": 10
},
{
"git-tree": "f85c7f81ae0d98611514765992e5a5769d398bde",
"version": "1.9.0",