2020-08-19 07:34:10 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO an-tao/trantor
|
2022-07-19 04:17:56 +08:00
|
|
|
REF v1.5.6
|
|
|
|
SHA512 9c9827b1640fa23f2941c6c10ffe692d4207595de1cb149f94140c0f20d4fe6c45e3efcc50d464bd40aff80443dfe3bdd8db263302755ab8f639a920e497c0b3
|
2020-08-19 07:34:10 +08:00
|
|
|
HEAD_REF master
|
2021-01-25 16:16:36 +08:00
|
|
|
PATCHES
|
2020-08-19 07:34:10 +08:00
|
|
|
)
|
|
|
|
|
2021-08-31 10:27:37 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-08-19 07:34:10 +08:00
|
|
|
)
|
|
|
|
|
2021-08-31 10:27:37 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-08-19 07:34:10 +08:00
|
|
|
|
|
|
|
# Fix CMake files
|
2021-08-31 10:27:37 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Trantor)
|
2020-08-19 07:34:10 +08:00
|
|
|
|
2021-06-25 04:13:33 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2020-08-19 07:34:10 +08:00
|
|
|
# # Remove includes in debug
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
# Handle copyright
|
2021-08-31 10:27:37 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/License" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2020-08-19 07:34:10 +08:00
|
|
|
|
|
|
|
# Copy pdb files
|
|
|
|
vcpkg_copy_pdbs()
|