mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-08 21:37:23 +08:00
b54b707136
* Updates! * Updating version data. * Updates! * Updates! * Updates! * Updates! * Updates! * Fixed an issue. * Fixed an issue. * Fixed an issue. * Fixed an issue. * Fixed an issue. * Fixed an issue. * Fixed an issue. * Fixed an issue. * Fixed an issue. * Fixed an issue. * Fixed an issue. * Fixing an issue. * Fixing an issue. * Fixing an issue. * Fixing an issue. * Updates! * Updates! * Updating version info. * Updating version info. * Updating version info. * Minor modifications. * Minor modifications. * Fixed a voice data interpolation issue. * Fixed a voice data interpolation issue. * Fixed a voice data interpolation issue. * Fixed a voice data interpolation issue. * Updates! * Updates! * Updates! * Updates! * Updates - fixed a thread contention issue. * Updates - fixed a thread contention issue. * Update portfile.cmake * Update versions/d-/discordcoreapi.json * Update portfile.cmake * Updating - fixing an issue. * Updating - fixing an issue. * Updates - fixed a voice reconnection issue. * Updates - fixed a voice reconnection issue. Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
32 lines
909 B
CMake
32 lines
909 B
CMake
if(VCPKG_TARGET_IS_LINUX)
|
|
message(WARNING "DiscordCoreAPI only supports g++ 11 on linux.")
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO RealTimeChris/DiscordCoreAPI
|
|
REF c708c4c78b1478123bca314718ce5e2c2edafcf8
|
|
SHA512 66415ad7ec0cfce55f3d89edb89e821b6c9d97cfcfbd0b9b321f2546f1f58511d72b9aa9a91f878441b445bdda7d259ec25e441cfe9101793348b92c3600ba5f
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(NO_PREFIX_CORRECTION)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|
|
|
|
file(
|
|
INSTALL "${SOURCE_PATH}/License.md"
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
|
RENAME copyright
|
|
)
|