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
|
2023-01-16 06:23:48 +11:00
|
|
|
REF c8d4698d2c0ee818def85d63562585a218b2da70
|
|
|
|
SHA512 82a2bada44d1e2c2cc4638b885011a95189febd77bc4d3c26ce8c25005b8202d6c7cbb1f580dbcc1556dd0919f33cfb25127774f37cea17a544fbe31970618b5
|
2022-04-07 10:55:26 -04:00
|
|
|
HEAD_REF main
|
2022-12-29 07:57:42 +11:00
|
|
|
PATCHES
|
|
|
|
0001-Add-extern-C-to-avcodec.patch
|
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()
|
|
|
|
|
|
|
|
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
|
|
|
|
)
|