Skip to content

Commit

Permalink
[aliyun-oss-c-sdk] Add new port (#6441)
Browse files Browse the repository at this point in the history
* [aliyun-oss-c-sdk] Add new port

* [aliyun-oss-c-sdk] Update the CONTROL file and add the dependency.
  • Loading branch information
NancyLi1013 authored and ras0219-msft committed May 18, 2019
1 parent a462daf commit 469543f
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ports/aliyun-oss-c-sdk/CONTROL
Original file line number Diff line number Diff line change
@@ -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 changes: 12 additions & 0 deletions ports/aliyun-oss-c-sdk/patch.patch
Original file line number Diff line number Diff line change
@@ -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 changes: 26 additions & 0 deletions ports/aliyun-oss-c-sdk/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 469543f

Please sign in to comment.