Skip to content

Instantly share code, notes, and snippets.

@Knightly1
Knightly1 / portfile.cmake
Created December 2, 2020 00:58
Sleepy Discord vcpkg - portfile
include(vcpkg_common_functions)
if ("websocketpp" IN_LIST FEATURES)
set(USE_WEBSOCKETPP ON)
elseif("uwebsockets" IN_LIST FEATURES)
set(USE_WEBSOCKETPP OFF)
set(USE_UWEBSOCKETS ON)
endif()
if ("voice" IN_LIST FEATURES)
@Knightly1
Knightly1 / CONTROL
Created December 2, 2020 00:57
Sleepy Discord vcpkg - Control file
Source: sleepy-discord
Version: 2020-07-05
Homepage: https://yourwaifu.dev/sleepy-discord/documentation.html
Description: C++ library for Discord
Build-Depends: cpr
Feature: websocketpp
Description: Use websocketpp for sleepy-discord
Build-Depends: openssl-windows, asio, websocketpp
@Knightly1
Knightly1 / 0002-sleepy-discord-CMakeLists.patch
Created December 2, 2020 00:56
Sleepy Discord vcpkg - sleepy-discord/CMakeLists Patch
---
sleepy_discord/CMakeLists.txt | 99 +++++++++++++++++++++++------------
1 file changed, 65 insertions(+), 34 deletions(-)
diff --git a/sleepy_discord/CMakeLists.txt b/sleepy_discord/CMakeLists.txt
index 94d7c71..b6a59a2 100644
--- a/sleepy_discord/CMakeLists.txt
+++ b/sleepy_discord/CMakeLists.txt
@@ -52,10 +52,14 @@ if (NOT ONLY_SLEEPY_DISCORD)
#for some reason you a limited ammount of target_link_libraries calls
@Knightly1
Knightly1 / 0001-CMakeLists.patch
Created December 2, 2020 00:55
Sleepy Discord vcpkg - CMakeLists Patch
---
CMakeLists.txt | 81 +++++++++++++++++++++++++++++++-------------------
1 file changed, 50 insertions(+), 31 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cb18825..d3c2e48 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,6 +7,7 @@ option(ONLY_SLEEPY_DISCORD "Sleepy Discord but none of the dependencie
option(ENABLE_VOICE "Enable voice support" OFF)