This repository has been archived by the owner. It is now read-only.
Permalink
...
Comparing changes
Open a pull request
10
contributors
Unified
Split
Showing
with
2,611 additions
and 4,157 deletions.
- +1 −2 .github/ISSUE_TEMPLATE.md
- +3 −0 .gitignore
- +6 −3 CMakeLists.txt
- +20 −0 ChangeLog
- +32 −40 ext/toolchain/commands1.py
- BIN res/banner.bmp
- BIN res/dialog.bmp
- +0 −3 res/synergy.spec.in
- +32 −0 src/CMakeLists.txt
- +1 −1 src/cmd/synergyc/CMakeLists.txt
- +4 −4 src/cmd/synergyc/MSWindowsClientTaskBarReceiver.cpp
- +3 −3 src/cmd/synergyd/CMakeLists.txt
- +1 −1 src/cmd/synergyp/CMakeLists.txt
- +6 −6 src/cmd/synergyp/MSWindowsPortableTaskBarReceiver.cpp
- +1 −1 src/cmd/synergys/CMakeLists.txt
- +6 −6 src/cmd/synergys/MSWindowsServerTaskBarReceiver.cpp
- +1 −1 src/cmd/syntool/CMakeLists.txt
- +18 −15 src/gui/gui.pro
- +163 −0 src/gui/res/ActivationDialog.ui
- +89 −0 src/gui/res/CancelActivationDialog.ui
- +108 −0 src/gui/res/FailedLoginDialog.ui
- +58 −7 src/gui/res/MainWindowBase.ui
- +0 −137 src/gui/res/PluginWizardPageBase.ui
- +1 −1 src/gui/res/ServerConfigDialogBase.ui
- +7 −2 src/gui/res/SettingsDialogBase.ui
- +0 −208 src/gui/res/SetupWizardBase.ui
- +3 −1 src/gui/src/AboutDialog.cpp
- +123 −0 src/gui/src/ActivationDialog.cpp
- +35 −0 src/gui/src/ActivationDialog.h
- +20 −1 src/gui/src/ActivationNotifier.cpp
- +7 −1 src/gui/src/ActivationNotifier.h
- +119 −9 src/gui/src/AppConfig.cpp
- +58 −44 src/gui/src/AppConfig.h
- +14 −0 src/gui/src/CancelActivationDialog.cpp
- +22 −0 src/gui/src/CancelActivationDialog.h
- +18 −21 src/gui/src/CoreInterface.cpp
- +4 −4 src/gui/src/CoreInterface.h
- +15 −0 src/gui/src/FailedLoginDialog.cpp
- +23 −0 src/gui/src/FailedLoginDialog.h
- +169 −0 src/gui/src/LicenseManager.cpp
- +53 −0 src/gui/src/LicenseManager.h
- +196 −71 src/gui/src/MainWindow.cpp
- +30 −8 src/gui/src/MainWindow.h
- +0 −73 src/gui/src/Plugin.cpp
- +0 −53 src/gui/src/Plugin.h
- +0 −186 src/gui/src/PluginManager.cpp
- +0 −75 src/gui/src/PluginManager.h
- +0 −206 src/gui/src/PluginWizardPage.cpp
- +0 −66 src/gui/src/PluginWizardPage.h
- +12 −8 src/gui/src/QUtility.cpp
- +14 −10 src/gui/src/SettingsDialog.cpp
- +2 −2 src/gui/src/SettingsDialog.h
- +3 −148 src/gui/src/SetupWizard.cpp
- +0 −8 src/gui/src/SetupWizard.h
- +39 −36 src/gui/src/SslCertificate.cpp
- +0 −167 src/gui/src/SubscriptionManager.cpp
- +0 −47 src/gui/src/SubscriptionManager.h
- +4 −2 src/gui/src/VersionChecker.cpp
- +38 −54 src/gui/src/WebClient.cpp
- +5 −11 src/gui/src/WebClient.h
- +8 −5 src/gui/src/main.cpp
- +1 −2 src/lib/CMakeLists.txt
- +0 −4 src/lib/arch/Arch.h
- +0 −80 src/lib/arch/IArchPlugin.h
- +0 −1 src/lib/arch/unix/ArchInternetUnix.cpp
- +1 −1 src/lib/arch/unix/ArchMultithreadPosix.cpp
- +3 −4 src/lib/arch/unix/ArchNetworkBSD.cpp
- +0 −239 src/lib/arch/unix/ArchPluginUnix.cpp
- +0 −53 src/lib/arch/unix/ArchPluginUnix.h
- +1 −1 src/lib/arch/unix/ArchSystemUnix.cpp
- +1 −1 src/lib/arch/win32/ArchMultithreadWindows.cpp
- +1 −1 src/lib/arch/win32/ArchNetworkWinsock.cpp
- +0 −250 src/lib/arch/win32/ArchPluginWindows.cpp
- +0 −57 src/lib/arch/win32/ArchPluginWindows.h
- +12 −12 src/lib/arch/win32/ArchTaskBarWindows.cpp
- +1 −1 src/lib/arch/win32/ArchTimeWindows.cpp
- +1 −1 src/lib/base/EventQueue.cpp
- +8 −24 src/lib/client/Client.cpp
- +0 −36 src/lib/common/PluginVersion.cpp
- +0 −31 src/lib/common/PluginVersion.h
- +2 −2 src/lib/io/StreamBuffer.cpp
- +1 −1 src/lib/io/StreamFilter.cpp
- +1 −1 src/lib/mt/Thread.cpp
- +19 −1 src/lib/net/CMakeLists.txt
- +1 −8 src/lib/net/IListenSocket.h
- +0 −11 src/lib/{plugin/ns → net}/SecureListenSocket.cpp
- +0 −1 src/lib/{plugin/ns → net}/SecureListenSocket.h
- 0 src/lib/{plugin/ns → net}/SecureSocket.cpp
- 0 src/lib/{plugin/ns → net}/SecureSocket.h
- +1 −0 src/lib/net/SocketMultiplexer.cpp
- +1 −1 src/lib/net/TCPListenSocket.cpp
- +0 −1 src/lib/net/TCPListenSocket.h
- +1 −1 src/lib/net/TCPSocket.cpp
- +7 −18 src/lib/net/TCPSocketFactory.cpp
- +1 −1 src/lib/platform/CMakeLists.txt
- +3 −3 src/lib/platform/MSWindowsClipboardBitmapConverter.cpp
- +1 −1 src/lib/platform/MSWindowsDesks.cpp
- +13 −41 src/lib/platform/MSWindowsScreen.cpp
- +1 −1 src/lib/platform/MSWindowsScreen.h
- +1 −1 src/lib/platform/OSXClipboard.cpp
- +103 −65 src/lib/platform/OSXKeyState.cpp
- +6 −0 src/lib/platform/OSXKeyState.h
- +3 −1 src/lib/platform/OSXScreen.h
- +15 −9 src/lib/platform/{OSXScreen.cpp → OSXScreen.mm}
- +4 −4 src/lib/platform/OSXUchrKeyResource.cpp
- +38 −35 src/lib/platform/XWindowsClipboard.cpp
- +1 −1 src/lib/platform/XWindowsKeyState.cpp
- +19 −11 src/lib/platform/XWindowsScreen.cpp
- +11 −0 src/lib/platform/XWindowsScreen.h
- +2 −2 src/lib/platform/XWindowsUtil.cpp
- +0 −28 src/lib/plugin/CMakeLists.txt
- +0 −128 src/lib/plugin/ns/CMakeLists.txt
- +0 −127 src/lib/plugin/ns/ns.cpp
- +0 −41 src/lib/plugin/ns/ns.h
- +0 −106 src/lib/plugin/winmmjoy/winmmjoy.cpp
- +0 −72 src/lib/plugin/winmmjoy/winmmjoy.h
- +2 −0 src/lib/server/CMakeLists.txt
- +5 −33 src/lib/server/ClientListener.cpp
- +0 −2 src/lib/server/ClientListener.h
- +4 −4 src/lib/server/InputFilter.cpp
- +53 −58 src/lib/server/Server.cpp
- +3 −2 src/lib/server/Server.h
- +9 −9 src/lib/{plugin/winmmjoy → shared}/CMakeLists.txt
- +7 −5 src/{gui/src → lib/shared}/EditionType.h
- +264 −0 src/lib/shared/SerialKey.cpp
- +84 −0 src/lib/shared/SerialKey.h
- +37 −47 src/lib/synergy/ArgParser.cpp
- +2 −13 src/lib/synergy/ClientApp.cpp
- +8 −10 src/lib/synergy/ClipboardChunk.cpp
- +0 −53 src/lib/synergy/DpiHelper.cpp
- +0 −38 src/lib/synergy/DpiHelper.h
- +1 −1 src/lib/synergy/KeyState.cpp
- +14 −14 src/lib/synergy/ProtocolUtil.cpp
- +2 −13 src/lib/synergy/ServerApp.cpp
- +1 −0 src/lib/synergy/ServerArgs.cpp
- +4 −2 src/lib/synergy/ServerArgs.h
- +1 −1 src/lib/synergy/StreamChunker.cpp
- +0 −30 src/lib/synergy/SubscriptionKey.h
- +0 −199 src/lib/synergy/SubscriptionManager.cpp
- +0 −55 src/lib/synergy/SubscriptionManager.h
- +21 −50 src/lib/synergy/ToolApp.cpp
- +1 −1 src/lib/synergy/ToolApp.h
- +1 −5 src/lib/synergy/ToolArgs.cpp
- +1 −5 src/lib/synergy/ToolArgs.h
- +15 −8 src/setup/win32/Product.wxs
- +1 −1 src/test/integtests/CMakeLists.txt
- +39 −30 src/test/integtests/net/NetworkTests.cpp
- +1 −1 src/test/unittests/CMakeLists.txt
- +147 −0 src/test/unittests/shared/SerialKeyTests.cpp
- +0 −70 src/test/unittests/synergy/DpiHelperTests.cpp
- +2 −2 src/test/unittests/synergy/ServerArgsParsingTests.cpp
- +0 −114 src/test/unittests/synergy/SubscriptionTests.cpp
View
3
.github/ISSUE_TEMPLATE.md
| @@ -1,8 +1,7 @@ | ||
| ### Operating Systems ### | ||
| -Client: Applesoft Windy OS 10 | ||
| - | ||
| Server: microOS Tiara | ||
| +Client: Applesoft Windy OS 10 | ||
| **READ ME, DELETE ME**: On Windows, hold the Windows key and press 'r', type 'winver' and hit return to get your OS version. On Mac, hit the Apple menu (top left of the screen) and check 'About this Mac'. Linux users... you know what you're using ;) | ||
View
3
.gitignore
| @@ -1,7 +1,10 @@ | ||
| config.h | ||
| +.DS_Store | ||
| *.pyc | ||
| +*.o | ||
| *~ | ||
| \.*.swp | ||
| +*build-gui-Desktop_Qt* | ||
| /bin | ||
| /lib | ||
| /build | ||
View
9
CMakeLists.txt
| @@ -17,8 +17,8 @@ | ||
| # Version number for Synergy | ||
| set(VERSION_MAJOR 1) | ||
| set(VERSION_MINOR 8) | ||
| -set(VERSION_REV 3) | ||
| -set(VERSION_STAGE stable) | ||
| +set(VERSION_REV 6) | ||
| +set(VERSION_STAGE rc2) | ||
| set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REV}") | ||
| cmake_minimum_required(VERSION 2.6) | ||
| @@ -205,7 +205,10 @@ if (UNIX) | ||
| set(CMAKE_INCLUDE_PATH "${CMAKE_INCLUDE_PATH}:/usr/local/include") | ||
| set(XKBlib "X11/Xlib.h;X11/XKBlib.h") | ||
| - check_symbol_exists("XRRNotifyEvent" "${XKBlib};X11/extensions/Xrandr.h" HAVE_X11_EXTENSIONS_XRANDR_H) | ||
| + set(CMAKE_EXTRA_INCLUDE_FILES "${XKBlib};X11/extensions/Xrandr.h") | ||
| + check_type_size("XRRNotifyEvent" X11_EXTENSIONS_XRANDR_H) | ||
| + set(HAVE_X11_EXTENSIONS_XRANDR_H "${X11_EXTENSIONS_XRANDR_H}") | ||
| + set(CMAKE_EXTRA_INCLUDE_FILES) | ||
| check_include_files("${XKBlib};X11/extensions/dpms.h" HAVE_X11_EXTENSIONS_DPMS_H) | ||
| check_include_files("X11/extensions/Xinerama.h" HAVE_X11_EXTENSIONS_XINERAMA_H) | ||
View
20
ChangeLog
| @@ -1,3 +1,23 @@ | ||
| +v1.8.5-stable | ||
| +============= | ||
| +Bug #5680 - Server crashes when disconnecting SSL clients | ||
| +Bug #5626 - Build fails using Xcode 8 and macOS SDK 10.12 | ||
| +Feature #5657 - Trial version support | ||
| +Feature #5707 - User upgrade statistics | ||
| + | ||
| +v1.8.4-stable | ||
| +============= | ||
| +Bug #5183 - Slowly moving the cursor has no effect on high DPI clients | ||
| +Bug #4041 - UHD/4K DPI scaling broken on Windows servers | ||
| +Bug #4420 - When XRandR adds a screen, it is inaccessible | ||
| +Bug #5603 - Activation notification depends on existence of /etc/os-release | ||
| +Bug #5624 - Update notification sometimes requests a downgrade | ||
| +Bug #5329 - Current date is shown for build date in the about dialog | ||
| +Enhancement #5617 - Remove redundant plugin infrastructure | ||
| +Enhancement #5627 - Move SSL certificate generation to main window | ||
| +Enhancement #5628 - Move SSL implementation into core binary | ||
| +Enhancement #5629 - Move activation from wizard into new dialog window | ||
| + | ||
| v1.8.3-stable | ||
| ============= | ||
| Bug #2765 - A letter appears on macOS clients when the spacebar is pressed | ||
View
72
ext/toolchain/commands1.py
| @@ -41,7 +41,7 @@ class Toolchain: | ||
| cmd_opt_dict = { | ||
| 'about' : ['', []], | ||
| 'setup' : ['g:', ['generator=']], | ||
| - 'configure' : ['g:dr', ['generator=', 'debug', 'release', 'mac-sdk=', 'mac-identity=']], | ||
| + 'configure' : ['g:dr', ['generator=', 'debug', 'release', 'mac-sdk=', 'mac-deploy=', 'mac-identity=']], | ||
| 'build' : ['dr', ['debug', 'release']], | ||
| 'clean' : ['dr', ['debug', 'release']], | ||
| 'update' : ['', []], | ||
| @@ -244,6 +244,9 @@ class InternalCommands: | ||
| # by default, unknown | ||
| macSdk = None | ||
| + # by default, unknown | ||
| + macDeploy = None | ||
| + | ||
| # by default, unknown | ||
| macIdentity = None | ||
| @@ -365,7 +368,7 @@ def configure(self, target='', extraArgs=''): | ||
| # ensure latest setup and do not ask config for generator (only fall | ||
| # back to prompt if not specified as arg) | ||
| self.ensure_setup_latest() | ||
| - | ||
| + | ||
| if sys.platform == "darwin": | ||
| config = self.getConfig() | ||
| @@ -374,6 +377,11 @@ def configure(self, target='', extraArgs=''): | ||
| elif config.has_option("hm", "macSdk"): | ||
| self.macSdk = config.get('hm', 'macSdk') | ||
| + if self.macDeploy: | ||
| + config.set('hm', 'macDeploy', self.macDeploy) | ||
| + elif config.has_option("hm", "macDeploy"): | ||
| + self.macSdk = config.get('hm', 'macDeploy') | ||
| + | ||
| if self.macIdentity: | ||
| config.set('hm', 'macIdentity', self.macIdentity) | ||
| elif config.has_option("hm", "macIdentity"): | ||
| @@ -383,7 +391,10 @@ def configure(self, target='', extraArgs=''): | ||
| if not self.macSdk: | ||
| raise Exception("Arg missing: --mac-sdk <version>"); | ||
| - | ||
| + | ||
| + if not self.macDeploy: | ||
| + self.macDeploy = self.macSdk | ||
| + | ||
| if not self.macIdentity: | ||
| raise Exception("Arg missing: --mac-identity <name>"); | ||
| @@ -430,14 +441,16 @@ def configureCore(self, target="", extraArgs=""): | ||
| if generator.cmakeName.find('Unix Makefiles') != -1: | ||
| cmake_args += ' -DCMAKE_BUILD_TYPE=' + target.capitalize() | ||
| - elif sys.platform == "darwin": | ||
| + if sys.platform == "darwin": | ||
| macSdkMatch = re.match("(\d+)\.(\d+)", self.macSdk) | ||
| if not macSdkMatch: | ||
| raise Exception("unknown osx version: " + self.macSdk) | ||
| - sdkDir = self.getMacSdkDir() | ||
| - cmake_args += " -DCMAKE_OSX_SYSROOT=" + sdkDir | ||
| - cmake_args += " -DCMAKE_OSX_DEPLOYMENT_TARGET=" + self.macSdk | ||
| + if generator.cmakeName.find('Unix Makefiles') == -1: | ||
| + sdkDir = self.getMacSdkDir() | ||
| + cmake_args += " -DCMAKE_OSX_SYSROOT=" + sdkDir | ||
| + cmake_args += " -DCMAKE_OSX_DEPLOYMENT_TARGET=" + self.macDeploy | ||
| + | ||
| cmake_args += " -DOSX_TARGET_MAJOR=" + macSdkMatch.group(1) | ||
| cmake_args += " -DOSX_TARGET_MINOR=" + macSdkMatch.group(2) | ||
| @@ -496,8 +509,8 @@ def configureGui(self, target="", extraArgs=""): | ||
| sdkDir = self.getMacSdkDir() | ||
| shortForm = "macosx" + self.macSdk | ||
| version = str(major) + "." + str(minor) | ||
| - | ||
| - qmake_cmd_string += " QMAKE_MACOSX_DEPLOYMENT_TARGET=" + version | ||
| + | ||
| + qmake_cmd_string += " QMAKE_MACOSX_DEPLOYMENT_TARGET=" + self.macDeploy | ||
| (qMajor, qMinor, qRev) = self.getQmakeVersion() | ||
| if qMajor <= 4: | ||
| @@ -551,6 +564,7 @@ def getMacSdkDir(self): | ||
| if os.path.exists(sdkPath): | ||
| return sdkPath | ||
| + # return os.popen('xcodebuild -version -sdk macosx' + self.macSdk + ' Path').read().strip() | ||
| return "/Developer/SDKs/" + sdkDirName + ".sdk" | ||
| # http://tinyurl.com/cs2rxxb | ||
| @@ -653,6 +667,9 @@ def loadConfig(self): | ||
| if config.has_option("hm", "macSdk"): | ||
| self.macSdk = config.get("hm", "macSdk") | ||
| + | ||
| + if config.has_option("hm", "macDeploy"): | ||
| + self.macDeploy = config.get("hm", "macDeploy") | ||
| if config.has_option("hm", "macIdentity"): | ||
| self.macIdentity = config.get("hm", "macIdentity") | ||
| @@ -741,16 +758,6 @@ def macPostGuiMake(self, target): | ||
| shutil.copy(targetDir + "/synergys", bundleBinDir) | ||
| shutil.copy(targetDir + "/syntool", bundleBinDir) | ||
| - # Copy all generated plugins to the package | ||
| - bundlePluginDir = bundleBinDir + "plugins" | ||
| - pluginDir = targetDir + "/plugins" | ||
| - print "Copying plugins dirtree: " + pluginDir | ||
| - if os.path.isdir(pluginDir): | ||
| - print "Copying to: " + bundlePluginDir | ||
| - shutil.copytree(pluginDir, bundlePluginDir) | ||
| - else: | ||
| - print "pluginDir doesn't exist, skipping" | ||
| - | ||
| self.loadConfig() | ||
| if not self.macIdentity: | ||
| raise Exception("run config with --mac-identity") | ||
| @@ -1151,14 +1158,12 @@ def distDeb(self): | ||
| controlFile.close() | ||
| targetBin = '%s/%s/usr/bin' % (debDir, package) | ||
| - targetPlugin = '%s/%s/usr/lib/synergy/plugins' % (debDir, package) | ||
| targetShare = '%s/%s/usr/share' % (debDir, package) | ||
| targetApplications = "%s/applications" % targetShare | ||
| targetIcons = "%s/icons" % targetShare | ||
| targetDocs = "%s/doc/%s" % (targetShare, self.project) | ||
| os.makedirs(targetBin) | ||
| - os.makedirs(targetPlugin) | ||
| os.makedirs(targetApplications) | ||
| os.makedirs(targetIcons) | ||
| os.makedirs(targetDocs) | ||
| @@ -1176,17 +1181,6 @@ def distDeb(self): | ||
| if err != 0: | ||
| raise Exception('strip failed: ' + str(err)) | ||
| - pluginDir = "%s/plugins" % binDir | ||
| - | ||
| - pluginFiles = [ 'libns.so'] | ||
| - for f in pluginFiles: | ||
| - shutil.copy("%s/%s" % (pluginDir, f), targetPlugin) | ||
| - target = "%s/%s" % (targetPlugin, f) | ||
| - os.chmod(target, 0o0644) | ||
| - err = os.system("strip " + target) | ||
| - if err != 0: | ||
| - raise Exception('strip failed: ' + str(err)) | ||
| - | ||
| shutil.copy("%s/synergy.desktop" % resDir, targetApplications) | ||
| shutil.copy("%s/synergy.ico" % resDir, targetIcons) | ||
| @@ -1402,13 +1396,6 @@ def distftp(self, type, ftp): | ||
| packageTarget = filename | ||
| ftp.upload(packageSource, packageTarget) | ||
| - if type != 'src': | ||
| - pluginsDir = binDir + '/plugins' | ||
| - nsPluginSource = self.findLibraryFile(type, pluginsDir, 'ns') | ||
| - if nsPluginSource: | ||
| - nsPluginTarget = self.getLibraryDistFilename(type, pluginsDir, 'ns') | ||
| - ftp.upload(nsPluginSource, nsPluginTarget, "plugins") | ||
| - | ||
| def getLibraryDistFilename(self, type, dir, name): | ||
| (platform, packageExt, libraryExt) = self.getDistributePlatformInfo(type) | ||
| firstPart = '%s-%s-%s' % (name, self.getVersionForFilename(), platform) | ||
| @@ -1870,7 +1857,10 @@ def getMacPackageName(self): | ||
| # version is major and minor with no dots (e.g. 106) | ||
| version = str(major) + str(minor) | ||
| - return "MacOSX%s-%s" % (version, arch) | ||
| + if (self.macDeploy == self.macSdk): | ||
| + return "MacOSX%s-%s" % (version, arch) | ||
| + else: | ||
| + return "MacOSX-%s" % arch | ||
| def reset(self): | ||
| if os.path.exists('build'): | ||
| @@ -1925,6 +1915,8 @@ def __init__(self, argv, opts, args, verbose): | ||
| self.qtDir = a | ||
| elif o == '--mac-sdk': | ||
| self.ic.macSdk = a | ||
| + elif o == '--mac-deploy': | ||
| + self.ic.macDeploy = a | ||
| elif o == '--mac-identity': | ||
| self.ic.macIdentity = a | ||
View
BIN
res/banner.bmp
Binary file not shown.
View
BIN
res/dialog.bmp
Binary file not shown.
View
3
res/synergy.spec.in
| @@ -20,7 +20,6 @@ source=%{_topdir}/../.. | ||
| mkdir -p %{buildroot}/%{_datarootdir}/applications | ||
| mkdir -p %{buildroot}/%{_datarootdir}/icons | ||
| mkdir -p %{buildroot}/%{_bindir} | ||
| -mkdir -p %{buildroot}/%{_bindir}/../lib/synergy/plugins | ||
| cp $source/bin/synergy %{buildroot}%{_bindir} | ||
| cp $source/bin/synergyc %{buildroot}%{_bindir} | ||
| @@ -29,7 +28,6 @@ cp $source/bin/synergyd %{buildroot}%{_bindir} | ||
| cp $source/bin/syntool %{buildroot}%{_bindir} | ||
| cp $source/res/synergy.desktop %{buildroot}%{_datarootdir}/applications | ||
| cp $source/res/synergy.ico %{buildroot}%{_datarootdir}/icons | ||
| -cp $source/bin/plugins/* %{buildroot}%{_bindir}/../lib/synergy/plugins | ||
| %files | ||
| %defattr(755,root,root,-) | ||
| @@ -40,7 +38,6 @@ cp $source/bin/plugins/* %{buildroot}%{_bindir}/../lib/synergy/plugins | ||
| %{_bindir}/syntool | ||
| %attr(644,-,-) %{_datarootdir}/applications/synergy.desktop | ||
| %attr(644,-,-) %{_datarootdir}/icons/synergy.ico | ||
| -%attr(644,-,-) %{_bindir}/../lib/synergy/plugins/* | ||
| %changelog | ||
| * Thu Mar 20 2014 Nick Bolton <nick@symless.com> | ||
View
32
src/CMakeLists.txt
| @@ -14,6 +14,38 @@ | ||
| # 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) | ||
View
2
src/cmd/synergyc/CMakeLists.txt
| @@ -58,7 +58,7 @@ endif() | ||
| add_executable(synergyc ${sources}) | ||
| target_link_libraries(synergyc | ||
| - arch base client common io mt net ipc platform server synergy ${libs}) | ||
| + arch base client common io mt net ipc platform server synergy ${libs} ${OPENSSL_LIBS}) | ||
| if (CONF_CPACK) | ||
| install(TARGETS | ||
View
8
src/cmd/synergyc/MSWindowsClientTaskBarReceiver.cpp
| @@ -221,7 +221,7 @@ MSWindowsClientTaskBarReceiver::primaryAction() | ||
| const IArchTaskBarReceiver::Icon | ||
| MSWindowsClientTaskBarReceiver::getIcon() const | ||
| { | ||
| - return reinterpret_cast<Icon>(m_icon[getStatus()]); | ||
| + return static_cast<Icon>(m_icon[getStatus()]); | ||
| } | ||
| void | ||
| @@ -263,7 +263,7 @@ MSWindowsClientTaskBarReceiver::loadIcon(UINT id) | ||
| IMAGE_ICON, | ||
| 0, 0, | ||
| LR_DEFAULTCOLOR); | ||
| - return reinterpret_cast<HICON>(icon); | ||
| + return static_cast<HICON>(icon); | ||
| } | ||
| void | ||
| @@ -288,7 +288,7 @@ MSWindowsClientTaskBarReceiver::createWindow() | ||
| NULL, | ||
| (DLGPROC)&MSWindowsClientTaskBarReceiver::staticDlgProc, | ||
| reinterpret_cast<LPARAM>( | ||
| - reinterpret_cast<void*>(this))); | ||
| + static_cast<void*>(this))); | ||
| // window should appear on top of everything, including (especially) | ||
| // the task bar. | ||
| @@ -337,7 +337,7 @@ MSWindowsClientTaskBarReceiver::staticDlgProc(HWND hwnd, | ||
| // and put it in the extra window data then forward the call. | ||
| MSWindowsClientTaskBarReceiver* self = NULL; | ||
| if (msg == WM_INITDIALOG) { | ||
| - self = reinterpret_cast<MSWindowsClientTaskBarReceiver*>( | ||
| + self = static_cast<MSWindowsClientTaskBarReceiver*>( | ||
| reinterpret_cast<void*>(lParam)); | ||
| SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR) lParam); | ||
| } | ||
View
6
src/cmd/synergyd/CMakeLists.txt
| @@ -1,11 +1,11 @@ | ||
| # synergy -- mouse and keyboard sharing utility | ||
| # Copyright (C) 2012-2016 Symless Ltd. | ||
| # Copyright (C) 2012 Nick Bolton | ||
| -# | ||
| +# | ||
| # This package is free software; you can redistribute it and/or | ||
| # modify it under the terms of the GNU General Public License | ||
| # found in the file LICENSE that should have accompanied this file. | ||
| -# | ||
| +# | ||
| # This package is distributed in the hope that it will be useful, | ||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| @@ -35,7 +35,7 @@ else() | ||
| endif() | ||
| target_link_libraries(synergyd | ||
| - arch base common io ipc mt net platform synergy ${libs}) | ||
| + arch base common io ipc mt net platform synergy shared ${libs} ${OPENSSL_LIBS}) | ||
| if (CONF_CPACK) | ||
| install(TARGETS | ||
View
2
src/cmd/synergyp/CMakeLists.txt
| @@ -63,7 +63,7 @@ else() | ||
| endif() | ||
| target_link_libraries(synergyp | ||
| - arch base client common io mt net ipc platform server synergy client ${libs}) | ||
| + arch base client common io mt net ipc platform server synergy client ${libs} ${OPENSSL_LIBS}) | ||
| if (CONF_CPACK) | ||
| install(TARGETS | ||
Oops, something went wrong.