2017-11-27 02:28:16 +08:00
|
|
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
|
|
message(FATAL_ERROR "${PORT} does not currently support UWP")
|
|
|
|
endif()
|
|
|
|
|
2016-12-02 14:54:03 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2017-05-03 11:34:11 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Azure/azure-storage-cpp
|
2018-03-19 23:27:40 +08:00
|
|
|
REF v3.2.1
|
|
|
|
SHA512 8d1e8de439e52f53eb28b77e8adf394468f4861c2c4c1f79ec1437c72e3fc0bc871e4e2662ee58090748915b0f12ce6736a7cc6ede619d332686b9fb6a026c9f
|
2017-05-03 11:34:11 +08:00
|
|
|
HEAD_REF master
|
2016-12-02 14:54:03 +08:00
|
|
|
PATCHES
|
2017-04-08 06:38:04 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/cmake.patch
|
2017-04-08 06:15:49 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/static-builds.patch
|
2017-10-20 09:01:33 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/support-cpprest-findpackage.patch
|
2018-04-18 07:26:20 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/glibmm-cmake.patch
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/pplx-do-while.patch
|
2016-12-02 14:54:03 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}/Microsoft.WindowsAzure.Storage
|
|
|
|
OPTIONS
|
2018-04-18 07:26:20 +08:00
|
|
|
-DCMAKE_FIND_FRAMEWORK=LAST
|
2016-12-02 14:54:03 +08:00
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DBUILD_SAMPLES=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(INSTALL
|
|
|
|
${SOURCE_PATH}/LICENSE.txt
|
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/azure-storage-cpp RENAME copyright)
|
2018-02-22 13:17:14 +08:00
|
|
|
file(REMOVE_RECURSE
|
2016-12-02 14:54:03 +08:00
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|