diff options
| author | sdcb <sdflysha@qq.com> | 2016-11-28 19:15:42 +0800 |
|---|---|---|
| committer | sdcb <sdflysha@qq.com> | 2016-11-28 19:15:42 +0800 |
| commit | e2e1c7d778c5063f8967bd26c35f9aeca4fbf757 (patch) | |
| tree | 59d770f48391e13a1286a49bfe7c60624a7f1ac2 | |
| parent | bc8a015889caa63c4d3ebac06714b1b5601e638e (diff) | |
| download | vcpkg-e2e1c7d778c5063f8967bd26c35f9aeca4fbf757.tar.gz vcpkg-e2e1c7d778c5063f8967bd26c35f9aeca4fbf757.zip | |
Add aws-sdk-cpp
Note:
1. I add a patch to not using git, because git will emit a wrong version number in initialize_project_version.cmake file.
2. building aws-sdk-cpp will emit some very long file(longer than 258 in my machine), to make it work, you must moving vcpkg into some shorter path like: C:\vcpkg
| -rw-r--r-- | ports/aws-sdk-cpp/CONTROL | 3 | ||||
| -rw-r--r-- | ports/aws-sdk-cpp/drop_git.patch | 13 | ||||
| -rw-r--r-- | ports/aws-sdk-cpp/portfile.cmake | 23 |
3 files changed, 39 insertions, 0 deletions
diff --git a/ports/aws-sdk-cpp/CONTROL b/ports/aws-sdk-cpp/CONTROL new file mode 100644 index 000000000..bfeed7a0b --- /dev/null +++ b/ports/aws-sdk-cpp/CONTROL @@ -0,0 +1,3 @@ +Source: aws-sdk-cpp +Version: 1.0.34 +Description: AWS SDK for C++ diff --git a/ports/aws-sdk-cpp/drop_git.patch b/ports/aws-sdk-cpp/drop_git.patch new file mode 100644 index 000000000..491831bd7 --- /dev/null +++ b/ports/aws-sdk-cpp/drop_git.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9d2a98a..ce58b68 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -22,7 +22,7 @@ if(CMAKE_MAJOR_VERSION LESS 3) + endif() + + # git is required for Android builds and optional for all other platforms +-find_package(Git) ++#find_package(Git) + + # Cmake invocation variables: + # CUSTOM_MEMORY_MANAGEMENT - if set to 1, generates the sdk project files with custom memory management enabled, otherwise disables it diff --git a/ports/aws-sdk-cpp/portfile.cmake b/ports/aws-sdk-cpp/portfile.cmake new file mode 100644 index 000000000..8af7d0e94 --- /dev/null +++ b/ports/aws-sdk-cpp/portfile.cmake @@ -0,0 +1,23 @@ +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/aws-sdk-cpp-1.0.34) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/aws/aws-sdk-cpp/archive/1.0.34.tar.gz" + FILENAME "1.0.34.tar.gz" + SHA512 21ca03eb323eecb55c29866b73c07956a36aad7c9c051eb7ca201cfd356c3f9732c89898cf0c89660d6c1279dc52438bb389b37d613bf741bae81bb3e773a3c5 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_apply_patches( + SOURCE_PATH ${SOURCE_PATH} + PATCHES + ${CMAKE_CURRENT_LIST_DIR}/drop_git.patch +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} +) + +vcpkg_install_cmake() + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/aws-sdk-cpp RENAME copyright)
\ No newline at end of file |
