From 715170759c277944d39c28769b05a3bc5f5974ea Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Thu, 9 Feb 2017 23:46:23 -0800 Subject: [PATCH] Use .manifest file for apps on Windows Works with CMake, and also adds DPI awareness to DolphinQt2 (which wasn't enabled before). --- Source/Core/DolphinQt2/CMakeLists.txt | 4 ++++ Source/Core/DolphinQt2/DolphinQt2.manifest | 8 ++++++++ Source/Core/DolphinQt2/DolphinQt2.vcxproj | 5 ++++- Source/Core/DolphinWX/CMakeLists.txt | 5 ++++- Source/Core/DolphinWX/DolphinWX.manifest | 8 ++++++++ Source/Core/DolphinWX/DolphinWX.vcxproj | 2 +- 6 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 Source/Core/DolphinQt2/DolphinQt2.manifest create mode 100644 Source/Core/DolphinWX/DolphinWX.manifest diff --git a/Source/Core/DolphinQt2/CMakeLists.txt b/Source/Core/DolphinQt2/CMakeLists.txt index a3ec2d13a9..ce59f8b243 100644 --- a/Source/Core/DolphinQt2/CMakeLists.txt +++ b/Source/Core/DolphinQt2/CMakeLists.txt @@ -32,6 +32,10 @@ set(SRCS list(APPEND LIBS core uicommon) +if(WIN32) + list(APPEND SRCS DolphinQt2.manifest) +endif() + set(DOLPHINQT2_BINARY dolphin-emu-qt2) add_executable(${DOLPHINQT2_BINARY} ${SRCS} ${UI_HEADERS}) diff --git a/Source/Core/DolphinQt2/DolphinQt2.manifest b/Source/Core/DolphinQt2/DolphinQt2.manifest new file mode 100644 index 0000000000..aad83c561a --- /dev/null +++ b/Source/Core/DolphinQt2/DolphinQt2.manifest @@ -0,0 +1,8 @@ + + + + + true + + + diff --git a/Source/Core/DolphinQt2/DolphinQt2.vcxproj b/Source/Core/DolphinQt2/DolphinQt2.vcxproj index 722b678537..90773ae69f 100644 --- a/Source/Core/DolphinQt2/DolphinQt2.vcxproj +++ b/Source/Core/DolphinQt2/DolphinQt2.vcxproj @@ -65,6 +65,9 @@ $(ExternalsDir)/gettext + + DolphinQt2.manifest;%(AdditionalManifestFiles) + @@ -236,4 +239,4 @@ - \ No newline at end of file + diff --git a/Source/Core/DolphinWX/CMakeLists.txt b/Source/Core/DolphinWX/CMakeLists.txt index 7f4c258867..8c104a877c 100644 --- a/Source/Core/DolphinWX/CMakeLists.txt +++ b/Source/Core/DolphinWX/CMakeLists.txt @@ -108,7 +108,10 @@ if(APPLE) endif() if(WIN32) - list(APPEND SRCS DolphinWX.rc) + list(APPEND SRCS + DolphinWX.manifest + DolphinWX.rc + ) endif() if(APPLE) diff --git a/Source/Core/DolphinWX/DolphinWX.manifest b/Source/Core/DolphinWX/DolphinWX.manifest new file mode 100644 index 0000000000..aad83c561a --- /dev/null +++ b/Source/Core/DolphinWX/DolphinWX.manifest @@ -0,0 +1,8 @@ + + + + + true + + + diff --git a/Source/Core/DolphinWX/DolphinWX.vcxproj b/Source/Core/DolphinWX/DolphinWX.vcxproj index bae3476422..da2dba0fea 100644 --- a/Source/Core/DolphinWX/DolphinWX.vcxproj +++ b/Source/Core/DolphinWX/DolphinWX.vcxproj @@ -51,7 +51,7 @@ - true + DolphinWX.manifest;%(AdditionalManifestFiles)