This repository has been archived by the owner. It is now read-only.
Permalink
...
Comparing changes
Open a pull request
6
contributors
Unified
Split
Showing
with
297 additions
and 224 deletions.
- +38 −3 CMakeLists.txt
- BIN ext/bonjour/x64/dnssd.dll
- BIN ext/bonjour/x64/libdnssd.a
- +27 −22 ext/toolchain/commands1.py
- +0 −15 res/dpiaware.manifest
- +1 −33 src/CMakeLists.txt
- +4 −1 src/cmd/CMakeLists.txt
- +0 −9 src/cmd/synergyc/CMakeLists.txt
- +0 −9 src/cmd/synergyd/CMakeLists.txt
- +0 −9 src/cmd/synergys/CMakeLists.txt
- +16 −3 src/gui/gui.pro
- +2 −2 src/gui/src/AppConfig.cpp
- +4 −3 src/gui/src/AppConfig.h
- +7 −3 src/gui/src/MainWindow.cpp
- +0 −1 src/gui/src/QUtility.cpp
- +2 −2 src/gui/src/SettingsDialog.cpp
- +19 −49 src/lib/arch/win32/ArchSystemWindows.cpp
- +0 −2 src/lib/common/MacOSXPrecomp.h
- +1 −0 src/lib/platform/OSXKeyState.cpp
- +30 −0 src/lib/platform/OSXMediaKeySimulator.h
- +92 −0 src/lib/platform/OSXMediaKeySimulator.m
- +0 −13 src/lib/platform/OSXScreen.mm
- +5 −6 src/lib/synergy/ArgParser.cpp
- +4 −8 src/lib/synergy/win32/AppUtilWindows.cpp
- +4 −0 src/lib/synwinhk/CMakeLists.txt
- +11 −11 src/lib/synwinhk/synwinhk.cpp
- +6 −3 src/setup/win32/Include.wxi
- +16 −10 src/setup/win32/Product.wxs
- +6 −5 src/setup/win32/synergy.sln
- +2 −2 src/setup/win32/synergy.wixproj
View
41
CMakeLists.txt
| @@ -16,9 +16,9 @@ | ||
| # Version number for Synergy | ||
| set(VERSION_MAJOR 1) | ||
| -set(VERSION_MINOR 8) | ||
| -set(VERSION_REV 5) | ||
| -set(VERSION_STAGE stable) | ||
| +set(VERSION_MINOR 9) | ||
| +set(VERSION_REV 0) | ||
| +set(VERSION_STAGE beta) | ||
| set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REV}") | ||
| cmake_minimum_required(VERSION 2.6) | ||
| @@ -315,6 +315,7 @@ else() # not-unix | ||
| /D_WINDOWS | ||
| /D_CRT_SECURE_NO_WARNINGS | ||
| /DVERSION=\"${VERSION}\" | ||
| + /D_XKEYCHECK_H | ||
| ) | ||
| if (MSVC_VERSION EQUAL 1600) | ||
| @@ -326,6 +327,38 @@ else() # not-unix | ||
| endif() | ||
| +if (WIN32) | ||
| + if(CMAKE_SIZEOF_VOID_P EQUAL 8) | ||
| + set(OPENSSL_PLAT_DIR openssl-win64) | ||
| + else() | ||
| + set(OPENSSL_PLAT_DIR openssl-win32) | ||
| + endif() | ||
| + set(OPENSSL_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/inc32) | ||
| +endif() | ||
| + | ||
| +if (APPLE) | ||
| + set(OPENSSL_PLAT_DIR openssl-osx) | ||
| + set(OPENSSL_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/include) | ||
| +endif() | ||
| + | ||
| +if (WIN32) | ||
| + set(OPENSSL_LIBS | ||
| + ${CMAKE_CURRENT_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/out32dll/libeay32.lib | ||
| + ${CMAKE_CURRENT_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/out32dll/ssleay32.lib | ||
| + ) | ||
| +endif() | ||
| + | ||
| +if (UNIX) | ||
| + if (APPLE) | ||
| + set(OPENSSL_LIBS | ||
| + ${CMAKE_CURRENT_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/libssl.a | ||
| + ${CMAKE_CURRENT_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/libcrypto.a | ||
| + ) | ||
| + else() | ||
| + set(OPENSSL_LIBS ssl crypto) | ||
| + endif() | ||
| +endif() | ||
| + | ||
| add_subdirectory(src) | ||
| if (WIN32) | ||
| @@ -363,3 +396,5 @@ if (CONF_DOXYGEN) | ||
| configure_file(${cmake_dir}/doxygen.cfg.in ${doc_dir}/doxygen.cfg) | ||
| endif() | ||
| + | ||
| +option(BUILD_SERVICE "Build synergyd" ON) | ||
View
BIN
ext/bonjour/x64/dnssd.dll
Binary file not shown.
View
BIN
ext/bonjour/x64/libdnssd.a
Binary file not shown.
View
49
ext/toolchain/commands1.py
| @@ -34,7 +34,7 @@ class Toolchain: | ||
| # options used by all commands | ||
| globalOptions = 'v' | ||
| - globalOptionsLong = ['no-prompts', 'verbose', 'skip-gui', 'skip-core'] | ||
| + globalOptionsLong = ['no-prompts', 'verbose', 'skip-gui', 'skip-core', 'skip-tests'] | ||
| # list of valid commands as keys. the values are optarg strings, but most | ||
| # are None for now (this is mainly for extensibility) | ||
| @@ -208,8 +208,8 @@ class InternalCommands: | ||
| qmake_cmd = 'qmake' | ||
| make_cmd = 'make' | ||
| xcodebuild_cmd = 'xcodebuild' | ||
| - w32_make_cmd = 'mingw32-make' | ||
| - w32_qt_version = '4.6.2' | ||
| + w32_make_cmd = 'nmake' | ||
| + w32_qt_version = '5.6.1' | ||
| defaultTarget = 'release' | ||
| cmake_dir = 'res' | ||
| @@ -240,6 +240,9 @@ class InternalCommands: | ||
| # by default, compile the gui | ||
| enableMakeGui = True | ||
| + | ||
| + # by default, compile the tests | ||
| + enableMakeTests = True | ||
| # by default, unknown | ||
| macSdk = None | ||
| @@ -254,13 +257,15 @@ class InternalCommands: | ||
| gmockDir = 'gmock-1.6.0' | ||
| win32_generators = { | ||
| - 1 : VisualStudioGenerator('10'), | ||
| - 2 : VisualStudioGenerator('10 Win64'), | ||
| - 3 : VisualStudioGenerator('9 2008'), | ||
| - 4 : VisualStudioGenerator('9 2008 Win64'), | ||
| - 5 : VisualStudioGenerator('8 2005'), | ||
| - 6 : VisualStudioGenerator('8 2005 Win64') | ||
| - } | ||
| + 1 : VisualStudioGenerator('14'), | ||
| + 2 : VisualStudioGenerator('14 Win64'), | ||
| + 3 : VisualStudioGenerator('10'), | ||
| + 4 : VisualStudioGenerator('10 Win64'), | ||
| + 5 : VisualStudioGenerator('9 2008'), | ||
| + 6 : VisualStudioGenerator('9 2008 Win64'), | ||
| + 7 : VisualStudioGenerator('8 2005'), | ||
| + 8 : VisualStudioGenerator('8 2005 Win64'), | ||
| + } | ||
| unix_generators = { | ||
| 1 : MakefilesGenerator(), | ||
| @@ -442,6 +447,8 @@ def configureCore(self, target="", extraArgs=""): | ||
| cmake_args += " -DOSX_TARGET_MAJOR=" + macSdkMatch.group(1) | ||
| cmake_args += " -DOSX_TARGET_MINOR=" + macSdkMatch.group(2) | ||
| + | ||
| + cmake_args += " -DDISABLE_TESTS=" + str(int(not self.enableMakeTests)) | ||
| # if not visual studio, use parent dir | ||
| sourceDir = generator.getSourceDir() | ||
| @@ -603,13 +610,12 @@ def persist_qmake(self): | ||
| print ( | ||
| 'Suggestions:\n' | ||
| '1. Ensure that qmake.exe exists in your system path.\n' | ||
| - '2. Try to download Qt (check our dev FAQ for links):\n' | ||
| - ' qt-sdk-win-opensource-2010.02.exe') | ||
| + '2. Try to download Qt 5.6\n') | ||
| raise Exception('Cannot continue without qmake.') | ||
| stdout, stderr = p.communicate() | ||
| if p.returncode != 0: | ||
| - raise Exception('Could not test for cmake: %s' % stderr) | ||
| + raise Exception('Could not test for qmake: %s' % stderr) | ||
| else: | ||
| m = re.search('.*Using Qt version (\d+\.\d+\.\d+).*', stdout) | ||
| if m: | ||
| @@ -760,12 +766,7 @@ def macPostGuiMake(self, target): | ||
| if err != 0: | ||
| raise Exception(bin + " failed with error: " + str(err)) | ||
| - (qMajor, qMinor, qRev) = self.getQmakeVersion() | ||
| - if qMajor <= 4: | ||
| - frameworkRootDir = "/Library/Frameworks" | ||
| - else: | ||
| - # TODO: auto-detect, qt can now be installed anywhere. | ||
| - frameworkRootDir = "/Developer/Qt5.2.1/5.2.1/clang_64/lib" | ||
| + frameworkRootDir = commands.getoutput("qmake -query QT_INSTALL_LIBS") | ||
| target = bundleTargetDir + "/Contents/Frameworks" | ||
| @@ -892,8 +893,8 @@ def cleanCore(self, targets): | ||
| generator = self.getGeneratorFromConfig().cmakeName | ||
| if generator.startswith('Visual Studio'): | ||
| - # special case for version 10, use new /target:clean | ||
| - if generator.startswith('Visual Studio 10'): | ||
| + # special case for version 10 and above, use new /target:clean | ||
| + if generator.startswith('Visual Studio 10') or generator.startswith('Visual Studio 14'): | ||
| for target in targets: | ||
| self.run_vcbuild(generator, target, self.sln_filepath(), '/target:clean') | ||
| @@ -1723,6 +1724,8 @@ def get_vcvarsall(self, generator): | ||
| value,type = _winreg.QueryValueEx(key, '9.0') | ||
| elif generator.startswith('Visual Studio 10'): | ||
| value,type = _winreg.QueryValueEx(key, '10.0') | ||
| + elif generator.startswith('Visual Studio 14'): | ||
| + value,type = _winreg.QueryValueEx(key, '14.0') | ||
| else: | ||
| raise Exception('Cannot determine vcvarsall.bat location for: ' + generator) | ||
| @@ -1765,7 +1768,7 @@ def run_vcbuild(self, generator, mode, solution, args='', dir='', config32='Win3 | ||
| else: | ||
| config = 'Debug' | ||
| - if generator.startswith('Visual Studio 10'): | ||
| + if generator.startswith('Visual Studio 10') or generator.startswith('Visual Studio 14'): | ||
| cmd = ('@echo off\n' | ||
| 'call "%s" %s \n' | ||
| 'cd "%s"\n' | ||
| @@ -1888,6 +1891,8 @@ def __init__(self, argv, opts, args, verbose): | ||
| self.ic.enableMakeGui = False | ||
| elif o == '--skip-core': | ||
| self.ic.enableMakeCore = False | ||
| + elif o == '--skip-tests': | ||
| + self.ic.enableMakeTests = False | ||
| elif o in ('-d', '--debug'): | ||
| self.build_targets += ['debug',] | ||
| elif o in ('-r', '--release'): | ||
View
15
res/dpiaware.manifest
| @@ -1,15 +0,0 @@ | ||
| -<?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> | ||
| - |
View
34
src/CMakeLists.txt
| @@ -14,42 +14,10 @@ | ||
| # You should have received a copy of the GNU General Public License | ||
| # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| -if (WIN32) | ||
| - if(CMAKE_SIZEOF_VOID_P EQUAL 8) | ||
| - set(OPENSSL_PLAT_DIR openssl-win64) | ||
| - else() | ||
| - set(OPENSSL_PLAT_DIR openssl-win32) | ||
| - endif() | ||
| - set(OPENSSL_INCLUDE ${CMAKE_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/inc32) | ||
| -endif() | ||
| - | ||
| -if (APPLE) | ||
| - set(OPENSSL_PLAT_DIR openssl-osx) | ||
| - set(OPENSSL_INCLUDE ${CMAKE_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/include) | ||
| -endif() | ||
| - | ||
| -if (WIN32) | ||
| - set(OPENSSL_LIBS | ||
| - ${CMAKE_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/out32dll/libeay32.lib | ||
| - ${CMAKE_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/out32dll/ssleay32.lib | ||
| - ) | ||
| -endif() | ||
| - | ||
| -if (UNIX) | ||
| - if (APPLE) | ||
| - set(OPENSSL_LIBS | ||
| - ${CMAKE_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/libssl.a | ||
| - ${CMAKE_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/libcrypto.a | ||
| - ) | ||
| - else() | ||
| - set(OPENSSL_LIBS ssl crypto) | ||
| - endif() | ||
| -endif() | ||
| - | ||
| add_subdirectory(lib) | ||
| add_subdirectory(cmd) | ||
| add_subdirectory(micro) | ||
| -if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "IRIX") | ||
| +if ((NOT ${CMAKE_SYSTEM_NAME} MATCHES "IRIX") AND (NOT ${DISABLE_TESTS})) | ||
| add_subdirectory(test) | ||
| endif() | ||
View
5
src/cmd/CMakeLists.txt
| @@ -16,10 +16,13 @@ | ||
| add_subdirectory(synergyc) | ||
| add_subdirectory(synergys) | ||
| -add_subdirectory(synergyd) | ||
| add_subdirectory(usynergy) | ||
| add_subdirectory(syntool) | ||
| +if (BUILD_SERVICE) | ||
| + add_subdirectory(synergyd) | ||
| +endif (BUILD_SERVICE) | ||
| + | ||
| if (WIN32) | ||
| add_subdirectory(synergyp) | ||
| endif() | ||
View
9
src/cmd/synergyc/CMakeLists.txt
| @@ -60,15 +60,6 @@ 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 | ||
View
9
src/cmd/synergyd/CMakeLists.txt
| @@ -37,15 +37,6 @@ endif() | ||
| target_link_libraries(synergyd | ||
| arch base common io ipc mt net platform synergy shared ${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 | ||
View
9
src/cmd/synergys/CMakeLists.txt
| @@ -60,15 +60,6 @@ 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 | ||
View
19
src/gui/gui.pro
| @@ -137,11 +137,24 @@ release { | ||
| MOC_DIR = tmp/release | ||
| RCC_DIR = tmp/release | ||
| } | ||
| +win32-msvc2015 { | ||
| + LIBS += -lAdvapi32 | ||
| + QMAKE_LFLAGS += /NODEFAULTLIB:LIBCMT | ||
| +} | ||
| +win32-msvc* { | ||
| + contains(QMAKE_HOST.arch, x86):{ | ||
| + QMAKE_LFLAGS *= /MACHINE:X86 | ||
| + LIBS += -L"$$(BONJOUR_SDK_HOME)/Lib/Win32" -ldnssd | ||
| + } | ||
| + | ||
| + contains(QMAKE_HOST.arch, x86_64):{ | ||
| + QMAKE_LFLAGS *= /MACHINE:X64 | ||
| + LIBS += -L"$$(BONJOUR_SDK_HOME)/Lib/x64" -ldnssd | ||
| + } | ||
| +} | ||
| win32 { | ||
| Debug:DESTDIR = ../../bin/Debug | ||
| Release:DESTDIR = ../../bin/Release | ||
| - LIBS += -L"../../ext/bonjour/x64" \ | ||
| - -ldnssd | ||
| - INCLUDEPATH += "$(BONJOUR_SDK_HOME)/Include" | ||
| + INCLUDEPATH += "$$(BONJOUR_SDK_HOME)/Include" | ||
| } | ||
| else:DESTDIR = ../../bin | ||
View
4
src/gui/src/AppConfig.cpp
| @@ -77,7 +77,7 @@ const QString &AppConfig::screenName() const { return m_ScreenName; } | ||
| int AppConfig::port() const { return m_Port; } | ||
| -const QString &AppConfig::interface() const { return m_Interface; } | ||
| +const QString &AppConfig::networkInterface() const { return m_Interface; } | ||
| int AppConfig::logLevel() const { return m_LogLevel; } | ||
| @@ -220,7 +220,7 @@ void AppConfig::setScreenName(const QString &s) { m_ScreenName = s; } | ||
| void AppConfig::setPort(int i) { m_Port = i; } | ||
| -void AppConfig::setInterface(const QString &s) { m_Interface = s; } | ||
| +void AppConfig::setNetworkInterface(const QString &s) { m_Interface = s; } | ||
| void AppConfig::setLogLevel(int i) { m_LogLevel = i; } | ||
View
7
src/gui/src/AppConfig.h
| @@ -38,8 +38,9 @@ | ||
| // 5: ssl plugin 'ns' v1.1 | ||
| // 6: ssl plugin 'ns' v1.2 | ||
| // 7: serial key activation | ||
| +// 8: Visual Studio 2015 support | ||
| // | ||
| -const int kWizardVersion = 7; | ||
| +const int kWizardVersion = 8; | ||
| class QSettings; | ||
| class SettingsDialog; | ||
| @@ -64,7 +65,7 @@ class AppConfig: public QObject | ||
| public: | ||
| const QString& screenName() const; | ||
| int port() const; | ||
| - const QString& interface() const; | ||
| + const QString& networkInterface() const; | ||
| int logLevel() const; | ||
| bool logToFile() const; | ||
| const QString& logFilename() const; | ||
| @@ -113,7 +114,7 @@ class AppConfig: public QObject | ||
| QSettings& settings(); | ||
| void setScreenName(const QString& s); | ||
| void setPort(int i); | ||
| - void setInterface(const QString& s); | ||
| + void setNetworkInterface(const QString& s); | ||
| void setLogLevel(int i); | ||
| void setLogToFile(bool b); | ||
| void setLogFilename(const QString& s); | ||
Oops, something went wrong.