From: Tobias Haeussler Date: Sat, 29 Oct 2016 20:06:03 +0000 (+0200) Subject: Add manifest file on Windows to make the application UAC aware. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1022 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0c0a3ca0a52099bef0234a9db04486a1cfcdb9a5;p=nextcloud-desktop.git Add manifest file on Windows to make the application UAC aware. --- diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index af4c98ff9..d38d14b52 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -199,6 +199,9 @@ IF( WIN32 ) ${CMAKE_CURRENT_BINARY_DIR}/version.rc @ONLY) set(client_version ${CMAKE_CURRENT_BINARY_DIR}/version.rc) + IF(NOT MSVC) + set(client_manifest ${CMAKE_CURRENT_SOURCE_DIR}/manifest-mingw.rc) + ENDIF() ENDIF() set( final_src @@ -206,6 +209,7 @@ set( final_src ${client_SRCS} ${client_UI_SRCS} ${client_version} + ${client_manifest} ${guiMoc} ${client_I18N} ${3rdparty_SRC} diff --git a/src/gui/manifest-mingw.rc b/src/gui/manifest-mingw.rc new file mode 100644 index 000000000..e3125c9d5 --- /dev/null +++ b/src/gui/manifest-mingw.rc @@ -0,0 +1,3 @@ +#include "winuser.h" + +CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "owncloud.exe.manifest-mingw" diff --git a/src/gui/owncloud.exe.manifest-mingw b/src/gui/owncloud.exe.manifest-mingw new file mode 100644 index 000000000..ecea6f7f5 --- /dev/null +++ b/src/gui/owncloud.exe.manifest-mingw @@ -0,0 +1,10 @@ + + + + + + + + + +