зеркало из https://github.com/microsoft/vcpkg.git
[cppfs] improve port (#29175)
* [cppfs] improve port * Remove ci.baseline.txt entries. * Add license. Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
Родитель
aaded72a03
Коммит
4efb7ed628
|
@ -9,32 +9,24 @@ vcpkg_from_github(
|
|||
cmake-export-fix.patch
|
||||
)
|
||||
|
||||
if(${TARGET_TRIPLET} MATCHES "uwp")
|
||||
message(FATAL_ERROR "cppfs does not support uwp")
|
||||
endif()
|
||||
|
||||
set(SSH_BACKEND OFF)
|
||||
if("ssh" IN_LIST FEATURES)
|
||||
set(SSH_BACKEND ON)
|
||||
if("${VCPKG_TARGET_ARCHITECTURE}" STREQUAL "arm64")
|
||||
message(FATAL_ERROR "SSH backend of cppfs does not support arm64.")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DOPTION_BUILD_SSH_BACKEND=${SSH_BACKEND}
|
||||
-DOPTION_BUILD_TESTS=Off
|
||||
-DOPTION_FORCE_SYSTEM_DIR_INSTALL=On
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
ssh OPTION_BUILD_SSH_BACKEND
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DOPTION_BUILD_TESTS=Off
|
||||
-DOPTION_FORCE_SYSTEM_DIR_INSTALL=On
|
||||
${FEATURE_OPTIONS}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_fixup_cmake_targets()
|
||||
vcpkg_cmake_config_fixup()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cppfs RENAME copyright)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/cppfs" RENAME copyright)
|
||||
|
|
|
@ -1,9 +1,20 @@
|
|||
{
|
||||
"name": "cppfs",
|
||||
"version-string": "1.3.0",
|
||||
"port-version": 1,
|
||||
"version": "1.3.0",
|
||||
"port-version": 2,
|
||||
"description": "Cross-platform C++ file system library supporting multiple backends",
|
||||
"license": "MIT",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"ssh": {
|
||||
"description": "SSH backend for cppfs",
|
||||
|
|
|
@ -157,8 +157,6 @@ coolprop:x64-uwp=fail
|
|||
coroutine:arm-uwp=fail
|
||||
coroutine:x64-linux=fail
|
||||
coroutine:x64-uwp=fail
|
||||
cppfs:arm-uwp=fail
|
||||
cppfs:x64-uwp=fail
|
||||
cppmicroservices:arm64-windows=fail
|
||||
cppmicroservices:arm-uwp=fail
|
||||
cppmicroservices:x64-uwp=fail
|
||||
|
|
|
@ -1686,7 +1686,7 @@
|
|||
},
|
||||
"cppfs": {
|
||||
"baseline": "1.3.0",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"cppgraphqlgen": {
|
||||
"baseline": "4.5.1",
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "d018bbc2767ee2fec0398bd1131e5ae70d1ad5cf",
|
||||
"version": "1.3.0",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "3b904f053fa80033ffa454148ff60a3504f8c57f",
|
||||
"version-string": "1.3.0",
|
||||
|
|
Загрузка…
Ссылка в новой задаче