-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sleepy-discord] Add new port #17604
Merged
Merged
Changes from 23 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
f5a7bd8
New port sleepy-discord
yourWaifu 46671ad
Add versions for Sleepy Discord
yourWaifu e5010b0
SleepyDiscord: use website as homepage
yourWaifu 77f8f7e
SleepyDiscord: Remove No newline at end git diff
yourWaifu 03237cd
SleepyDiscord: format manifest
yourWaifu d638d8e
SleepyDiscord: rerun x-add-version
yourWaifu 4bb8300
SleepyDiscord: add compression feature
yourWaifu f7edd5e
SleepyDiscord: Update version string
yourWaifu 3d01760
SleepyDiscord: rerun x-add-version again
yourWaifu 9f70801
SleepyDiscord: set version-date
yourWaifu 2da2bc5
SleepyDiscord: rerun add-version
yourWaifu cc143b4
SleepyDiscord: Add requested changes
yourWaifu 51171f1
SleepyDiscord: run add version
yourWaifu 9d201e1
SleepyDiscord: update library
yourWaifu b3cbdf9
SleepyDiscord: rerun x-add-version
yourWaifu b0cbe8e
SleepyDiscord: copy config file to share folder
yourWaifu f457f57
SleepyDiscord: run add-version
yourWaifu df221fd
SleepyDiscord: Fix issue with parallel configuring
yourWaifu 858e2e6
SleepyDiscord: x-add-version
yourWaifu 51941a0
SleepyDiscord: replace deprecated functions
yourWaifu 22f9ce1
SleepyDiscord: x-add-version
yourWaifu 17b5658
SleepyDiscord: Install config during configure
yourWaifu cbcf5f7
SleepyDiscord: x-add-version
yourWaifu b8908ef
Merge branch 'master' into master
yourWaifu a1511d8
[sleepy-discord] update: add Select Menus
yourWaifu a3c6c2b
[sleepy-discord] run add-version
yourWaifu 574650a
Merge branch 'master' of github.com:yourWaifu/vcpkg into yourwaifu
yourWaifu 90e4160
[sleepy-discord] rerun add-verion
yourWaifu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
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 1d818e1084b85e56b8ab99852f79b974d615c66d | ||
SHA512 b137ba378c00d476d1bb725c9d52801b5e0114f96743f842b7b8332ed2050185dd49a58efff233c91217abb1e31b8a35d37f8a45f6497d96953bbb38c77ea202 | ||
HEAD_REF develop | ||
) | ||
|
||
# Handle version data here to prevent issues from doing this twice in parallel | ||
set(SLEEPY_DISCORD_VERSION_HASH 1d818e1084b85e56b8ab99852f79b974d615c66d) | ||
set(SLEEPY_DISCORD_VERSION_BUILD 905) | ||
set(SLEEPY_DISCORD_VERSION_BRANCH "develop") | ||
set(SLEEPY_DISCORD_VERSION_IS_MASTER 0) | ||
set(SLEEPY_DISCORD_VERSION_DESCRIPTION_CONCAT " ") | ||
set(SLEEPY_DISCORD_VERSION_DESCRIPTION "1d818e1") | ||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"name": "sleepy-discord", | ||
"version-date": "2021-05-02", | ||
"description": "C++ library for the Discord chat client", | ||
"homepage": "https://yourwaifu.dev/sleepy-discord/", | ||
"dependencies": [ | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
} | ||
], | ||
"default-features": [ | ||
"cpr", | ||
"websocketpp" | ||
], | ||
"features": { | ||
"compression": { | ||
"description": "Allow compression for Websockets connection", | ||
"dependencies": [ | ||
"zlib" | ||
] | ||
}, | ||
"cpr": { | ||
"description": "Use CPR library for handling HTTPS", | ||
"dependencies": [ | ||
"cpr" | ||
] | ||
}, | ||
"voice": { | ||
"description": "Voice Chat support", | ||
"dependencies": [ | ||
"libsodium", | ||
"opus" | ||
yourWaifu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
] | ||
}, | ||
"websocketpp": { | ||
"description": "Use Websocketpp for handling WebSockets", | ||
"dependencies": [ | ||
"boost-random", | ||
"websocketpp" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"versions": [ | ||
{ | ||
"git-tree": "0d9d62b7213333d04c90878bb1e6573ad3f5316f", | ||
"version-date": "2021-05-02", | ||
"port-version": 0 | ||
} | ||
] | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do these need to be on-by-default? Does it ever make sense for them to be disabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a very rare case, where you might need to replace these libraries depending on the hardware you want to run on. However, I gave it some thought and I can replace this with a feature called "core-only" that turns these off, removes the the default features thing, and doesn't depend on other dependences.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I'm not sure how to add a feature that removes dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Features are there to extend something, never to reduce something. So you can't remove dependencies with features.