2020-08-01 02:10:00 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2024-05-28 05:33:42 +08:00
|
|
|
REPO apache/brpc
|
2023-02-09 05:43:34 +08:00
|
|
|
REF "${VERSION}"
|
2024-08-09 12:20:01 +08:00
|
|
|
SHA512 cc1a373d94752c43376a731b4f08dc559bffcd67bdad7e22268a2a20a1034b40d658d591d946d4c1aa94287060146eb041626e0354188ee7dc41554512d72490
|
2020-08-01 02:10:00 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2022-06-03 03:53:28 +08:00
|
|
|
fix-build.patch
|
2024-06-22 04:39:50 +08:00
|
|
|
fix-warnings.patch
|
|
|
|
protobuf.patch
|
2024-08-09 12:20:01 +08:00
|
|
|
fix-compilation-error.patch
|
2020-08-01 02:10:00 +08:00
|
|
|
)
|
|
|
|
|
2022-01-28 01:09:26 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-08-05 02:00:12 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2020-08-01 02:10:00 +08:00
|
|
|
OPTIONS
|
2023-07-25 01:59:05 +08:00
|
|
|
-DBUILD_BRPC_TOOLS=OFF
|
2020-08-01 02:10:00 +08:00
|
|
|
-DWITH_THRIFT=ON
|
|
|
|
-DWITH_GLOG=ON
|
2022-06-03 03:53:28 +08:00
|
|
|
-DDOWNLOAD_GTEST=OFF
|
2020-08-01 02:10:00 +08:00
|
|
|
)
|
|
|
|
|
2022-01-28 01:09:26 +08:00
|
|
|
vcpkg_cmake_install()
|
2022-06-03 03:53:28 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-brpc CONFIG_PATH share/unofficial-brpc)
|
2020-08-01 02:10:00 +08:00
|
|
|
|
2022-01-28 01:09:26 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-08-01 02:10:00 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/butil/third_party/superfasthash")
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2024-05-28 05:33:42 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|