mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
fb63ec2e08
* Updating relevant files. * Updating relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Updating the relevant files. * Update discordcoreapi.json
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 38a809b2b4c481b5acd2c695e47125f031a6b326
|
|
SHA512 99fa48aec9adabe8c09e794bac3e622f3da2206cfdf0dab2c97827c7e8703e31f377ff03bc9f253e165e333962e0e0f3dfe25b82f075207a08d847acccef5ae8
|
|
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
|
|
)
|