mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 13:48:02 +08:00
[ryml] Support osx (#20661)
* [ryml] Support osx * Update deprecated functions * Remove supports field
This commit is contained in:
parent
b8c39998ea
commit
f978be6534
@ -1,9 +1,5 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_fail_port_install(
|
||||
ON_TARGET "OSX"
|
||||
)
|
||||
|
||||
# Get rapidyaml src
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
@ -38,21 +34,20 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
dbg RYML_DBG
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake)
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
||||
elseif(EXISTS ${CURRENT_PACKAGES_DIR}/lib/cmake/ryml)
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/ryml)
|
||||
if(EXISTS "${CURRENT_PACKAGES_DIR}/cmake")
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
||||
elseif(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/ryml")
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ryml)
|
||||
endif()
|
||||
|
||||
# Move headers and natvis to own dir
|
||||
@ -72,6 +67,4 @@ file(WRITE "${CURRENT_PACKAGES_DIR}/share/ryml/rymlConfig.cmake" "${_contents}")
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
file(INSTALL
|
||||
"${SOURCE_PATH}/LICENSE.txt"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
@ -1,13 +1,21 @@
|
||||
{
|
||||
"name": "ryml",
|
||||
"version-date": "2021-07-24",
|
||||
"port-version": 1,
|
||||
"description": "Rapid YAML library",
|
||||
"homepage": "https://github.com/biojppm/rapidyaml",
|
||||
"supports": "!osx",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "c4core",
|
||||
"default-features": false
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
|
@ -1359,7 +1359,6 @@ rtlsdr:x64-linux=fail
|
||||
rtlsdr:x64-osx=fail
|
||||
rttr:arm-uwp=fail
|
||||
rttr:x64-uwp=fail
|
||||
ryml:x64-osx=fail
|
||||
ryu:arm-uwp=fail
|
||||
ryu:x64-uwp=fail
|
||||
ryu:x64-windows-static=fail
|
||||
|
@ -5970,7 +5970,7 @@
|
||||
},
|
||||
"ryml": {
|
||||
"baseline": "2021-07-24",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"ryu": {
|
||||
"baseline": "2.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "599ab36a18b1a0c439fdc6dc740bf0575a06641e",
|
||||
"version-date": "2021-07-24",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "d97344132c58ae2aafb8c0ed1f23acde843404b5",
|
||||
"version-date": "2021-07-24",
|
||||
|
Loading…
Reference in New Issue
Block a user