mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 17:39:01 +08:00
66a252f70e
Disable Testing (via munit) Remove build cunit parameter Update no export patch
37 lines
1.2 KiB
CMake
37 lines
1.2 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO ngtcp2/ngtcp2
|
|
REF "v${VERSION}"
|
|
SHA512 8be12732e27eaabfbedae83ceee66ae0a269edebc614a5dd7645b8019d1f394be91391943baade93bad71e6100e22e46240b2b01c97ba3dedd7ef343113351e1
|
|
HEAD_REF main
|
|
PATCHES
|
|
export-unofficical-target.patch
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ENABLE_STATIC_LIB)
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ENABLE_SHARED_LIB)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
"-DENABLE_STATIC_LIB=${ENABLE_STATIC_LIB}"
|
|
"-DENABLE_SHARED_LIB=${ENABLE_SHARED_LIB}"
|
|
-DBUILD_TESTING=OFF
|
|
-DENABLE_OPENSSL=OFF
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Libev=ON
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Libnghttp3=ON
|
|
-DCMAKE_INSTALL_DOCDIR=share/ngtcp2
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-ngtcp2)
|
|
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
)
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|