2012-06-10 16:50:54 +00:00
|
|
|
# synergy -- mouse and keyboard sharing utility
|
2012-09-04 02:09:56 +00:00
|
|
|
# Copyright (C) 2012 Bolton Software Ltd.
|
|
|
|
# Copyright (C) 2009 Nick Bolton
|
2012-06-10 16:50:54 +00:00
|
|
|
#
|
|
|
|
# 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(inc
|
|
|
|
CMSWindowsClipboard.h
|
|
|
|
CMSWindowsClipboardAnyTextConverter.h
|
|
|
|
CMSWindowsClipboardBitmapConverter.h
|
|
|
|
CMSWindowsClipboardHTMLConverter.h
|
|
|
|
CMSWindowsClipboardTextConverter.h
|
|
|
|
CMSWindowsClipboardUTF16Converter.h
|
|
|
|
CMSWindowsDesks.h
|
|
|
|
CMSWindowsEventQueueBuffer.h
|
|
|
|
CMSWindowsKeyState.h
|
|
|
|
CMSWindowsScreen.h
|
|
|
|
CMSWindowsScreenSaver.h
|
|
|
|
CMSWindowsUtil.h
|
|
|
|
CMSWindowsRelauncher.h
|
|
|
|
CMSWindowsHookLibraryLoader.h
|
|
|
|
IMSWindowsClipboardFacade.h
|
|
|
|
CMSWindowsDebugOutputter.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(src
|
|
|
|
CMSWindowsClipboard.cpp
|
|
|
|
CMSWindowsClipboardFacade.cpp
|
|
|
|
CMSWindowsClipboardAnyTextConverter.cpp
|
|
|
|
CMSWindowsClipboardBitmapConverter.cpp
|
|
|
|
CMSWindowsClipboardHTMLConverter.cpp
|
|
|
|
CMSWindowsClipboardTextConverter.cpp
|
|
|
|
CMSWindowsClipboardUTF16Converter.cpp
|
|
|
|
CMSWindowsDesks.cpp
|
|
|
|
CMSWindowsEventQueueBuffer.cpp
|
|
|
|
CMSWindowsKeyState.cpp
|
|
|
|
CMSWindowsScreen.cpp
|
|
|
|
CMSWindowsScreenSaver.cpp
|
|
|
|
CMSWindowsUtil.cpp
|
|
|
|
CMSWindowsRelauncher.cpp
|
|
|
|
CMSWindowsHookLibraryLoader.cpp
|
|
|
|
CMSWindowsDebugOutputter.cpp
|
|
|
|
)
|
|
|
|
|
2013-08-02 13:21:06 +00:00
|
|
|
list(APPEND src
|
|
|
|
${inc}
|
|
|
|
)
|
2012-06-10 16:50:54 +00:00
|
|
|
|
|
|
|
elseif (APPLE)
|
|
|
|
|
|
|
|
set(src
|
|
|
|
COSXClipboard.cpp
|
|
|
|
COSXClipboardAnyTextConverter.cpp
|
|
|
|
COSXClipboardTextConverter.cpp
|
|
|
|
COSXClipboardUTF16Converter.cpp
|
|
|
|
COSXEventQueueBuffer.cpp
|
|
|
|
COSXKeyState.cpp
|
|
|
|
COSXScreen.cpp
|
|
|
|
COSXScreenSaver.cpp
|
|
|
|
COSXScreenSaverUtil.m
|
2013-08-30 14:38:43 +00:00
|
|
|
COSXPasteboardPeeker.m
|
|
|
|
COSXDragSimulator.m
|
|
|
|
COSXDragView.m
|
2012-06-10 16:50:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
elseif (UNIX)
|
|
|
|
|
|
|
|
set(src
|
|
|
|
CXWindowsClipboard.cpp
|
|
|
|
CXWindowsClipboardAnyBitmapConverter.cpp
|
|
|
|
CXWindowsClipboardBMPConverter.cpp
|
|
|
|
CXWindowsClipboardHTMLConverter.cpp
|
|
|
|
CXWindowsClipboardTextConverter.cpp
|
|
|
|
CXWindowsClipboardUCS2Converter.cpp
|
|
|
|
CXWindowsClipboardUTF8Converter.cpp
|
|
|
|
CXWindowsEventQueueBuffer.cpp
|
|
|
|
CXWindowsKeyState.cpp
|
|
|
|
CXWindowsScreen.cpp
|
|
|
|
CXWindowsScreenSaver.cpp
|
|
|
|
CXWindowsUtil.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(inc
|
|
|
|
../arch
|
|
|
|
../base
|
|
|
|
../common
|
|
|
|
../mt
|
|
|
|
../synergy
|
2012-07-03 14:15:05 +00:00
|
|
|
../ipc
|
2012-07-05 18:05:35 +00:00
|
|
|
../net
|
|
|
|
../io
|
2013-08-30 19:49:38 +00:00
|
|
|
../server
|
|
|
|
../client
|
2013-08-02 13:21:06 +00:00
|
|
|
../synwinhk
|
2013-08-23 09:59:31 +00:00
|
|
|
../synwinxt
|
2012-06-10 16:50:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if (UNIX)
|
|
|
|
list(APPEND inc
|
|
|
|
../../..
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2013-08-30 14:38:43 +00:00
|
|
|
if (APPLE)
|
|
|
|
list(APPEND inc
|
|
|
|
/System/Library/Frameworks
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2012-06-10 16:50:54 +00:00
|
|
|
include_directories(${inc})
|
|
|
|
add_library(platform STATIC ${src})
|
2013-09-24 16:29:51 +00:00
|
|
|
target_link_libraries(platform client ${libs})
|
2012-06-10 16:50:54 +00:00
|
|
|
|
|
|
|
if (UNIX)
|
2013-08-30 19:49:38 +00:00
|
|
|
target_link_libraries(platform io net ipc synergy server client ${libs})
|
2012-06-10 16:50:54 +00:00
|
|
|
endif()
|
2013-08-30 14:38:43 +00:00
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
FIND_LIBRARY(COCOA_LIBRARY Cocoa)
|
|
|
|
target_link_libraries(platform ${COCOA_LIBRARY})
|
|
|
|
endif()
|