2020-02-04 06:22:52 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2019-10-30 14:17:31 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
2020-02-04 06:22:52 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO protocolbuffers/upb
|
2021-11-12 03:34:39 +08:00
|
|
|
REF 160625a9728b4031a21ad1e1c0146ea2c3a851eb # 2021-10-19
|
|
|
|
SHA512 13b205dd4278600e6ec05c829dc6c7e449747cccb118a3b83abc0ab5ef0ab180feb364ac84da8075471697fbba798ed3d9d763934d7fe9a64ac0560f5f9d3e83
|
2019-10-30 14:17:31 +08:00
|
|
|
HEAD_REF master
|
2020-03-11 00:31:38 +08:00
|
|
|
PATCHES
|
|
|
|
fix-uwp.patch
|
2021-11-12 03:34:39 +08:00
|
|
|
fix-cmakelists.patch
|
2021-04-24 01:40:07 +08:00
|
|
|
add-all-libs-target.patch
|
2021-11-12 03:34:39 +08:00
|
|
|
add-cmake-install.patch
|
2019-10-30 14:17:31 +08:00
|
|
|
)
|
|
|
|
|
2021-11-12 03:34:39 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/cmake"
|
2019-10-30 14:17:31 +08:00
|
|
|
)
|
|
|
|
|
2021-11-12 03:34:39 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2019-10-30 14:17:31 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-11-12 03:34:39 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-10-30 14:17:31 +08:00
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|