mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-22 10:37:10 +01:00
[discord-game-sdk] Won't compile with certain compilers (#11728)
* [discord-game-sdk] Added required flag for compiling * [discord-game-sdk] Added patch for fixing cstdint issue * [discord-game-sdk] Bumped version for patch * [discord-game-sdk] Formatting Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
parent
8c0860c915
commit
0f161f9e12
@ -1,5 +1,5 @@
|
|||||||
Source: discord-game-sdk
|
Source: discord-game-sdk
|
||||||
Version: 2.5.6
|
Version: 2.5.6-1
|
||||||
Homepage: https://discordapp.com/developers/docs/game-sdk/sdk-starter-guide
|
Homepage: https://discordapp.com/developers/docs/game-sdk/sdk-starter-guide
|
||||||
Description: The Discord GameSDK is an easy drop-in SDK to help you manage all the hard things that come with making a game.
|
Description: The Discord GameSDK is an easy drop-in SDK to help you manage all the hard things that come with making a game.
|
||||||
Supports: ((x64 && (windows || osx || linux)) || (x86 && windows)) && !uwp && !static
|
Supports: ((x64 && (windows || osx || linux)) || (x86 && windows)) && !uwp && !static
|
25
ports/discord-game-sdk/include-cstdint.patch
Normal file
25
ports/discord-game-sdk/include-cstdint.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 91fab7c4b8f7da3182f07f5392ebe9388f979157 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Maki <mxmcube@gmail.com>
|
||||||
|
Date: Wed, 3 Jun 2020 01:40:58 +0100
|
||||||
|
Subject: [PATCH] Include cstdint
|
||||||
|
|
||||||
|
---
|
||||||
|
cpp/types.h | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/cpp/types.h b/cpp/types.h
|
||||||
|
index 8c7cc2b..122dc71 100644
|
||||||
|
--- a/cpp/types.h
|
||||||
|
+++ b/cpp/types.h
|
||||||
|
@@ -3,6 +3,8 @@
|
||||||
|
#include "ffi.h"
|
||||||
|
#include "event.h"
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
+
|
||||||
|
namespace discord {
|
||||||
|
|
||||||
|
enum class Result {
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
@ -15,6 +15,8 @@ vcpkg_extract_source_archive_ex(
|
|||||||
OUT_SOURCE_PATH SOURCE_PATH
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
ARCHIVE ${ARCHIVE}
|
ARCHIVE ${ARCHIVE}
|
||||||
NO_REMOVE_ONE_LEVEL
|
NO_REMOVE_ONE_LEVEL
|
||||||
|
PATCHES
|
||||||
|
include-cstdint.patch # allows compiling on newer versions of GCC
|
||||||
)
|
)
|
||||||
|
|
||||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION ${SOURCE_PATH})
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION ${SOURCE_PATH})
|
||||||
@ -48,4 +50,4 @@ vcpkg_install_cmake()
|
|||||||
|
|
||||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user