[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:
NancyLi1013 2019-05-18 14:48:40 -07:00 committed by Robert Schumacher
parent a462daf251
commit 469543f942
3 changed files with 42 additions and 0 deletions

View 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

View 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)

View 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)