mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 13:49:07 +08:00
cb537a2aee
* [licensepp] Add new port
* [cryptopp-pem] Update to a newer version that will make lincensepp happy
* Revert "[cryptopp-pem] Update to a newer version that will make lincensepp happy"
This reverts commit 726e3ce3d2
.
This version can not compile with cryptopp.
* [licensepp] Finish it
* [licensepp] Fix interface include directory
* [licensepp] Fixup cmake targets
* [licensepp] -O3 is not recognised by msvc
* [licensepp] Fix _iterator_debug_level value mismatch
* [licensepp] Update patch file
* [licensepp] Fail fast on UWP
* [licensepp] Simplify patch file
* [licensepp] Tabs -> Spaces
40 lines
1.4 KiB
CMake
40 lines
1.4 KiB
CMake
vcpkg_fail_port_install(ON_TARGET "UWP")
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO amrayn/licensepp
|
|
REF 0b6d669c0b323be004f73d8c811d38158ce8c0c7
|
|
SHA512 2161575815d8ff49110d7c2823662ba30d9f1ca2eb6be6dad1ee0807fb3fa9f28483839a133c9d380035254df7c452f8d6fa7f17fd4f29acd8b9bfbbda059291
|
|
HEAD_REF master
|
|
PATCHES
|
|
# TODO:
|
|
# In this commit, https://github.com/noloader/cryptopp-pem/commit/0cfa60820ec1d5e8ac4d77a0a8786ee43e9a2400
|
|
# the parameter orders have been changed.
|
|
# But we can not update pem-pack to this version or newer because it
|
|
# won't compile with the current version of cryptopp in `vcpkg`.
|
|
# Remove this patch in the future.
|
|
use-old-pem-pack.patch
|
|
# TODO: Remove this patch if https://github.com/amrayn/licensepp/pull/33 was merged.
|
|
fix-cmake.patch
|
|
)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/FindCryptoPP.cmake DESTINATION ${SOURCE_PATH}/cmake)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-Dtest=OFF
|
|
-Dtravis=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/${PORT}/cmake)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|