2020-08-01 02:10:00 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO apache/incubator-brpc
|
2022-07-21 06:20:39 +08:00
|
|
|
REF 29491107cbf405a494aaf80ee32344ba34e1d7e4 #1.2.0
|
|
|
|
SHA512 bd4c67967796592030903041ddb9205e24c9f196e63ebc153e08fbce723d93d27cd4f30f3c2cf904a93cda66ffa9db7d465d6e5fdac27a045ae84afad3dd1dc3
|
2020-08-01 02:10:00 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2022-06-03 03:53:28 +08:00
|
|
|
fix-build.patch
|
|
|
|
fix-boost-ptr.patch
|
2022-07-21 06:20:39 +08:00
|
|
|
brpc-1783.diff #https://github.com/apache/incubator-brpc/pull/1783
|
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
|
|
|
|
-DWITH_THRIFT=ON
|
|
|
|
-DWITH_MESALINK=OFF
|
|
|
|
-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()
|
|
|
|
|
2022-01-28 01:09:26 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|