mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 08:37:50 +08:00
4121864a82
* [cpp-httplib] update to 0.15.3 * [cpp-httplib] update to 0.15.3
36 lines
1.1 KiB
CMake
36 lines
1.1 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO yhirose/cpp-httplib
|
|
REF "v${VERSION}"
|
|
SHA512 f7fc9c9eb71f091b82958e023a7b417b30d2590fd5d1a920d1c98361f34bcaca796dbeda7f9fdb8b2c722a8968977b77463c6cbb252cba9823a79c22471fa439
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-find-brotli.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
brotli HTTPLIB_REQUIRE_BROTLI
|
|
openssl HTTPLIB_REQUIRE_OPENSSL
|
|
zlib HTTPLIB_REQUIRE_ZLIB
|
|
)
|
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DHTTPLIB_USE_OPENSSL_IF_AVAILABLE=OFF
|
|
-DHTTPLIB_USE_ZLIB_IF_AVAILABLE=OFF
|
|
-DHTTPLIB_USE_BROTLI_IF_AVAILABLE=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME httplib CONFIG_PATH lib/cmake/httplib)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|