normalised line endings - replaced \r\n with \n

This commit is contained in:
Nick Bolton
2011-01-15 02:20:14 +00:00
parent 77200d5779
commit f4d937532e
32 changed files with 4129 additions and 4129 deletions

View File

@@ -1,20 +1,20 @@
# synergy-plus -- mouse and keyboard sharing utility
# Copyright (C) 2009 The Synergy+ Project
#
# 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 COPYING 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
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Declare libs, so we can use list in linker later. There's probably
# a more elegant way of doing this; with SCons, when you check for the
# synergy-plus -- mouse and keyboard sharing utility
# Copyright (C) 2009 The Synergy+ Project
#
# 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 COPYING 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
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Declare libs, so we can use list in linker later. There's probably
# a more elegant way of doing this; with SCons, when you check for the
# lib, it is automatically passed to the linker.
SET(libs)
@@ -209,8 +209,8 @@ IF(UNIX)
ENDIF(APPLE)
ELSE(UNIX)
LIST(APPEND libs Wtsapi32 Userenv)
LIST(APPEND libs Wtsapi32 Userenv)
ADD_DEFINITIONS(
/DWIN32

View File

@@ -1,135 +1,135 @@
# synergy-plus -- mouse and keyboard sharing utility
# Copyright (C) 2009 The Synergy+ Project
#
# 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 COPYING 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
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# List of CPack variables:
# http://www.vtk.org/Wiki/CMake:CPackConfiguration
# CPack files common to all platforms.
SET(cpack_targets synergys synergyc)
IF(WIN32)
# Windows has an extra GUI and DLL.
LIST(APPEND cpack_targets launcher synrgyhk)
ENDIF(WIN32)
INSTALL(
TARGETS ${cpack_targets}
RUNTIME DESTINATION bin)
IF(WIN32)
INSTALL(
FILES
bin/Release/qsynergy.exe
DESTINATION bin)
ELSE(WIN32)
IF(APPLE)
# TODO: how the hell do we distribute mac apps?
#INSTALL(
# MACOSX_BUNDLE
# bin/QSynergy.app
# DESTINATION bin)
ELSE(APPLE)
INSTALL(
FILES
bin/qsynergy
DESTINATION bin)
ENDIF(APPLE)
ENDIF(WIN32)
# The default CPack behaviour is not to append the system processor
# type, which is undesirable in our case, since we want to support
# both 32-bit and 64-bit processors.
SET(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR})
# Hack: When running CMake on 64-bit Windows 7, the value of
# CMAKE_SYSTEM_PROCESSOR always seems to be x86, regardless of if the
# CMake build is 32-bit or 64-bit. As a work around, we will prefix either
# x86 or x64 (in the same style as Microsoft do with their installers).
# However, some confusion may be caused when the user sees that Synergy+
# is installed in the x86 Program Files directory (even though it's a
# 64-bit build). This is caused by NSIS only supporting the 32-bit
# installs structure (also uses 32-bit registry key locations).
IF(WIN32)
IF(CMAKE_CL_64)
SET(CPACK_SYSTEM_NAME Windows-x64)
ELSE(CMAKE_CL_64)
SET(CPACK_SYSTEM_NAME Windows-x86)
ENDIF(CMAKE_CL_64)
ENDIF(WIN32)
# For source code, use .tar.gz on Unix, and .zip on Windows
IF(UNIX)
SET(CPACK_SOURCE_GENERATOR TGZ)
ELSE(UNIX)
SET(CPACK_SOURCE_GENERATOR ZIP)
# synergy-plus -- mouse and keyboard sharing utility
# Copyright (C) 2009 The Synergy+ Project
#
# 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 COPYING 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
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# List of CPack variables:
# http://www.vtk.org/Wiki/CMake:CPackConfiguration
# CPack files common to all platforms.
SET(cpack_targets synergys synergyc)
IF(WIN32)
# Windows has an extra GUI and DLL.
LIST(APPEND cpack_targets launcher synrgyhk)
ENDIF(WIN32)
INSTALL(
TARGETS ${cpack_targets}
RUNTIME DESTINATION bin)
IF(WIN32)
INSTALL(
FILES
bin/Release/qsynergy.exe
DESTINATION bin)
ELSE(WIN32)
IF(APPLE)
# TODO: how the hell do we distribute mac apps?
#INSTALL(
# MACOSX_BUNDLE
# bin/QSynergy.app
# DESTINATION bin)
ELSE(APPLE)
INSTALL(
FILES
bin/qsynergy
DESTINATION bin)
ENDIF(APPLE)
ENDIF(WIN32)
# The default CPack behaviour is not to append the system processor
# type, which is undesirable in our case, since we want to support
# both 32-bit and 64-bit processors.
SET(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR})
# Hack: When running CMake on 64-bit Windows 7, the value of
# CMAKE_SYSTEM_PROCESSOR always seems to be x86, regardless of if the
# CMake build is 32-bit or 64-bit. As a work around, we will prefix either
# x86 or x64 (in the same style as Microsoft do with their installers).
# However, some confusion may be caused when the user sees that Synergy+
# is installed in the x86 Program Files directory (even though it's a
# 64-bit build). This is caused by NSIS only supporting the 32-bit
# installs structure (also uses 32-bit registry key locations).
IF(WIN32)
IF(CMAKE_CL_64)
SET(CPACK_SYSTEM_NAME Windows-x64)
ELSE(CMAKE_CL_64)
SET(CPACK_SYSTEM_NAME Windows-x86)
ENDIF(CMAKE_CL_64)
ENDIF(WIN32)
# For source code, use .tar.gz on Unix, and .zip on Windows
IF(UNIX)
SET(CPACK_SOURCE_GENERATOR TGZ)
ELSE(UNIX)
SET(CPACK_SOURCE_GENERATOR ZIP)
ENDIF(UNIX)
if(APPLE)
set(CPACK_SYSTEM_NAME "MacOSX-Universal")
endif(APPLE)
SET(CPACK_PACKAGE_NAME "synergy-plus")
SET(CPACK_PACKAGE_VENDOR "The Synergy+ Project")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Installs Synergy+ server and client")
SET(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})
SET(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
SET(CPACK_PACKAGE_VERSION_PATCH ${VERSION_REV})
SET(CPACK_PACKAGE_VERSION ${VERSION})
SET(CPACK_PACKAGE_CONTACT http://code.google.com/p/synergy-plus/)
SET(CPACK_RESOURCE_FILE_LICENSE "${cmake_dir}/License.rtf")
SET(CPACK_RESOURCE_FILE_README "${cmake_dir}/Readme.txt")
IF(WIN32)
SET(WIN32_ICON "${root_dir}/cmd/launcher/synergy.ico")
SET(CPACK_NSIS_MUI_ICON ${WIN32_ICON})
SET(CPACK_NSIS_MUI_UNIICON ${WIN32_ICON})
SET(CPACK_NSIS_INSTALLED_ICON_NAME launcher)
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "Synergy+")
SET(CPACK_PACKAGE_EXECUTABLES qsynergy;Synergy+)
ENDIF(WIN32)
# files to exclude from src package (regex patterns)
# to escape, use 4 backslashes (\\\\) -- yuck!
SET(CPACK_SOURCE_IGNORE_FILES
# temp output dir in root
"/bin/"
# generated config.h file
"/config\\\\.h$"
# buildbot stuff
"\\\\.buildbot\\\\-sourcedata$"
# qt temp build dir
"/gui/tmp/.*"
# qt make file
"/gui/Makefile$"
# qt generated ui headers
"/gui/ui_.*\\\\.h$"
# compiled python files
".*\\\\.pyc$"
# subversion caches (all dirs)
".*/\\\\.svn/.*"
# emacs temporary files
".*~$"
)
# Must be last (since it relies of CPACK_ vars).
INCLUDE(CPack)
endif(APPLE)
SET(CPACK_PACKAGE_NAME "synergy-plus")
SET(CPACK_PACKAGE_VENDOR "The Synergy+ Project")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Installs Synergy+ server and client")
SET(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})
SET(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
SET(CPACK_PACKAGE_VERSION_PATCH ${VERSION_REV})
SET(CPACK_PACKAGE_VERSION ${VERSION})
SET(CPACK_PACKAGE_CONTACT http://code.google.com/p/synergy-plus/)
SET(CPACK_RESOURCE_FILE_LICENSE "${cmake_dir}/License.rtf")
SET(CPACK_RESOURCE_FILE_README "${cmake_dir}/Readme.txt")
IF(WIN32)
SET(WIN32_ICON "${root_dir}/cmd/launcher/synergy.ico")
SET(CPACK_NSIS_MUI_ICON ${WIN32_ICON})
SET(CPACK_NSIS_MUI_UNIICON ${WIN32_ICON})
SET(CPACK_NSIS_INSTALLED_ICON_NAME launcher)
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "Synergy+")
SET(CPACK_PACKAGE_EXECUTABLES qsynergy;Synergy+)
ENDIF(WIN32)
# files to exclude from src package (regex patterns)
# to escape, use 4 backslashes (\\\\) -- yuck!
SET(CPACK_SOURCE_IGNORE_FILES
# temp output dir in root
"/bin/"
# generated config.h file
"/config\\\\.h$"
# buildbot stuff
"\\\\.buildbot\\\\-sourcedata$"
# qt temp build dir
"/gui/tmp/.*"
# qt make file
"/gui/Makefile$"
# qt generated ui headers
"/gui/ui_.*\\\\.h$"
# compiled python files
".*\\\\.pyc$"
# subversion caches (all dirs)
".*/\\\\.svn/.*"
# emacs temporary files
".*~$"
)
# Must be last (since it relies of CPACK_ vars).
INCLUDE(CPack)

View File

@@ -1,84 +1,84 @@
# synergy-plus -- mouse and keyboard sharing utility
# Copyright (C) 2009 The Synergy+ Project
#
# 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 COPYING 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
# GNU General Public License for more details.
#
# 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)
SET(root_cmd_launcher ${root_dir}/cmd/launcher)
SET(src_cmd_launcher_mswindows
${root_cmd_launcher}/CAddScreen.cpp
${root_cmd_launcher}/CAdvancedOptions.cpp
${root_cmd_launcher}/CAutoStart.cpp
${root_cmd_launcher}/CGlobalOptions.cpp
${root_cmd_launcher}/CHotkeyOptions.cpp
${root_cmd_launcher}/CInfo.cpp
${root_cmd_launcher}/CScreensLinks.cpp
${root_cmd_launcher}/LaunchUtil.cpp
${root_cmd_launcher}/launcher.cpp
)
SET(inc_cmd_launcher_mswindows
${root_cmd_launcher}/CAddScreen.h
${root_cmd_launcher}/CAdvancedOptions.h
${root_cmd_launcher}/CAutoStart.h
${root_cmd_launcher}/CGlobalOptions.h
${root_cmd_launcher}/CHotkeyOptions.h
${root_cmd_launcher}/CInfo.h
${root_cmd_launcher}/CScreensLinks.h
${root_cmd_launcher}/LaunchUtil.h
${root_cmd_launcher}/resource.h
)
SET(res_cmd_launcher_mswindows
${root_cmd_launcher}/launcher.rc
${root_cmd_launcher}/synergy.ico
)
SET(src_cmd_launcher)
IF(UNIX)
IF(APPLE)
LIST(APPEND src_cmd_launcher ${src_cmd_launcher_carbon})
ELSE(APPLE)
LIST(APPEND src_cmd_launcher ${src_cmd_launcher_xwindows})
ENDIF(APPLE)
ENDIF(UNIX)
IF(WIN32)
LIST(APPEND src_cmd_launcher
${inc_cmd_launcher_mswindows}
${res_cmd_launcher_mswindows}
${src_cmd_launcher_mswindows}
)
ENDIF(WIN32)
SET(inc_dirs_cmd_launcher
${root_dir}
${root_dir}/lib
${root_dir}/lib/arch
${root_dir}/lib/base
${root_dir}/lib/common
${root_dir}/lib/io
${root_dir}/lib/mt
${root_dir}/lib/net
${root_dir}/lib/platform
${root_dir}/lib/synergy
${root_dir}/lib/server
)
INCLUDE_DIRECTORIES(${inc_dirs_cmd_launcher})
ADD_EXECUTABLE(launcher WIN32 ${src_cmd_launcher})
TARGET_LINK_LIBRARIES(launcher synergy ${libs})
ENDIF(WIN32)
# synergy-plus -- mouse and keyboard sharing utility
# Copyright (C) 2009 The Synergy+ Project
#
# 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 COPYING 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
# GNU General Public License for more details.
#
# 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)
SET(root_cmd_launcher ${root_dir}/cmd/launcher)
SET(src_cmd_launcher_mswindows
${root_cmd_launcher}/CAddScreen.cpp
${root_cmd_launcher}/CAdvancedOptions.cpp
${root_cmd_launcher}/CAutoStart.cpp
${root_cmd_launcher}/CGlobalOptions.cpp
${root_cmd_launcher}/CHotkeyOptions.cpp
${root_cmd_launcher}/CInfo.cpp
${root_cmd_launcher}/CScreensLinks.cpp
${root_cmd_launcher}/LaunchUtil.cpp
${root_cmd_launcher}/launcher.cpp
)
SET(inc_cmd_launcher_mswindows
${root_cmd_launcher}/CAddScreen.h
${root_cmd_launcher}/CAdvancedOptions.h
${root_cmd_launcher}/CAutoStart.h
${root_cmd_launcher}/CGlobalOptions.h
${root_cmd_launcher}/CHotkeyOptions.h
${root_cmd_launcher}/CInfo.h
${root_cmd_launcher}/CScreensLinks.h
${root_cmd_launcher}/LaunchUtil.h
${root_cmd_launcher}/resource.h
)
SET(res_cmd_launcher_mswindows
${root_cmd_launcher}/launcher.rc
${root_cmd_launcher}/synergy.ico
)
SET(src_cmd_launcher)
IF(UNIX)
IF(APPLE)
LIST(APPEND src_cmd_launcher ${src_cmd_launcher_carbon})
ELSE(APPLE)
LIST(APPEND src_cmd_launcher ${src_cmd_launcher_xwindows})
ENDIF(APPLE)
ENDIF(UNIX)
IF(WIN32)
LIST(APPEND src_cmd_launcher
${inc_cmd_launcher_mswindows}
${res_cmd_launcher_mswindows}
${src_cmd_launcher_mswindows}
)
ENDIF(WIN32)
SET(inc_dirs_cmd_launcher
${root_dir}
${root_dir}/lib
${root_dir}/lib/arch
${root_dir}/lib/base
${root_dir}/lib/common
${root_dir}/lib/io
${root_dir}/lib/mt
${root_dir}/lib/net
${root_dir}/lib/platform
${root_dir}/lib/synergy
${root_dir}/lib/server
)
INCLUDE_DIRECTORIES(${inc_dirs_cmd_launcher})
ADD_EXECUTABLE(launcher WIN32 ${src_cmd_launcher})
TARGET_LINK_LIBRARIES(launcher synergy ${libs})
ENDIF(WIN32)

View File

@@ -1,415 +1,415 @@
# synergy-plus -- mouse and keyboard sharing utility
# Copyright (C) 2009 The Synergy+ Project
#
# 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 COPYING 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
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
SET(root_lib ${root_dir}/lib)
SET(src_lib_arch
${root_lib}/arch/CArchAppUtil.cpp
${root_lib}/arch/CArch.cpp
${root_lib}/arch/CArchDaemonNone.cpp
${root_lib}/arch/XArch.cpp
${root_lib}/arch/CArchConsoleStd.cpp
)
SET(src_lib_arch_unix
${root_lib}/arch/CArchAppUtilUnix.cpp
${root_lib}/arch/CArchConsoleUnix.cpp
${root_lib}/arch/CArchDaemonUnix.cpp
${root_lib}/arch/CArchFileUnix.cpp
${root_lib}/arch/CArchLogUnix.cpp
${root_lib}/arch/CArchMultithreadPosix.cpp
${root_lib}/arch/CArchNetworkBSD.cpp
${root_lib}/arch/CArchSleepUnix.cpp
${root_lib}/arch/CArchStringUnix.cpp
${root_lib}/arch/CArchSystemUnix.cpp
${root_lib}/arch/CArchTaskBarXWindows.cpp
${root_lib}/arch/CArchTimeUnix.cpp
${root_lib}/arch/XArchUnix.cpp
)
SET(src_lib_arch_windows
${root_lib}/arch/CArchAppUtilWindows.cpp
${root_lib}/arch/CArchConsoleWindows.cpp
${root_lib}/arch/CArchDaemonWindows.cpp
${root_lib}/arch/CArchFileWindows.cpp
${root_lib}/arch/CArchLogWindows.cpp
${root_lib}/arch/CArchMiscWindows.cpp
${root_lib}/arch/CArchMultithreadWindows.cpp
${root_lib}/arch/CArchNetworkWinsock.cpp
${root_lib}/arch/CArchSleepWindows.cpp
${root_lib}/arch/CArchStringWindows.cpp
${root_lib}/arch/CArchSystemWindows.cpp
${root_lib}/arch/CArchTaskBarWindows.cpp
${root_lib}/arch/CArchTimeWindows.cpp
${root_lib}/arch/XArchWindows.cpp
)
SET(inc_lib_arch_windows
${root_lib}/arch/CArchAppUtil.h
${root_lib}/arch/CArchAppUtilWindows.h
${root_lib}/arch/CArchConsoleWindows.h
${root_lib}/arch/CArchDaemonWindows.h
${root_lib}/arch/CArchFileWindows.h
${root_lib}/arch/CArchLogWindows.h
${root_lib}/arch/CArchMiscWindows.h
${root_lib}/arch/CArchMultithreadWindows.h
${root_lib}/arch/CArchNetworkWinsock.h
${root_lib}/arch/CArchSleepWindows.h
${root_lib}/arch/CArchStringWindows.h
${root_lib}/arch/CArchSystemWindows.h
${root_lib}/arch/CArchTaskBarWindows.h
${root_lib}/arch/CArchTimeWindows.h
${root_lib}/arch/CArchConsoleStd.h
${root_lib}/arch/IArchAppUtil.h
${root_lib}/arch/XArchWindows.h
)
SET(src_lib_base
${root_lib}/base/CEvent.cpp
${root_lib}/base/CEventQueue.cpp
${root_lib}/base/CFunctionEventJob.cpp
${root_lib}/base/CFunctionJob.cpp
${root_lib}/base/CLog.cpp
${root_lib}/base/CSimpleEventQueueBuffer.cpp
${root_lib}/base/CStopwatch.cpp
${root_lib}/base/CStringUtil.cpp
${root_lib}/base/CUnicode.cpp
${root_lib}/base/IEventQueue.cpp
${root_lib}/base/LogOutputters.cpp
${root_lib}/base/XBase.cpp
)
SET(inc_lib_base
${root_lib}/base/CEvent.h
${root_lib}/base/CEventQueue.h
${root_lib}/base/CFunctionEventJob.h
${root_lib}/base/CFunctionJob.h
${root_lib}/base/CLog.h
${root_lib}/base/CPriorityQueue.h
${root_lib}/base/CSimpleEventQueueBuffer.h
${root_lib}/base/CStopwatch.h
${root_lib}/base/CString.h
${root_lib}/base/CStringUtil.h
${root_lib}/base/CUnicode.h
${root_lib}/base/IEventJob.h
${root_lib}/base/IEventQueue.h
${root_lib}/base/IEventQueueBuffer.h
${root_lib}/base/IJob.h
${root_lib}/base/ILogOutputter.h
${root_lib}/base/LogOutputters.h
${root_lib}/base/TMethodEventJob.h
${root_lib}/base/TMethodJob.h
${root_lib}/base/XBase.h
)
SET(src_lib_client
${root_lib}/client/CClient.cpp
${root_lib}/client/CServerProxy.cpp
)
SET(inc_lib_client
${root_lib}/client/CClient.h
${root_lib}/client/CServerProxy.h
)
SET(src_lib_common
${root_lib}/common/Version.cpp
)
SET(inc_lib_common
${root_lib}/common/Version.h
)
SET(src_lib_io
${root_lib}/io/CStreamBuffer.cpp
${root_lib}/io/CStreamFilter.cpp
${root_lib}/io/IStream.cpp
${root_lib}/io/XIO.cpp
)
SET(inc_lib_io
${root_lib}/io/CStreamBuffer.h
${root_lib}/io/CStreamFilter.h
${root_lib}/io/IStream.h
${root_lib}/io/IStreamFilterFactory.h
${root_lib}/io/XIO.h
)
SET(src_lib_mt
${root_lib}/mt/CCondVar.cpp
${root_lib}/mt/CLock.cpp
${root_lib}/mt/CMutex.cpp
${root_lib}/mt/CThread.cpp
${root_lib}/mt/XMT.cpp
)
SET(inc_lib_mt
${root_lib}/mt/CCondVar.h
${root_lib}/mt/CLock.h
${root_lib}/mt/CMutex.h
${root_lib}/mt/CThread.h
${root_lib}/mt/XMT.h
${root_lib}/mt/XThread.h
)
SET(src_lib_net
${root_lib}/net/CNetworkAddress.cpp
${root_lib}/net/CSocketMultiplexer.cpp
${root_lib}/net/CTCPListenSocket.cpp
${root_lib}/net/CTCPSocket.cpp
${root_lib}/net/CTCPSocketFactory.cpp
${root_lib}/net/IDataSocket.cpp
${root_lib}/net/IListenSocket.cpp
${root_lib}/net/ISocket.cpp
${root_lib}/net/XSocket.cpp
)
SET(inc_lib_net
${root_lib}/net/CNetworkAddress.h
${root_lib}/net/CSocketMultiplexer.h
${root_lib}/net/CTCPListenSocket.h
${root_lib}/net/CTCPSocket.h
${root_lib}/net/CTCPSocketFactory.h
${root_lib}/net/IDataSocket.h
${root_lib}/net/IListenSocket.h
${root_lib}/net/ISocket.h
${root_lib}/net/ISocketFactory.h
${root_lib}/net/ISocketMultiplexerJob.h
${root_lib}/net/TSocketMultiplexerMethodJob.h
${root_lib}/net/XSocket.h
)
SET(src_lib_platform_xwindows
${root_lib}/platform/CXWindowsClipboard.cpp
${root_lib}/platform/CXWindowsClipboardAnyBitmapConverter.cpp
${root_lib}/platform/CXWindowsClipboardBMPConverter.cpp
${root_lib}/platform/CXWindowsClipboardHTMLConverter.cpp
${root_lib}/platform/CXWindowsClipboardTextConverter.cpp
${root_lib}/platform/CXWindowsClipboardUCS2Converter.cpp
${root_lib}/platform/CXWindowsClipboardUTF8Converter.cpp
${root_lib}/platform/CXWindowsEventQueueBuffer.cpp
${root_lib}/platform/CXWindowsKeyState.cpp
${root_lib}/platform/CXWindowsScreen.cpp
${root_lib}/platform/CXWindowsScreenSaver.cpp
${root_lib}/platform/CXWindowsUtil.cpp
)
SET(src_lib_platform_mswindows
${root_lib}/platform/CMSWindowsClipboard.cpp
${root_lib}/platform/CMSWindowsClipboardAnyTextConverter.cpp
${root_lib}/platform/CMSWindowsClipboardBitmapConverter.cpp
${root_lib}/platform/CMSWindowsClipboardHTMLConverter.cpp
${root_lib}/platform/CMSWindowsClipboardTextConverter.cpp
${root_lib}/platform/CMSWindowsClipboardUTF16Converter.cpp
${root_lib}/platform/CMSWindowsDesks.cpp
${root_lib}/platform/CMSWindowsEventQueueBuffer.cpp
${root_lib}/platform/CMSWindowsKeyState.cpp
${root_lib}/platform/CMSWindowsScreen.cpp
${root_lib}/platform/CMSWindowsScreenSaver.cpp
${root_lib}/platform/CMSWindowsUtil.cpp
${root_lib}/platform/CMSWindowsRelauncher.cpp
)
SET(inc_lib_platform_mswindows
${root_lib}/platform/CMSWindowsClipboard.h
${root_lib}/platform/CMSWindowsClipboardAnyTextConverter.h
${root_lib}/platform/CMSWindowsClipboardBitmapConverter.h
${root_lib}/platform/CMSWindowsClipboardHTMLConverter.h
${root_lib}/platform/CMSWindowsClipboardTextConverter.h
${root_lib}/platform/CMSWindowsClipboardUTF16Converter.h
${root_lib}/platform/CMSWindowsDesks.h
${root_lib}/platform/CMSWindowsEventQueueBuffer.h
${root_lib}/platform/CMSWindowsKeyState.h
${root_lib}/platform/CMSWindowsScreen.h
${root_lib}/platform/CMSWindowsScreenSaver.h
${root_lib}/platform/CMSWindowsUtil.h
${root_lib}/platform/CMSWindowsRelauncher.h
)
SET(src_lib_platform_hook
${root_lib}/platform/CSynergyHook.cpp
)
SET(inc_lib_platform_hook
${root_lib}/platform/CSynergyHook.h
)
SET(src_lib_platform_carbon
${root_lib}/platform/COSXClipboard.cpp
${root_lib}/platform/COSXClipboardAnyTextConverter.cpp
${root_lib}/platform/COSXClipboardTextConverter.cpp
${root_lib}/platform/COSXClipboardUTF16Converter.cpp
${root_lib}/platform/COSXEventQueueBuffer.cpp
${root_lib}/platform/COSXKeyState.cpp
${root_lib}/platform/COSXScreen.cpp
${root_lib}/platform/COSXScreenSaver.cpp
${root_lib}/platform/COSXScreenSaverUtil.m
)
SET(src_lib_server
${root_lib}/server/CBaseClientProxy.cpp
${root_lib}/server/CClientListener.cpp
${root_lib}/server/CClientProxy.cpp
${root_lib}/server/CClientProxy1_0.cpp
${root_lib}/server/CClientProxy1_1.cpp
${root_lib}/server/CClientProxy1_2.cpp
${root_lib}/server/CClientProxy1_3.cpp
${root_lib}/server/CClientProxyUnknown.cpp
${root_lib}/server/CConfig.cpp
${root_lib}/server/CInputFilter.cpp
${root_lib}/server/CPrimaryClient.cpp
${root_lib}/server/CServer.cpp
)
SET(inc_lib_server
${root_lib}/server/CBaseClientProxy.h
${root_lib}/server/CClientListener.h
${root_lib}/server/CClientProxy.h
${root_lib}/server/CClientProxy1_0.h
${root_lib}/server/CClientProxy1_1.h
${root_lib}/server/CClientProxy1_2.h
${root_lib}/server/CClientProxy1_3.h
${root_lib}/server/CClientProxyUnknown.h
${root_lib}/server/CConfig.h
${root_lib}/server/CInputFilter.h
${root_lib}/server/CPrimaryClient.h
${root_lib}/server/CServer.h
)
SET(src_lib_synergy
${root_lib}/synergy/CClientTaskBarReceiver.cpp
${root_lib}/synergy/CServerTaskBarReceiver.cpp
${root_lib}/synergy/CApp.cpp
${root_lib}/synergy/CClientApp.cpp
${root_lib}/synergy/CServerApp.cpp
${root_lib}/synergy/CClipboard.cpp
${root_lib}/synergy/CKeyMap.cpp
${root_lib}/synergy/CKeyState.cpp
${root_lib}/synergy/CPacketStreamFilter.cpp
${root_lib}/synergy/CPlatformScreen.cpp
${root_lib}/synergy/CProtocolUtil.cpp
${root_lib}/synergy/CScreen.cpp
${root_lib}/synergy/IClipboard.cpp
${root_lib}/synergy/IKeyState.cpp
${root_lib}/synergy/IPrimaryScreen.cpp
${root_lib}/synergy/IScreen.cpp
${root_lib}/synergy/KeyTypes.cpp
${root_lib}/synergy/ProtocolTypes.cpp
${root_lib}/synergy/XScreen.cpp
${root_lib}/synergy/XSynergy.cpp
)
SET(inc_lib_synergy
${root_lib}/synergy/CClientTaskBarReceiver.h
${root_lib}/synergy/CServerTaskBarReceiver.h
${root_lib}/synergy/CApp.h
${root_lib}/synergy/CClientApp.h
${root_lib}/synergy/CServerApp.h
${root_lib}/synergy/CClipboard.h
${root_lib}/synergy/CKeyMap.h
${root_lib}/synergy/CKeyState.h
${root_lib}/synergy/CPacketStreamFilter.h
${root_lib}/synergy/CPlatformScreen.h
${root_lib}/synergy/CProtocolUtil.h
${root_lib}/synergy/CScreen.h
${root_lib}/synergy/ClipboardTypes.h
${root_lib}/synergy/IClient.h
${root_lib}/synergy/IClipboard.h
${root_lib}/synergy/IKeyState.h
${root_lib}/synergy/IPlatformScreen.h
${root_lib}/synergy/IPrimaryScreen.h
${root_lib}/synergy/IScreen.h
${root_lib}/synergy/IScreenSaver.h
${root_lib}/synergy/ISecondaryScreen.h
${root_lib}/synergy/KeyTypes.h
${root_lib}/synergy/MouseTypes.h
${root_lib}/synergy/OptionTypes.h
${root_lib}/synergy/ProtocolTypes.h
${root_lib}/synergy/XScreen.h
${root_lib}/synergy/XSynergy.h
)
# Create default `src`, with cross-platform sources.
SET(src_lib
${src_lib_arch}
${src_lib_base}
${src_lib_client}
${src_lib_common}
${src_lib_io}
${src_lib_mt}
${src_lib_net}
${src_lib_server}
${src_lib_synergy}
)
# Append to `src_lib`, the platform specific sources.
IF(UNIX)
LIST(APPEND src_lib ${src_lib_arch_unix})
IF(APPLE)
LIST(APPEND src_lib
${src_lib_platform_carbon}
${inc_lib_synergy_carbon}
${src_lib_synergy_carbon}
)
ELSE(APPLE)
LIST(APPEND src_lib
${src_lib_platform_xwindows}
${inc_lib_synergy_xwindows}
${src_lib_synergy_xwindows}
)
ENDIF(APPLE)
ENDIF(UNIX)
IF(WIN32)
LIST(APPEND src_lib
${inc_lib_base}
${inc_lib_client}
${inc_lib_common}
${inc_lib_io}
${inc_lib_mt}
${inc_lib_net}
${inc_lib_server}
${inc_lib_synergy}
${inc_lib_arch_windows}
${src_lib_arch_windows}
${inc_lib_platform_mswindows}
${src_lib_platform_mswindows}
${inc_lib_synergy_mswindows}
${src_lib_synergy_mswindows}
)
ENDIF(WIN32)
SET(inc_lib_dirs
{$root_dir}
{$root_dir}/lib/arch
{$root_dir}/lib/base
{$root_dir}/lib/client
{$root_dir}/lib/common
{$root_dir}/lib/io
{$root_dir}/lib/mt
{$root_dir}/lib/net
{$root_dir}/lib/platform
{$root_dir}/lib/server
{$root_dir}/lib/synergy
)
INCLUDE_DIRECTORIES(${inc_lib_dirs})
ADD_LIBRARY(synergy STATIC ${src_lib})
IF(WIN32)
ADD_LIBRARY(synrgyhk SHARED ${inc_lib_platform_hook} ${src_lib_platform_hook})
ENDIF(WIN32)
# synergy-plus -- mouse and keyboard sharing utility
# Copyright (C) 2009 The Synergy+ Project
#
# 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 COPYING 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
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
SET(root_lib ${root_dir}/lib)
SET(src_lib_arch
${root_lib}/arch/CArchAppUtil.cpp
${root_lib}/arch/CArch.cpp
${root_lib}/arch/CArchDaemonNone.cpp
${root_lib}/arch/XArch.cpp
${root_lib}/arch/CArchConsoleStd.cpp
)
SET(src_lib_arch_unix
${root_lib}/arch/CArchAppUtilUnix.cpp
${root_lib}/arch/CArchConsoleUnix.cpp
${root_lib}/arch/CArchDaemonUnix.cpp
${root_lib}/arch/CArchFileUnix.cpp
${root_lib}/arch/CArchLogUnix.cpp
${root_lib}/arch/CArchMultithreadPosix.cpp
${root_lib}/arch/CArchNetworkBSD.cpp
${root_lib}/arch/CArchSleepUnix.cpp
${root_lib}/arch/CArchStringUnix.cpp
${root_lib}/arch/CArchSystemUnix.cpp
${root_lib}/arch/CArchTaskBarXWindows.cpp
${root_lib}/arch/CArchTimeUnix.cpp
${root_lib}/arch/XArchUnix.cpp
)
SET(src_lib_arch_windows
${root_lib}/arch/CArchAppUtilWindows.cpp
${root_lib}/arch/CArchConsoleWindows.cpp
${root_lib}/arch/CArchDaemonWindows.cpp
${root_lib}/arch/CArchFileWindows.cpp
${root_lib}/arch/CArchLogWindows.cpp
${root_lib}/arch/CArchMiscWindows.cpp
${root_lib}/arch/CArchMultithreadWindows.cpp
${root_lib}/arch/CArchNetworkWinsock.cpp
${root_lib}/arch/CArchSleepWindows.cpp
${root_lib}/arch/CArchStringWindows.cpp
${root_lib}/arch/CArchSystemWindows.cpp
${root_lib}/arch/CArchTaskBarWindows.cpp
${root_lib}/arch/CArchTimeWindows.cpp
${root_lib}/arch/XArchWindows.cpp
)
SET(inc_lib_arch_windows
${root_lib}/arch/CArchAppUtil.h
${root_lib}/arch/CArchAppUtilWindows.h
${root_lib}/arch/CArchConsoleWindows.h
${root_lib}/arch/CArchDaemonWindows.h
${root_lib}/arch/CArchFileWindows.h
${root_lib}/arch/CArchLogWindows.h
${root_lib}/arch/CArchMiscWindows.h
${root_lib}/arch/CArchMultithreadWindows.h
${root_lib}/arch/CArchNetworkWinsock.h
${root_lib}/arch/CArchSleepWindows.h
${root_lib}/arch/CArchStringWindows.h
${root_lib}/arch/CArchSystemWindows.h
${root_lib}/arch/CArchTaskBarWindows.h
${root_lib}/arch/CArchTimeWindows.h
${root_lib}/arch/CArchConsoleStd.h
${root_lib}/arch/IArchAppUtil.h
${root_lib}/arch/XArchWindows.h
)
SET(src_lib_base
${root_lib}/base/CEvent.cpp
${root_lib}/base/CEventQueue.cpp
${root_lib}/base/CFunctionEventJob.cpp
${root_lib}/base/CFunctionJob.cpp
${root_lib}/base/CLog.cpp
${root_lib}/base/CSimpleEventQueueBuffer.cpp
${root_lib}/base/CStopwatch.cpp
${root_lib}/base/CStringUtil.cpp
${root_lib}/base/CUnicode.cpp
${root_lib}/base/IEventQueue.cpp
${root_lib}/base/LogOutputters.cpp
${root_lib}/base/XBase.cpp
)
SET(inc_lib_base
${root_lib}/base/CEvent.h
${root_lib}/base/CEventQueue.h
${root_lib}/base/CFunctionEventJob.h
${root_lib}/base/CFunctionJob.h
${root_lib}/base/CLog.h
${root_lib}/base/CPriorityQueue.h
${root_lib}/base/CSimpleEventQueueBuffer.h
${root_lib}/base/CStopwatch.h
${root_lib}/base/CString.h
${root_lib}/base/CStringUtil.h
${root_lib}/base/CUnicode.h
${root_lib}/base/IEventJob.h
${root_lib}/base/IEventQueue.h
${root_lib}/base/IEventQueueBuffer.h
${root_lib}/base/IJob.h
${root_lib}/base/ILogOutputter.h
${root_lib}/base/LogOutputters.h
${root_lib}/base/TMethodEventJob.h
${root_lib}/base/TMethodJob.h
${root_lib}/base/XBase.h
)
SET(src_lib_client
${root_lib}/client/CClient.cpp
${root_lib}/client/CServerProxy.cpp
)
SET(inc_lib_client
${root_lib}/client/CClient.h
${root_lib}/client/CServerProxy.h
)
SET(src_lib_common
${root_lib}/common/Version.cpp
)
SET(inc_lib_common
${root_lib}/common/Version.h
)
SET(src_lib_io
${root_lib}/io/CStreamBuffer.cpp
${root_lib}/io/CStreamFilter.cpp
${root_lib}/io/IStream.cpp
${root_lib}/io/XIO.cpp
)
SET(inc_lib_io
${root_lib}/io/CStreamBuffer.h
${root_lib}/io/CStreamFilter.h
${root_lib}/io/IStream.h
${root_lib}/io/IStreamFilterFactory.h
${root_lib}/io/XIO.h
)
SET(src_lib_mt
${root_lib}/mt/CCondVar.cpp
${root_lib}/mt/CLock.cpp
${root_lib}/mt/CMutex.cpp
${root_lib}/mt/CThread.cpp
${root_lib}/mt/XMT.cpp
)
SET(inc_lib_mt
${root_lib}/mt/CCondVar.h
${root_lib}/mt/CLock.h
${root_lib}/mt/CMutex.h
${root_lib}/mt/CThread.h
${root_lib}/mt/XMT.h
${root_lib}/mt/XThread.h
)
SET(src_lib_net
${root_lib}/net/CNetworkAddress.cpp
${root_lib}/net/CSocketMultiplexer.cpp
${root_lib}/net/CTCPListenSocket.cpp
${root_lib}/net/CTCPSocket.cpp
${root_lib}/net/CTCPSocketFactory.cpp
${root_lib}/net/IDataSocket.cpp
${root_lib}/net/IListenSocket.cpp
${root_lib}/net/ISocket.cpp
${root_lib}/net/XSocket.cpp
)
SET(inc_lib_net
${root_lib}/net/CNetworkAddress.h
${root_lib}/net/CSocketMultiplexer.h
${root_lib}/net/CTCPListenSocket.h
${root_lib}/net/CTCPSocket.h
${root_lib}/net/CTCPSocketFactory.h
${root_lib}/net/IDataSocket.h
${root_lib}/net/IListenSocket.h
${root_lib}/net/ISocket.h
${root_lib}/net/ISocketFactory.h
${root_lib}/net/ISocketMultiplexerJob.h
${root_lib}/net/TSocketMultiplexerMethodJob.h
${root_lib}/net/XSocket.h
)
SET(src_lib_platform_xwindows
${root_lib}/platform/CXWindowsClipboard.cpp
${root_lib}/platform/CXWindowsClipboardAnyBitmapConverter.cpp
${root_lib}/platform/CXWindowsClipboardBMPConverter.cpp
${root_lib}/platform/CXWindowsClipboardHTMLConverter.cpp
${root_lib}/platform/CXWindowsClipboardTextConverter.cpp
${root_lib}/platform/CXWindowsClipboardUCS2Converter.cpp
${root_lib}/platform/CXWindowsClipboardUTF8Converter.cpp
${root_lib}/platform/CXWindowsEventQueueBuffer.cpp
${root_lib}/platform/CXWindowsKeyState.cpp
${root_lib}/platform/CXWindowsScreen.cpp
${root_lib}/platform/CXWindowsScreenSaver.cpp
${root_lib}/platform/CXWindowsUtil.cpp
)
SET(src_lib_platform_mswindows
${root_lib}/platform/CMSWindowsClipboard.cpp
${root_lib}/platform/CMSWindowsClipboardAnyTextConverter.cpp
${root_lib}/platform/CMSWindowsClipboardBitmapConverter.cpp
${root_lib}/platform/CMSWindowsClipboardHTMLConverter.cpp
${root_lib}/platform/CMSWindowsClipboardTextConverter.cpp
${root_lib}/platform/CMSWindowsClipboardUTF16Converter.cpp
${root_lib}/platform/CMSWindowsDesks.cpp
${root_lib}/platform/CMSWindowsEventQueueBuffer.cpp
${root_lib}/platform/CMSWindowsKeyState.cpp
${root_lib}/platform/CMSWindowsScreen.cpp
${root_lib}/platform/CMSWindowsScreenSaver.cpp
${root_lib}/platform/CMSWindowsUtil.cpp
${root_lib}/platform/CMSWindowsRelauncher.cpp
)
SET(inc_lib_platform_mswindows
${root_lib}/platform/CMSWindowsClipboard.h
${root_lib}/platform/CMSWindowsClipboardAnyTextConverter.h
${root_lib}/platform/CMSWindowsClipboardBitmapConverter.h
${root_lib}/platform/CMSWindowsClipboardHTMLConverter.h
${root_lib}/platform/CMSWindowsClipboardTextConverter.h
${root_lib}/platform/CMSWindowsClipboardUTF16Converter.h
${root_lib}/platform/CMSWindowsDesks.h
${root_lib}/platform/CMSWindowsEventQueueBuffer.h
${root_lib}/platform/CMSWindowsKeyState.h
${root_lib}/platform/CMSWindowsScreen.h
${root_lib}/platform/CMSWindowsScreenSaver.h
${root_lib}/platform/CMSWindowsUtil.h
${root_lib}/platform/CMSWindowsRelauncher.h
)
SET(src_lib_platform_hook
${root_lib}/platform/CSynergyHook.cpp
)
SET(inc_lib_platform_hook
${root_lib}/platform/CSynergyHook.h
)
SET(src_lib_platform_carbon
${root_lib}/platform/COSXClipboard.cpp
${root_lib}/platform/COSXClipboardAnyTextConverter.cpp
${root_lib}/platform/COSXClipboardTextConverter.cpp
${root_lib}/platform/COSXClipboardUTF16Converter.cpp
${root_lib}/platform/COSXEventQueueBuffer.cpp
${root_lib}/platform/COSXKeyState.cpp
${root_lib}/platform/COSXScreen.cpp
${root_lib}/platform/COSXScreenSaver.cpp
${root_lib}/platform/COSXScreenSaverUtil.m
)
SET(src_lib_server
${root_lib}/server/CBaseClientProxy.cpp
${root_lib}/server/CClientListener.cpp
${root_lib}/server/CClientProxy.cpp
${root_lib}/server/CClientProxy1_0.cpp
${root_lib}/server/CClientProxy1_1.cpp
${root_lib}/server/CClientProxy1_2.cpp
${root_lib}/server/CClientProxy1_3.cpp
${root_lib}/server/CClientProxyUnknown.cpp
${root_lib}/server/CConfig.cpp
${root_lib}/server/CInputFilter.cpp
${root_lib}/server/CPrimaryClient.cpp
${root_lib}/server/CServer.cpp
)
SET(inc_lib_server
${root_lib}/server/CBaseClientProxy.h
${root_lib}/server/CClientListener.h
${root_lib}/server/CClientProxy.h
${root_lib}/server/CClientProxy1_0.h
${root_lib}/server/CClientProxy1_1.h
${root_lib}/server/CClientProxy1_2.h
${root_lib}/server/CClientProxy1_3.h
${root_lib}/server/CClientProxyUnknown.h
${root_lib}/server/CConfig.h
${root_lib}/server/CInputFilter.h
${root_lib}/server/CPrimaryClient.h
${root_lib}/server/CServer.h
)
SET(src_lib_synergy
${root_lib}/synergy/CClientTaskBarReceiver.cpp
${root_lib}/synergy/CServerTaskBarReceiver.cpp
${root_lib}/synergy/CApp.cpp
${root_lib}/synergy/CClientApp.cpp
${root_lib}/synergy/CServerApp.cpp
${root_lib}/synergy/CClipboard.cpp
${root_lib}/synergy/CKeyMap.cpp
${root_lib}/synergy/CKeyState.cpp
${root_lib}/synergy/CPacketStreamFilter.cpp
${root_lib}/synergy/CPlatformScreen.cpp
${root_lib}/synergy/CProtocolUtil.cpp
${root_lib}/synergy/CScreen.cpp
${root_lib}/synergy/IClipboard.cpp
${root_lib}/synergy/IKeyState.cpp
${root_lib}/synergy/IPrimaryScreen.cpp
${root_lib}/synergy/IScreen.cpp
${root_lib}/synergy/KeyTypes.cpp
${root_lib}/synergy/ProtocolTypes.cpp
${root_lib}/synergy/XScreen.cpp
${root_lib}/synergy/XSynergy.cpp
)
SET(inc_lib_synergy
${root_lib}/synergy/CClientTaskBarReceiver.h
${root_lib}/synergy/CServerTaskBarReceiver.h
${root_lib}/synergy/CApp.h
${root_lib}/synergy/CClientApp.h
${root_lib}/synergy/CServerApp.h
${root_lib}/synergy/CClipboard.h
${root_lib}/synergy/CKeyMap.h
${root_lib}/synergy/CKeyState.h
${root_lib}/synergy/CPacketStreamFilter.h
${root_lib}/synergy/CPlatformScreen.h
${root_lib}/synergy/CProtocolUtil.h
${root_lib}/synergy/CScreen.h
${root_lib}/synergy/ClipboardTypes.h
${root_lib}/synergy/IClient.h
${root_lib}/synergy/IClipboard.h
${root_lib}/synergy/IKeyState.h
${root_lib}/synergy/IPlatformScreen.h
${root_lib}/synergy/IPrimaryScreen.h
${root_lib}/synergy/IScreen.h
${root_lib}/synergy/IScreenSaver.h
${root_lib}/synergy/ISecondaryScreen.h
${root_lib}/synergy/KeyTypes.h
${root_lib}/synergy/MouseTypes.h
${root_lib}/synergy/OptionTypes.h
${root_lib}/synergy/ProtocolTypes.h
${root_lib}/synergy/XScreen.h
${root_lib}/synergy/XSynergy.h
)
# Create default `src`, with cross-platform sources.
SET(src_lib
${src_lib_arch}
${src_lib_base}
${src_lib_client}
${src_lib_common}
${src_lib_io}
${src_lib_mt}
${src_lib_net}
${src_lib_server}
${src_lib_synergy}
)
# Append to `src_lib`, the platform specific sources.
IF(UNIX)
LIST(APPEND src_lib ${src_lib_arch_unix})
IF(APPLE)
LIST(APPEND src_lib
${src_lib_platform_carbon}
${inc_lib_synergy_carbon}
${src_lib_synergy_carbon}
)
ELSE(APPLE)
LIST(APPEND src_lib
${src_lib_platform_xwindows}
${inc_lib_synergy_xwindows}
${src_lib_synergy_xwindows}
)
ENDIF(APPLE)
ENDIF(UNIX)
IF(WIN32)
LIST(APPEND src_lib
${inc_lib_base}
${inc_lib_client}
${inc_lib_common}
${inc_lib_io}
${inc_lib_mt}
${inc_lib_net}
${inc_lib_server}
${inc_lib_synergy}
${inc_lib_arch_windows}
${src_lib_arch_windows}
${inc_lib_platform_mswindows}
${src_lib_platform_mswindows}
${inc_lib_synergy_mswindows}
${src_lib_synergy_mswindows}
)
ENDIF(WIN32)
SET(inc_lib_dirs
{$root_dir}
{$root_dir}/lib/arch
{$root_dir}/lib/base
{$root_dir}/lib/client
{$root_dir}/lib/common
{$root_dir}/lib/io
{$root_dir}/lib/mt
{$root_dir}/lib/net
{$root_dir}/lib/platform
{$root_dir}/lib/server
{$root_dir}/lib/synergy
)
INCLUDE_DIRECTORIES(${inc_lib_dirs})
ADD_LIBRARY(synergy STATIC ${src_lib})
IF(WIN32)
ADD_LIBRARY(synrgyhk SHARED ${inc_lib_platform_hook} ${src_lib_platform_hook})
ENDIF(WIN32)

View File

@@ -1,84 +1,84 @@
# synergy-plus -- mouse and keyboard sharing utility
# Copyright (C) 2009 The Synergy+ Project
#
# 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 COPYING 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
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
SET(root_cmd_synergyc ${root_dir}/cmd/synergyc)
SET(src_cmd_synergyc_common
${root_cmd_synergyc}/synergyc.cpp
)
SET(src_cmd_synergyc_xwindows
${root_cmd_synergyc}/CXWindowsClientTaskBarReceiver.cpp
)
SET(src_cmd_synergyc_mswindows
${root_cmd_synergyc}/CMSWindowsClientTaskBarReceiver.cpp
)
SET(inc_cmd_synergyc_mswindows
${root_cmd_synergyc}/CMSWindowsClientTaskBarReceiver.h
${root_cmd_synergyc}/resource.h
)
SET(res_cmd_synergyc_mswindows
${root_cmd_synergyc}/synergyc.ico
${root_cmd_synergyc}/synergyc.rc
${root_cmd_synergyc}/tb_error.ico
${root_cmd_synergyc}/tb_idle.ico
${root_cmd_synergyc}/tb_run.ico
${root_cmd_synergyc}/tb_wait.ico
)
SET(src_cmd_synergyc_carbon
${root_cmd_synergyc}/COSXClientTaskBarReceiver.cpp
)
SET(src_cmd_synergyc ${src_cmd_synergyc_common})
IF(UNIX)
IF(APPLE)
LIST(APPEND src_cmd_synergyc ${src_cmd_synergyc_carbon})
ELSE(APPLE)
LIST(APPEND src_cmd_synergyc ${src_cmd_synergyc_xwindows})
ENDIF(APPLE)
ELSE(UNIX)
LIST(APPEND src_cmd_synergyc
${inc_cmd_synergyc_mswindows}
${res_cmd_synergyc_mswindows}
${src_cmd_synergyc_mswindows}
)
ENDIF(UNIX)
SET(inc_dirs_cmd_synergyc
${root_dir}
${root_dir}/lib
${root_dir}/lib/arch
${root_dir}/lib/base
${root_dir}/lib/client
${root_dir}/lib/common
${root_dir}/lib/io
${root_dir}/lib/mt
${root_dir}/lib/net
${root_dir}/lib/platform
${root_dir}/lib/synergy
)
INCLUDE_DIRECTORIES(${inc_dirs_cmd_synergyc})
ADD_EXECUTABLE(synergyc ${src_cmd_synergyc})
TARGET_LINK_LIBRARIES(synergyc synergy ${libs})
# synergy-plus -- mouse and keyboard sharing utility
# Copyright (C) 2009 The Synergy+ Project
#
# 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 COPYING 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
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
SET(root_cmd_synergyc ${root_dir}/cmd/synergyc)
SET(src_cmd_synergyc_common
${root_cmd_synergyc}/synergyc.cpp
)
SET(src_cmd_synergyc_xwindows
${root_cmd_synergyc}/CXWindowsClientTaskBarReceiver.cpp
)
SET(src_cmd_synergyc_mswindows
${root_cmd_synergyc}/CMSWindowsClientTaskBarReceiver.cpp
)
SET(inc_cmd_synergyc_mswindows
${root_cmd_synergyc}/CMSWindowsClientTaskBarReceiver.h
${root_cmd_synergyc}/resource.h
)
SET(res_cmd_synergyc_mswindows
${root_cmd_synergyc}/synergyc.ico
${root_cmd_synergyc}/synergyc.rc
${root_cmd_synergyc}/tb_error.ico
${root_cmd_synergyc}/tb_idle.ico
${root_cmd_synergyc}/tb_run.ico
${root_cmd_synergyc}/tb_wait.ico
)
SET(src_cmd_synergyc_carbon
${root_cmd_synergyc}/COSXClientTaskBarReceiver.cpp
)
SET(src_cmd_synergyc ${src_cmd_synergyc_common})
IF(UNIX)
IF(APPLE)
LIST(APPEND src_cmd_synergyc ${src_cmd_synergyc_carbon})
ELSE(APPLE)
LIST(APPEND src_cmd_synergyc ${src_cmd_synergyc_xwindows})
ENDIF(APPLE)
ELSE(UNIX)
LIST(APPEND src_cmd_synergyc
${inc_cmd_synergyc_mswindows}
${res_cmd_synergyc_mswindows}
${src_cmd_synergyc_mswindows}
)
ENDIF(UNIX)
SET(inc_dirs_cmd_synergyc
${root_dir}
${root_dir}/lib
${root_dir}/lib/arch
${root_dir}/lib/base
${root_dir}/lib/client
${root_dir}/lib/common
${root_dir}/lib/io
${root_dir}/lib/mt
${root_dir}/lib/net
${root_dir}/lib/platform
${root_dir}/lib/synergy
)
INCLUDE_DIRECTORIES(${inc_dirs_cmd_synergyc})
ADD_EXECUTABLE(synergyc ${src_cmd_synergyc})
TARGET_LINK_LIBRARIES(synergyc synergy ${libs})

View File

@@ -1,84 +1,84 @@
# synergy-plus -- mouse and keyboard sharing utility
# Copyright (C) 2009 The Synergy+ Project
#
# 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 COPYING 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
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
SET(root_cmd_synergys ${root_dir}/cmd/synergys)
SET(src_cmd_synergys_common
${root_cmd_synergys}/synergys.cpp
)
SET(src_cmd_synergys_xwindows
${root_cmd_synergys}/CXWindowsServerTaskBarReceiver.cpp
)
SET(src_cmd_synergys_mswindows
${root_cmd_synergys}/CMSWindowsServerTaskBarReceiver.cpp
)
SET(inc_cmd_synergys_mswindows
${root_cmd_synergys}/CMSWindowsServerTaskBarReceiver.h
${root_cmd_synergys}/resource.h
)
SET(res_cmd_synergys_mswindows
${root_cmd_synergys}/synergys.ico
${root_cmd_synergys}/synergys.rc
${root_cmd_synergys}/tb_error.ico
${root_cmd_synergys}/tb_idle.ico
${root_cmd_synergys}/tb_run.ico
${root_cmd_synergys}/tb_wait.ico
)
SET(src_cmd_synergys_carbon
${root_cmd_synergys}/COSXServerTaskBarReceiver.cpp
)
SET(src_cmd_synergys ${src_cmd_synergys_common})
IF(UNIX)
IF(APPLE)
LIST(APPEND src_cmd_synergys ${src_cmd_synergys_carbon})
ELSE(APPLE)
LIST(APPEND src_cmd_synergys ${src_cmd_synergys_xwindows})
ENDIF(APPLE)
ELSE(UNIX)
LIST(APPEND src_cmd_synergys
${inc_cmd_synergys_mswindows}
${res_cmd_synergys_mswindows}
${src_cmd_synergys_mswindows}
)
ENDIF(UNIX)
SET(inc_dirs_cmd_synergys
${root_dir}
${root_dir}/lib
${root_dir}/lib/arch
${root_dir}/lib/base
${root_dir}/lib/common
${root_dir}/lib/io
${root_dir}/lib/mt
${root_dir}/lib/net
${root_dir}/lib/platform
${root_dir}/lib/synergy
${root_dir}/lib/server
)
INCLUDE_DIRECTORIES(${inc_dirs_cmd_synergys})
ADD_EXECUTABLE(synergys ${src_cmd_synergys})
TARGET_LINK_LIBRARIES(synergys synergy ${libs})
# synergy-plus -- mouse and keyboard sharing utility
# Copyright (C) 2009 The Synergy+ Project
#
# 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 COPYING 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
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
SET(root_cmd_synergys ${root_dir}/cmd/synergys)
SET(src_cmd_synergys_common
${root_cmd_synergys}/synergys.cpp
)
SET(src_cmd_synergys_xwindows
${root_cmd_synergys}/CXWindowsServerTaskBarReceiver.cpp
)
SET(src_cmd_synergys_mswindows
${root_cmd_synergys}/CMSWindowsServerTaskBarReceiver.cpp
)
SET(inc_cmd_synergys_mswindows
${root_cmd_synergys}/CMSWindowsServerTaskBarReceiver.h
${root_cmd_synergys}/resource.h
)
SET(res_cmd_synergys_mswindows
${root_cmd_synergys}/synergys.ico
${root_cmd_synergys}/synergys.rc
${root_cmd_synergys}/tb_error.ico
${root_cmd_synergys}/tb_idle.ico
${root_cmd_synergys}/tb_run.ico
${root_cmd_synergys}/tb_wait.ico
)
SET(src_cmd_synergys_carbon
${root_cmd_synergys}/COSXServerTaskBarReceiver.cpp
)
SET(src_cmd_synergys ${src_cmd_synergys_common})
IF(UNIX)
IF(APPLE)
LIST(APPEND src_cmd_synergys ${src_cmd_synergys_carbon})
ELSE(APPLE)
LIST(APPEND src_cmd_synergys ${src_cmd_synergys_xwindows})
ENDIF(APPLE)
ELSE(UNIX)
LIST(APPEND src_cmd_synergys
${inc_cmd_synergys_mswindows}
${res_cmd_synergys_mswindows}
${src_cmd_synergys_mswindows}
)
ENDIF(UNIX)
SET(inc_dirs_cmd_synergys
${root_dir}
${root_dir}/lib
${root_dir}/lib/arch
${root_dir}/lib/base
${root_dir}/lib/common
${root_dir}/lib/io
${root_dir}/lib/mt
${root_dir}/lib/net
${root_dir}/lib/platform
${root_dir}/lib/synergy
${root_dir}/lib/server
)
INCLUDE_DIRECTORIES(${inc_dirs_cmd_synergys})
ADD_EXECUTABLE(synergys ${src_cmd_synergys})
TARGET_LINK_LIBRARIES(synergys synergy ${libs})