Skip to content

Commit

Permalink
[discordapi] Update to 2023-01-02 version. (microsoft#28956)
Browse files Browse the repository at this point in the history
* [discordapi] Update to 2023-01-02 version.

* Update versions.
  • Loading branch information
Sibras authored Jan 15, 2023
1 parent 6245ce4 commit f76aa21
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
12 changes: 12 additions & 0 deletions ports/discordcoreapi/0001-Add-extern-C-to-avcodec.patch
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@ index 42bd4543..ff210878 100644

namespace DiscordCoreInternal {

diff --git a/Include/discordcoreapi/AudioDecoder.hpp b/Include/discordcoreapi/AudioDecoder.hpp
--- a/Include/discordcoreapi/AudioDecoder.hpp (revision 1ecbbc1b3a7f6bd3ff5e6ca0be8606ec50f17ec1)
+++ b/Include/discordcoreapi/AudioDecoder.hpp (revision 3c80cf0c54719008610fc96bb457345bf0170701)
@@ -29,6 +29,7 @@
#include <opus/opus.h>

extern "C" {
+#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswresample/swresample.h>
}

4 changes: 2 additions & 2 deletions ports/discordcoreapi/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO RealTimeChris/DiscordCoreAPI
REF c8591ab721b76a7649cb5b45944fab1c5c798242
SHA512 943d2a77dc3d297b4ec84d6b4808554aec9a89c33a242e5f6401a9831f674ff948f53d3e877737a40517a393b3b2a9bd873c6007a193892743c88c2fdb58341a
REF c8d4698d2c0ee818def85d63562585a218b2da70
SHA512 82a2bada44d1e2c2cc4638b885011a95189febd77bc4d3c26ce8c25005b8202d6c7cbb1f580dbcc1556dd0919f33cfb25127774f37cea17a544fbe31970618b5
HEAD_REF main
PATCHES
0001-Add-extern-C-to-avcodec.patch
Expand Down
3 changes: 1 addition & 2 deletions ports/discordcoreapi/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "discordcoreapi",
"version-date": "2022-12-04",
"port-version": 1,
"version-date": "2023-01-02",
"description": "A Discord bot library written in C++ using custom asynchronous coroutines.",
"homepage": "https://discordcoreapi.com",
"license": "LGPL-2.1-or-later",
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1993,8 +1993,8 @@
"port-version": 1
},
"discordcoreapi": {
"baseline": "2022-12-04",
"port-version": 1
"baseline": "2023-01-02",
"port-version": 0
},
"discount": {
"baseline": "2.2.6",
Expand Down
5 changes: 5 additions & 0 deletions versions/d-/discordcoreapi.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "90c3313d8c31b532ab7e876d0b2f962d29e757f7",
"version-date": "2023-01-02",
"port-version": 0
},
{
"git-tree": "d73e8f486425465e5ea3fe24db81e36cfaf4ac3b",
"version-date": "2022-12-04",
Expand Down

0 comments on commit f76aa21

Please sign in to comment.