vcpkg/ports/azure-storage-cpp/portfile.cmake

35 lines
849 B
CMake
Raw Normal View History

2016-12-02 14:54:03 +08:00
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-storage-cpp
REF v3.0.0
2017-03-08 10:04:52 +08:00
SHA512 45d0d7f8cc350a16cff0371cdd442e851912c89061acfec559482e8f79cebafffd8681b32a30b878e329235cd3aaad5d2ff797d1148302e3109cf5111df14b97
HEAD_REF master
2016-12-02 14:54:03 +08:00
)
vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
PATCHES
${CMAKE_CURRENT_LIST_DIR}/cmake.patch
2017-04-08 06:15:49 +08:00
${CMAKE_CURRENT_LIST_DIR}/static-builds.patch
2016-12-02 14:54:03 +08:00
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}/Microsoft.WindowsAzure.Storage
OPTIONS
-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)
file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include)
vcpkg_copy_pdbs()