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
|
2019-05-18 02:54:15 +08:00
|
|
|
REF v6.1.0
|
|
|
|
SHA512 bc6a1da6287301b5bb5c31694d508c46447b71043d5b94a90ffe79b6dc045bc111ed0bcf3a7840e096ddc3ef6badbeef7fb905242e272a9f82f483d849a43e61
|
2017-05-03 11:34:11 +08:00
|
|
|
HEAD_REF master
|
2016-12-02 14:54:03 +08:00
|
|
|
PATCHES
|
2019-04-16 01:59:09 +08:00
|
|
|
# on osx use the uuid.h that is part of the osx sdk
|
|
|
|
builtin-uuid-osx.patch
|
2019-07-30 07:01:04 +08:00
|
|
|
remove-gcov-dependency.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
|
2019-04-16 01:59:09 +08:00
|
|
|
-DGETTEXT_LIB_DIR=${CURRENT_INSTALLED_DIR}/include
|
2016-12-02 14:54:03 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
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()
|
|
|
|
|