2022-04-07 10:55:26 -04:00
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
2022-05-05 18:28:56 -04:00
|
|
|
message(WARNING "DiscordCoreAPI only supports g++ 11 on linux.")
|
2022-04-07 10:55:26 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO RealTimeChris/DiscordCoreAPI
|
2022-12-05 13:49:03 -05:00
|
|
|
REF c8591ab721b76a7649cb5b45944fab1c5c798242
|
|
|
|
SHA512 943d2a77dc3d297b4ec84d6b4808554aec9a89c33a242e5f6401a9831f674ff948f53d3e877737a40517a393b3b2a9bd873c6007a193892743c88c2fdb58341a
|
2022-04-07 10:55:26 -04:00
|
|
|
HEAD_REF main
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(NO_PREFIX_CORRECTION)
|
|
|
|
|
2022-04-14 01:47:44 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2022-04-07 10:55:26 -04:00
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(
|
2022-04-18 18:43:59 -04:00
|
|
|
INSTALL "${SOURCE_PATH}/License.md"
|
2022-04-07 10:55:26 -04:00
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
|
|
|
RENAME copyright
|
|
|
|
)
|