This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merge DPI scaling branch

  • Loading branch information...
nlyan committed Oct 4, 2016
2 parents d99bd8e + 8788faf commit 0c76f9feeb6d375d09ec88b66d0bf1a4cc19d544
Showing with 42 additions and 0 deletions.
  1. +15 −0 res/dpiaware.manifest
  2. +9 −0 src/cmd/synergyc/CMakeLists.txt
  3. +9 −0 src/cmd/synergyd/CMakeLists.txt
  4. +9 −0 src/cmd/synergys/CMakeLists.txt
View
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" manifestVersion="1.0">
+ <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
+ <application>
+ <!-- Windows 7 -->
+ <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />
+ </application>
+ </compatibility>
+ <asmv3:application>
+ <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
+ <dpiAware>true</dpiAware>
+ </asmv3:windowsSettings>
+ </asmv3:application>
+</assembly>
+
@@ -60,6 +60,15 @@ add_executable(synergyc ${sources})
target_link_libraries(synergyc
arch base client common io mt net ipc platform server synergy ${libs} ${OPENSSL_LIBS})
+if (WIN32)
+ ADD_CUSTOM_COMMAND(
+ TARGET synergyc
+ POST_BUILD
+ COMMAND "mt.exe" -manifest \"${CMAKE_SOURCE_DIR}\\res\\dpiaware.manifest\" -inputresource:\"$<TARGET_FILE:synergyc>\"\;\#1 -outputresource:\"$<TARGET_FILE:synergyc>\"\;\#1
+ COMMENT "Adding display aware manifest..."
+ )
+endif()
+
if (CONF_CPACK)
install(TARGETS
synergyc
@@ -37,6 +37,15 @@ endif()
target_link_libraries(synergyd
arch base common io ipc mt net platform synergy ${libs} ${OPENSSL_LIBS})
+if (WIN32)
+ ADD_CUSTOM_COMMAND(
+ TARGET synergyd
+ POST_BUILD
+ COMMAND "mt.exe" -manifest \"${CMAKE_SOURCE_DIR}\\res\\dpiaware.manifest\" -inputresource:\"$<TARGET_FILE:synergyd>\"\;\#1 -outputresource:\"$<TARGET_FILE:synergyd>\"\;\#1
+ COMMENT "Adding display aware manifest..."
+ )
+endif()
+
if (CONF_CPACK)
install(TARGETS
synergyd
@@ -60,6 +60,15 @@ add_executable(synergys ${sources})
target_link_libraries(synergys
arch base client common io mt net ipc platform server synergy ${libs} ${OPENSSL_LIBS})
+if (WIN32)
+ ADD_CUSTOM_COMMAND(
+ TARGET synergys
+ POST_BUILD
+ COMMAND "mt.exe" -manifest \"${CMAKE_SOURCE_DIR}\\res\\dpiaware.manifest\" -inputresource:\"$<TARGET_FILE:synergys>\"\;\#1 -outputresource:\"$<TARGET_FILE:synergys>\"\;\#1
+ COMMENT "Adding display aware manifest..."
+ )
+endif()
+
if (CONF_CPACK)
install(TARGETS
synergys

0 comments on commit 0c76f9f

Please sign in to comment.