-
Notifications
You must be signed in to change notification settings - Fork 7.1k
[discord-game-sdk] new port #10763
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
[discord-game-sdk] new port #10763
Conversation
Seems like CI ignores |
Could you please look into the regressions on Windows and osx?
x64-osx:
|
@NancyLi1013 static is expected to fail, and I added As for macOS, I'm still unsure what needs to be done with the .bundle file that is part of the SDK. Does vcpkg have any handling for that? |
vcpkg is an open source package manager. We hope that the integrated ports are all open source to ensure the security and reliability of the library. |
Whether that SDK is open source or not is out of my control, I'm just attempting to use it in my own OSS project, and the recommended way (putting the files in your source project) is incompatible with OSS projects since that is redistribution of the files which is against the license of the SDK (a script locally acquiring them like a vcpkg portfile is fine however). Telling contributors to manually put them somewhere in the project is also a very poor option for a plethora of reasons. I could use a local ports overlay (and I already do for some packages that have custom patches or custom libraries I don't feel are in a good enough state to release them to everyone) but I'd rather see this merged within vcpkg itself so that its both kept up to date with changes in vcpkg and reusable by others. |
/azp run |
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
After discussion, we think that this port can be added to vcpkg. |
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.
Please add the following code to VCPKG_PATH/scripts/ci.baseline.txt:
discord-game-sdk:x64-osx=fail
discord-game-sdk:x64-windows-static=fail
macOS shouldn't fail, I can fix it, but I am still unsure about what to do with the |
@sylveon Since we have archived the binary, if the bundle file has nothing to do with the archived binaries, we can install it to share/${PORT} . |
Has been clarified to me that the |
Alright this PR is now in a state that I consider acceptable so I'll mark it ready for review. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Hey, could you change the license file to a link to https://discordapp.com/developers/docs/legal? We want to make sure it stays up to date :)
@strega-nil done! |
Cool, thanks @sylveon :) |
This adds the Discord Game SDK as installable library in vcpkg. It supports Windows x86, Windows x64, macOS x64 and Linux x64.
It's a bit of an oddball because it has a C-compatible DLL component and source code that needs to be built in the consumer's C++ project to provide a C++ API. This is worked around in vcpkg by compiling the source code as static library, so the final package contains both static and dynamic contents. The DLL is always required, so the package ensures
ONLY_DYNAMIC_LIBRARY
.This is opened as draft because I'm unsure about a couple of things.I do not use macOS, and a web search was not of big help about the utility of the .bundle file in the SDK download. What should I do with it?I want to build pdbs for both release and debug static libraries but for some reason none seem to be generated, even in debug.Any assistance about those two details would be appreciated.