Add manifest for synergy-core to fix problem with dpi on windows (#7240)

This commit is contained in:
Serhii Hadzhilov 2022-12-13 17:58:06 +02:00 committed by GitHub
parent ab8a7b5ed4
commit b743e664a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 3 deletions

View file

@ -18,6 +18,10 @@ set(sources
synergy-core.cpp
)
if (WIN32)
list(APPEND sources synergy-core.exe.manifest)
endif()
add_executable(synergy-core ${sources})
target_link_libraries(synergy-core
arch base client common io mt net ipc platform server synlib ${libs})

View file

@ -21,14 +21,13 @@
#include "arch/Arch.h"
#include "base/Log.h"
#include "base/EventQueue.h"
#include <vector>
void showHelp()
{
std::cout<<"Usage: synergy-core <server | client> [...options]"<<std::endl;
std::cout<<"sever - start as a server (synergys)"<<std::endl;
std::cout<<"server - start as a server (synergys)"<<std::endl;
std::cout<<"client - start as a client (synergyc)"<<std::endl;
std::cout<<"use synergy-core <sever|client> --help for more information."<<std::endl;
std::cout<<"use synergy-core <server|client> --help for more information."<<std::endl;
}
bool isServer(int argc, char** argv)

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitor</dpiAwareness>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
</assembly>