mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 00:09:01 +08:00
335a3c73c8
* New port sleepy-discord * Add versions for Sleepy Discord * SleepyDiscord: use website as homepage * SleepyDiscord: Remove No newline at end git diff * SleepyDiscord: format manifest * SleepyDiscord: rerun x-add-version * SleepyDiscord: add compression feature * SleepyDiscord: Update version string * SleepyDiscord: rerun x-add-version again * SleepyDiscord: set version-date * SleepyDiscord: rerun add-version * SleepyDiscord: Add requested changes * SleepyDiscord: run add version * SleepyDiscord: update library * SleepyDiscord: rerun x-add-version * SleepyDiscord: copy config file to share folder * SleepyDiscord: run add-version * SleepyDiscord: Fix issue with parallel configuring * SleepyDiscord: x-add-version * SleepyDiscord: replace deprecated functions * SleepyDiscord: x-add-version * SleepyDiscord: Install config during configure * SleepyDiscord: x-add-version * [sleepy-discord] update: add Select Menus * [sleepy-discord] run add-version * [sleepy-discord] rerun add-verion
44 lines
1.4 KiB
CMake
44 lines
1.4 KiB
CMake
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
"websocketpp" USE_WEBSOCKETPP
|
|
"websocketpp" USE_BOOST_ASIO
|
|
"cpr" USE_CPR
|
|
"voice" ENABLE_VOICE
|
|
"compression" USE_ZLIB
|
|
)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO yourWaifu/sleepy-discord
|
|
REF 53e68d6a569ab6da17b74279e308bf94919db933
|
|
SHA512 1ee6de7aa70f3d7fc6ec0e21f5e65c6a868c23a29b4f26f614b59bbce3425c1305ce192562bf287d40f98060301b8638bc4bef95789fe8594ce5809adb6dc1e5
|
|
HEAD_REF develop
|
|
)
|
|
|
|
# Handle version data here to prevent issues from doing this twice in parallel
|
|
set(SLEEPY_DISCORD_VERSION_HASH 53e68d6a569ab6da17b74279e308bf94919db933)
|
|
set(SLEEPY_DISCORD_VERSION_BUILD 908)
|
|
set(SLEEPY_DISCORD_VERSION_BRANCH "develop")
|
|
set(SLEEPY_DISCORD_VERSION_IS_MASTER 0)
|
|
set(SLEEPY_DISCORD_VERSION_DESCRIPTION_CONCAT " ")
|
|
set(SLEEPY_DISCORD_VERSION_DESCRIPTION "53e68d6")
|
|
configure_file(
|
|
"${SOURCE_PATH}/include/sleepy_discord/version.h.in"
|
|
"${SOURCE_PATH}/include/sleepy_discord/version.h"
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DSLEEPY_VCPKG=ON
|
|
-DAUTO_DOWNLOAD_LIBRARY=OFF
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/sleepy-discord)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|