mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 06:08:03 +08:00
[aliyun-oss-c-sdk] Add new port (#6441)
* [aliyun-oss-c-sdk] Add new port * [aliyun-oss-c-sdk] Update the CONTROL file and add the dependency.
This commit is contained in:
parent
a462daf251
commit
469543f942
4
ports/aliyun-oss-c-sdk/CONTROL
Normal file
4
ports/aliyun-oss-c-sdk/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: aliyun-oss-c-sdk
|
||||
Version: 3.7.1-1
|
||||
Description: Alibaba Cloud Object Storage Service (OSS) is a cloud storage service provided by Alibaba Cloud, featuring massive capacity, security, a low cost, and high reliability.
|
||||
Build-Depends: curl, apr-util
|
12
ports/aliyun-oss-c-sdk/patch.patch
Normal file
12
ports/aliyun-oss-c-sdk/patch.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 0abcb93..75195a9 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -150,5 +150,5 @@ INSTALL(FILES
|
||||
oss_c_sdk/oss_xml.h
|
||||
DESTINATION include/oss_c_sdk)
|
||||
|
||||
-add_subdirectory(oss_c_sdk_sample)
|
||||
-add_subdirectory(oss_c_sdk_test)
|
||||
+#add_subdirectory(oss_c_sdk_sample)
|
||||
+#add_subdirectory(oss_c_sdk_test)
|
26
ports/aliyun-oss-c-sdk/portfile.cmake
Normal file
26
ports/aliyun-oss-c-sdk/portfile.cmake
Normal file
@ -0,0 +1,26 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
message(FATAL_ERROR "${PORT} does not currently support UWP")
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO aliyun/aliyun-oss-c-sdk
|
||||
REF 3.7.1
|
||||
SHA512 0c289832d87ea7fae60d0846617bc839a1529ab6d59c2bb520e2826b0374953e8078179c4043c5c85a56c38985189aa584036104a504da4cf1ea2d35a53c8fde
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
patch.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|
Loading…
x
Reference in New Issue
Block a user