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(
|
2023-07-25 14:01:11 -04:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO RealTimeChris/DiscordCoreAPI
|
|
|
|
REF "v${VERSION}"
|
2023-10-09 18:35:53 -04:00
|
|
|
SHA512 57a8389718cd0f03a6e7a53e39d5ee267140cb4696c89abf6ac424d78f69516d6dc12f24ac19bc07533f9509459b987e2d2c1d7426d2f727ea124f5fcb649512
|
2023-07-25 14:01:11 -04:00
|
|
|
HEAD_REF main
|
2022-04-07 10:55:26 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
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()
|
|
|
|
|
2023-07-25 14:01:11 -04:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License.md")
|