From da25baccadea42579a657a145dc343cebe653f0e Mon Sep 17 00:00:00 2001 From: CocoSimone Date: Fri, 9 Dec 2022 01:36:46 +0100 Subject: [PATCH] update parallel-rdp and enable lto --- external/parallel-rdp/CMakeLists.txt | 5 +++-- external/parallel-rdp/parallel-rdp-standalone | 2 +- src/CMakeLists.txt | 2 ++ src/util.hpp | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/external/parallel-rdp/CMakeLists.txt b/external/parallel-rdp/CMakeLists.txt index 35acb0de..dec7168a 100644 --- a/external/parallel-rdp/CMakeLists.txt +++ b/external/parallel-rdp/CMakeLists.txt @@ -32,8 +32,9 @@ add_library(parallel-rdp parallel-rdp-standalone/vulkan/texture_format.cpp parallel-rdp-standalone/vulkan/wsi.cpp parallel-rdp-standalone/vulkan/wsi.hpp - parallel-rdp-standalone/vulkan/wsi_timing.cpp - parallel-rdp-standalone/vulkan/wsi_timing.hpp + parallel-rdp-standalone/vulkan/memory_allocator.cpp + parallel-rdp-standalone/util/arena_allocator.cpp + parallel-rdp-standalone/vulkan/wsi.hpp parallel-rdp-standalone/util/aligned_alloc.cpp parallel-rdp-standalone/util/timer.cpp parallel-rdp-standalone/util/timeline_trace_file.cpp diff --git a/external/parallel-rdp/parallel-rdp-standalone b/external/parallel-rdp/parallel-rdp-standalone index 84bdc0c5..cc7c8801 160000 --- a/external/parallel-rdp/parallel-rdp-standalone +++ b/external/parallel-rdp/parallel-rdp-standalone @@ -1 +1 @@ -Subproject commit 84bdc0c552cbbc82e4642f758c4fcfd8766e51f5 +Subproject commit cc7c8801f7cb39c5af58a04f079837a54305c9b6 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 989c0efd..2b702508 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -49,6 +49,8 @@ target_include_directories(gadolinium PRIVATE ${SDL2_INCLUDE_DIR} ) +set_target_properties(gadolinium PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE) + file(COPY ${PROJECT_SOURCE_DIR}/../resources/ DESTINATION ${PROJECT_BINARY_DIR}/resources/) file(REMOVE ${PROJECT_BINARY_DIR}/resources/mario.png diff --git a/src/util.hpp b/src/util.hpp index 4cfd0866..a321caa5 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -295,7 +295,7 @@ inline void UpdateRPC(State state, const std::string& game = "") { presence.state = textState.c_str(); presence.startTimestamp = time(nullptr); presence.largeImageText = "Gadolinium"; - presence.largeImageKey = "lain"; + presence.largeImageKey = "logo"; Discord_UpdatePresence(&presence); }