vcpkg/ports/discordcoreapi/portfile.cmake
RealTimeChris 0555f524f1
[Jsonifier] to v0.9.95 and [DiscordCoreAPI] to v2.0.6 (#38556)
Jsonifier Changes:
* Added support for Arm-Neon 128-bit SIMD intrinsics.
* Modified some lines to correct cleanliness.
* Updated the raw_json_data class to remove superfluous functions.
* Updated some of the error_codes.
* Modified the parser, validator, serializer, and minifier classes to
reduce function call overhead.
* Refactored the usage of ascii_classes to instead utilize the
json_structural_type enumeration.
* Modified the CPU-detection script.
* Added a new compare function to accelerate string comparisons.
* Added MSVC, CLANG and GNU macros.

DiscordCoreAPI Changes:
* Updated the song platforms to support requesting playlists.
* Added a DCA_INLINE macro.
* Modified the usage of certain Jsonifier classes to hold up to the
updates.

- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [x] SHA512s are updated for each updated download.
- [x] The "supports" clause reflects platforms that may be fixed by this
new version.
- [x] Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.
- [x] Any patches that are no longer applied are deleted from the port's
directory.
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.
2024-05-03 15:26:46 -07:00

28 lines
840 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 "v${VERSION}"
SHA512 99d1792e9949e50c856fb1833a839ae8c31cd9290c43b6091086387722d838472088443352b8ebdbd88f0e7ac5bfa756e175e4f048def1b30153623f532c7e5a
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()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License.md")