diff --git a/CMakeModules/DuckStationDependencies.cmake b/CMakeModules/DuckStationDependencies.cmake
index a7c54e972..44aca88a0 100644
--- a/CMakeModules/DuckStationDependencies.cmake
+++ b/CMakeModules/DuckStationDependencies.cmake
@@ -17,6 +17,7 @@ find_package(PNG 1.6.40 REQUIRED)
find_package(JPEG REQUIRED) # No version because flatpak uses libjpeg-turbo.
find_package(Freetype 2.11.1 REQUIRED)
find_package(cpuinfo REQUIRED)
+find_package(DiscordRPC 3.4.0 REQUIRED)
if(NOT WIN32)
find_package(CURL REQUIRED)
diff --git a/dep/CMakeLists.txt b/dep/CMakeLists.txt
index 4c9a79253..dbb40b497 100644
--- a/dep/CMakeLists.txt
+++ b/dep/CMakeLists.txt
@@ -28,8 +28,6 @@ disable_compiler_warnings_for_target(rapidyaml)
add_subdirectory(cubeb EXCLUDE_FROM_ALL)
disable_compiler_warnings_for_target(cubeb)
disable_compiler_warnings_for_target(speex)
-add_subdirectory(discord-rpc EXCLUDE_FROM_ALL)
-disable_compiler_warnings_for_target(discord-rpc)
add_subdirectory(kissfft EXCLUDE_FROM_ALL)
disable_compiler_warnings_for_target(kissfft)
add_subdirectory(freesurround EXCLUDE_FROM_ALL)
diff --git a/duckstation.sln b/duckstation.sln
index b7abac8ab..2698e08c8 100644
--- a/duckstation.sln
+++ b/duckstation.sln
@@ -36,8 +36,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "common-tests", "src\common-
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "scmversion", "src\scmversion\scmversion.vcxproj", "{075CED82-6A20-46DF-94C7-9624AC9DDBEB}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "discord-rpc", "dep\discord-rpc\discord-rpc.vcxproj", "{4266505B-DBAF-484B-AB31-B53B9C8235B3}"
-EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "updater", "src\updater\updater.vcxproj", "{32EEAF44-57F8-4C6C-A6F0-DE5667123DD5}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vixl", "dep\vixl\vixl.vcxproj", "{8906836E-F06E-46E8-B11A-74E5E8C7B8FB}"
@@ -466,34 +464,6 @@ Global
{075CED82-6A20-46DF-94C7-9624AC9DDBEB}.ReleaseLTCG-Clang|ARM64.Build.0 = ReleaseLTCG-Clang|ARM64
{075CED82-6A20-46DF-94C7-9624AC9DDBEB}.ReleaseLTCG-Clang|x64.ActiveCfg = ReleaseLTCG-Clang|x64
{075CED82-6A20-46DF-94C7-9624AC9DDBEB}.ReleaseLTCG-Clang|x64.Build.0 = ReleaseLTCG-Clang|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.Debug|ARM64.ActiveCfg = Debug|ARM64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.Debug|x64.ActiveCfg = Debug|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.Debug|x64.Build.0 = Debug|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.Debug-Clang|ARM64.ActiveCfg = Debug-Clang|ARM64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.Debug-Clang|ARM64.Build.0 = Debug-Clang|ARM64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.Debug-Clang|x64.ActiveCfg = Debug-Clang|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.Debug-Clang|x64.Build.0 = Debug-Clang|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.DebugFast|ARM64.ActiveCfg = DebugFast|ARM64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.DebugFast|x64.ActiveCfg = DebugFast|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.DebugFast|x64.Build.0 = DebugFast|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.DebugFast-Clang|ARM64.ActiveCfg = DebugFast-Clang|ARM64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.DebugFast-Clang|ARM64.Build.0 = DebugFast-Clang|ARM64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.DebugFast-Clang|x64.ActiveCfg = DebugFast-Clang|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.DebugFast-Clang|x64.Build.0 = DebugFast-Clang|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.Release|ARM64.ActiveCfg = Release|ARM64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.Release|x64.ActiveCfg = Release|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.Release|x64.Build.0 = Release|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.Release-Clang|ARM64.ActiveCfg = Release-Clang|ARM64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.Release-Clang|ARM64.Build.0 = Release-Clang|ARM64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.Release-Clang|x64.ActiveCfg = Release-Clang|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.Release-Clang|x64.Build.0 = Release-Clang|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.ReleaseLTCG|ARM64.ActiveCfg = ReleaseLTCG|ARM64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.ReleaseLTCG|x64.ActiveCfg = ReleaseLTCG|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.ReleaseLTCG|x64.Build.0 = ReleaseLTCG|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.ReleaseLTCG-Clang|ARM64.ActiveCfg = ReleaseLTCG-Clang|ARM64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.ReleaseLTCG-Clang|ARM64.Build.0 = ReleaseLTCG-Clang|ARM64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.ReleaseLTCG-Clang|x64.ActiveCfg = ReleaseLTCG-Clang|x64
- {4266505B-DBAF-484B-AB31-B53B9C8235B3}.ReleaseLTCG-Clang|x64.Build.0 = ReleaseLTCG-Clang|x64
{32EEAF44-57F8-4C6C-A6F0-DE5667123DD5}.Debug|ARM64.ActiveCfg = Debug|ARM64
{32EEAF44-57F8-4C6C-A6F0-DE5667123DD5}.Debug|x64.ActiveCfg = Debug|x64
{32EEAF44-57F8-4C6C-A6F0-DE5667123DD5}.Debug-Clang|ARM64.ActiveCfg = Debug-Clang|ARM64
@@ -864,7 +834,6 @@ Global
{DD944834-7899-4C1C-A4C1-064B5009D239} = {BA490C0E-497D-4634-A21E-E65012006385}
{09553C96-9F39-49BF-8AE6-7ACBD07C410C} = {BA490C0E-497D-4634-A21E-E65012006385}
{49953E1B-2EF7-46A4-B88B-1BF9E099093B} = {BA490C0E-497D-4634-A21E-E65012006385}
- {4266505B-DBAF-484B-AB31-B53B9C8235B3} = {BA490C0E-497D-4634-A21E-E65012006385}
{8906836E-F06E-46E8-B11A-74E5E8C7B8FB} = {BA490C0E-497D-4634-A21E-E65012006385}
{4BA0A6D4-3AE1-42B2-9347-096FD023FF64} = {BA490C0E-497D-4634-A21E-E65012006385}
{E4357877-D459-45C7-B8F6-DCBB587BB528} = {BA490C0E-497D-4634-A21E-E65012006385}
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 0e51e7d46..6218ee8be 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -184,7 +184,7 @@ endif()
if(NOT ANDROID)
target_compile_definitions(core PUBLIC -DENABLE_DISCORD_PRESENCE=1)
- target_link_libraries(core PRIVATE discord-rpc)
+ target_link_libraries(core PRIVATE DiscordRPC::discord-rpc)
endif()
# Copy the provided data directory to the output directory. Borrowed from PCSX2.
diff --git a/src/core/core.props b/src/core/core.props
index 7fbaca20b..23de0f982 100644
--- a/src/core/core.props
+++ b/src/core/core.props
@@ -10,7 +10,7 @@
ENABLE_MMAP_FASTMEM=1;%(PreprocessorDefinitions)
ENABLE_NEWREC=1;%(PreprocessorDefinitions)
- %(AdditionalIncludeDirectories);$(SolutionDir)dep\zlib\include;$(SolutionDir)dep\rcheevos\include;$(SolutionDir)dep\discord-rpc\include
+ %(AdditionalIncludeDirectories);$(SolutionDir)dep\zlib\include;$(SolutionDir)dep\rcheevos\include
%(PreprocessorDefinitions);C4_NO_DEBUG_BREAK=1
%(AdditionalIncludeDirectories);$(SolutionDir)dep\rapidyaml\include;$(SolutionDir)dep\rapidjson\include
diff --git a/src/core/core.vcxproj b/src/core/core.vcxproj
index 86f529acc..ee74c8b36 100644
--- a/src/core/core.vcxproj
+++ b/src/core/core.vcxproj
@@ -169,9 +169,6 @@
-
- {4266505b-dbaf-484b-ab31-b53b9c8235b3}
-
{bb08260f-6fbc-46af-8924-090ee71360c6}
diff --git a/src/duckstation-qt/CMakeLists.txt b/src/duckstation-qt/CMakeLists.txt
index 3b34fcb85..1f07aa762 100644
--- a/src/duckstation-qt/CMakeLists.txt
+++ b/src/duckstation-qt/CMakeLists.txt
@@ -207,7 +207,8 @@ if(WIN32)
)
#set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/translations")
- set(DEPS_TO_COPY cpuinfo.dll freetype.dll harfbuzz.dll libjpeg.dll libpng16.dll libsharpyuv.dll libwebp.dll SDL2.dll shaderc_shared.dll spirv-cross-c-shared.dll zlib1.dll zstd.dll)
+ set(DEPS_TO_COPY cpuinfo.dll discord-rpc.dll freetype.dll harfbuzz.dll libjpeg.dll libpng16.dll libsharpyuv.dll libwebp.dll
+ SDL2.dll shaderc_shared.dll spirv-cross-c-shared.dll zlib1.dll zstd.dll)
foreach(DEP ${DEPS_TO_COPY})
list(APPEND DEP_BINS "${CMAKE_PREFIX_PATH}/bin/${DEP}")
endforeach()
diff --git a/src/util/util.props b/src/util/util.props
index 0549e519c..0c90a3fdb 100644
--- a/src/util/util.props
+++ b/src/util/util.props
@@ -27,11 +27,12 @@
%(AdditionalIncludeDirectories);$(DepsIncludeDir)SDL2
- %(AdditionalDependencies);cpuinfo.lib;freetype.lib;libjpeg.lib;libpng16.lib;libwebp.lib;SDL2.lib;zlib.lib;zstd.lib
+ %(AdditionalDependencies);cpuinfo.lib;discord-rpc.lib;freetype.lib;libjpeg.lib;libpng16.lib;libwebp.lib;SDL2.lib;zlib.lib;zstd.lib
+