2019-06-07 04:58:41 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ivmai/bdwgc
|
2024-02-06 03:20:38 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 764ab0c0f29a30ba0d55c8f1f6e267ab3190e8bcb96b7a31f2488f3936c6e0d08020a329dd296cf7d491ba8d4158fa73df6a6d2b4242526535a732f20c3f1bd0
|
2019-06-07 04:58:41 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-04-09 06:32:50 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-10-15 08:56:06 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2021-11-16 00:55:59 +08:00
|
|
|
-Denable_cplusplus=ON
|
2022-04-09 06:32:50 +08:00
|
|
|
-Denable_docs=OFF
|
2021-11-16 00:55:59 +08:00
|
|
|
-DCFLAGS_EXTRA=-I${CURRENT_INSTALLED_DIR}/include # for libatomic_ops
|
2019-06-07 04:58:41 +08:00
|
|
|
)
|
|
|
|
|
2022-04-09 06:32:50 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/bdwgc)
|
2019-06-07 04:58:41 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-10-15 08:56:06 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2022-08-13 06:46:47 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2022-04-09 06:32:50 +08:00
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/README.QUICK" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|