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-10-13 14:31:18 -04:00
|
|
|
REF 76579b6ed6e4417cea6bd3f1202a7c6d400c7b21
|
|
|
|
SHA512 2d6b7722c8c0a5cb4dda7ad2ace06bdf7feeda70cb10ed34a8baf07c9f1c6a92cb33750b7a399a08012dc65e35f222505bd978232cafd645312b5944f0078eb5
|
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
|
|
|
|
)
|