This repository has been archived by the owner. It is now read-only.
Permalink
...
Comparing changes
Open a pull request
22
contributors
This comparison is big! We’re only showing the most recent
250
commits
Unified
Split
Showing
with
2,771 additions
and 4,251 deletions.
- +3 −2 .github/ISSUE_TEMPLATE.md
- +3 −0 .gitignore
- +5 −7 CMakeLists.txt
- +48 −0 ChangeLog
- +3 −3 doc/MacReadme.txt
- +33 −41 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
- +2 −2 src/gui/res/lang/Languages.xml
- +26 −18 src/gui/res/mac/Info.plist
- +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
- +12 −8 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
- +3 −1 src/lib/arch/unix/ArchDaemonUnix.cpp
- +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/ipc/IpcClientProxy.cpp
- +1 −1 src/lib/ipc/IpcServerProxy.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
- +24 −12 src/lib/platform/MSWindowsKeyState.cpp
- +1 −1 src/lib/platform/MSWindowsKeyState.h
- +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
- +2 −0 src/lib/platform/OSXScreen.h
- +23 −6 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
- +8 −25 src/lib/platform/XWindowsScreen.cpp
- +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
- +2 −2 src/lib/server/Config.cpp
- +4 −4 src/lib/server/InputFilter.cpp
- +96 −87 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
- +4 −2 src/lib/synergy/key_types.h
- +1 −1 src/micro/uSynergy.h
- +15 −8 src/setup/win32/Product.wxs
- +1 −1 src/test/integtests/CMakeLists.txt
- +39 −30 src/test/integtests/net/NetworkTests.cpp
- +21 −0 src/test/integtests/platform/MSWindowsKeyStateTests.cpp
- +1 −1 src/test/unittests/CMakeLists.txt
- +147 −0 src/test/unittests/shared/SerialKeyTests.cpp
- +9 −3 src/test/unittests/synergy/ClipboardChunkTests.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
5
.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 ;) | ||
| @@ -28,4 +27,6 @@ Server: microOS Tiara | ||
| * Is there a way to work around it? No/Yes, you can... | ||
| * Does this bug prevent you from using Synergy entirely? Yes/No | ||
| +Please follow the link below to send us logs from both your server and client sides if it's appropriate. https://github.com/symless/synergy/wiki/Sending-logs | ||
| + | ||
| Put anything else you can think of here. | ||
View
3
.gitignore
| @@ -1,7 +1,10 @@ | ||
| config.h | ||
| +.DS_Store | ||
| *.pyc | ||
| +*.o | ||
| *~ | ||
| \.*.swp | ||
| +*build-gui-Desktop_Qt* | ||
| /bin | ||
| /lib | ||
| /build | ||
View
12
CMakeLists.txt
| @@ -17,7 +17,7 @@ | ||
| # Version number for Synergy | ||
| set(VERSION_MAJOR 1) | ||
| set(VERSION_MINOR 8) | ||
| -set(VERSION_REV 3) | ||
| +set(VERSION_REV 8) | ||
| set(VERSION_STAGE stable) | ||
| set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REV}") | ||
| @@ -74,11 +74,6 @@ endif() | ||
| # Depending on the platform, pass in the required defines. | ||
| if (UNIX) | ||
| - | ||
| - # warnings as errors: | ||
| - # we have a problem with people checking in code with warnings. | ||
| - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-unused-local-typedef") | ||
| - | ||
| if (NOT APPLE) | ||
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") | ||
| endif() | ||
| @@ -205,7 +200,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
48
ChangeLog
| @@ -1,3 +1,51 @@ | ||
| +v1.8.8 | ||
| +========== | ||
| +Bug #5196 - Some keys on Korean and Japanese keyboards have the same keycode | ||
| +Bug #5578 - Pressing Hangul key results in alt+'a' | ||
| +Bug #5785 - Can't switch screens when cursor is in a corner | ||
| +Bug #3992 - macOS: Dragging is broken in Unity 3D | ||
| +Bug #5075 - macOS: Build fails on macOS 10.9 due to unknown compiler flag | ||
| +Bug #5809 - macOS: No version number is shown in the App Info dialog | ||
| +Bug #3197 - Linux: switchDoubleTap option is not working | ||
| +Bug #4477 - Linux: Mouse buttons higher than id 10 result in crash | ||
| +Bug #5832 - Linux: Screen size misdetected on multi-monitor display | ||
| +Enhancement #4504 - Improved Korean language description | ||
| +Enhancement #5525 - Added support for precise screen positioning in config file | ||
| +Enhancement #4290 - Windows: Removed annoying alt+print screen functionality | ||
| + | ||
| +v1.8.7-stable | ||
| +============= | ||
| +Bug #5784 - Edition changes when reopening GUI | ||
| + | ||
| +v1.8.6-stable | ||
| +============= | ||
| +Bug #5592 - Some keys don't work for macOS Sierra clients | ||
| +Bug #5186 - Cursor stuck on client when using multi-DPI server | ||
| +Bug #5722 - Malformed serial key in registry will crash GUI on startup | ||
| +Bug #5752 - Tab order is incorrect on Settings dialog | ||
| +Enhancement #5699 - Unified installers on macOS | ||
| +Feature #4836 - macOS Sierra build | ||
| + | ||
| +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
6
doc/MacReadme.txt
| @@ -5,10 +5,10 @@ To install on Mac OS X with the .zip distribution (first seen in 1.3.6) you must | ||
| 1. Extract the zip file to any location (usually double click will do this) | ||
| 2. Open Terminal, and cd to the extracted directory (e.g. /Users/my-name/Downloads/extracted-dir/) | ||
| - 3. Change to super user (use the su command) | ||
| - 4. Copy the binaries to /usr/bin using: cp synergy* /usr/bin | ||
| + 3. Copy the binaries to /usr/bin using: sudo cp synergy* /usr/bin | ||
| + 4. Correct the permissions and ownership: sudo chown root:wheel /usr/bin/synergy*; sudo chmod 555 /usr/bin/synergy* | ||
| -How to enable the root user in Mac OS X: | ||
| +Alternatively, you can copy the binaries as root. How to enable the root user in Mac OS X: | ||
| http://support.apple.com/en-us/ht1528 | ||
| Once the binaries have been copied to /usr/bin, you should follow the configuration guide: | ||
View
74
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 | ||
| @@ -306,7 +309,7 @@ def usage(self): | ||
| ' genlist Shows the list of available platform generators\n' | ||
| ' usage Shows the help screen\n' | ||
| '\n' | ||
| - 'Example: %s build -g 3' | ||
| + 'Example: %s conf -g 3' | ||
| ) % (app, app) | ||
| def configureAll(self, targets, extraArgs=''): | ||
| @@ -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 | ||
Oops, something went wrong.