2024-09-17 19:00:25 +00:00
|
|
|
# Deskflow -- mouse and keyboard sharing utility
|
2024-10-23 23:02:59 +00:00
|
|
|
# Copyright (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
|
2024-07-02 10:23:56 +00:00
|
|
|
# Copyright (C) 2012-2024 Symless Ltd.
|
|
|
|
|
# Copyright (C) 2009-2012 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
|
2015-05-03 02:33:52 +00:00
|
|
|
# found in the file LICENSE that should have accompanied this file.
|
2024-07-02 10:23:56 +00:00
|
|
|
#
|
2012-06-10 16:50:54 +00:00
|
|
|
# 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/>.
|
|
|
|
|
|
2024-10-23 23:02:59 +00:00
|
|
|
# Platform Specific Code
|
2024-07-02 10:23:56 +00:00
|
|
|
if(WIN32)
|
2024-10-23 23:02:59 +00:00
|
|
|
set(PLATFORM_CODE
|
|
|
|
|
win32/ArchConsoleWindows.cpp
|
|
|
|
|
win32/ArchConsoleWindows.h
|
|
|
|
|
win32/ArchDaemonWindows.cpp
|
|
|
|
|
win32/ArchDaemonWindows.h
|
|
|
|
|
win32/ArchFileWindows.cpp
|
|
|
|
|
win32/ArchFileWindows.h
|
|
|
|
|
win32/ArchLogWindows.cpp
|
|
|
|
|
win32/ArchLogWindows.h
|
|
|
|
|
win32/ArchMiscWindows.cpp
|
|
|
|
|
win32/ArchMiscWindows.h
|
|
|
|
|
win32/ArchMultithreadWindows.cpp
|
|
|
|
|
win32/ArchMultithreadWindows.h
|
|
|
|
|
win32/ArchNetworkWinsock.cpp
|
|
|
|
|
win32/ArchNetworkWinsock.h
|
|
|
|
|
win32/ArchSleepWindows.cpp
|
|
|
|
|
win32/ArchSleepWindows.h
|
|
|
|
|
win32/ArchStringWindows.cpp
|
|
|
|
|
win32/ArchStringWindows.h
|
|
|
|
|
win32/ArchSystemWindows.cpp
|
|
|
|
|
win32/ArchSystemWindows.h
|
|
|
|
|
win32/ArchTaskBarWindows.cpp
|
|
|
|
|
win32/ArchTaskBarWindows.h
|
|
|
|
|
win32/ArchTimeWindows.cpp
|
|
|
|
|
win32/ArchTimeWindows.h
|
|
|
|
|
win32/XArchWindows.cpp
|
|
|
|
|
win32/XArchWindows.h
|
|
|
|
|
)
|
2014-02-28 12:36:45 +00:00
|
|
|
|
2024-10-23 23:02:59 +00:00
|
|
|
elseif(UNIX)
|
|
|
|
|
set(PLATFORM_CODE
|
|
|
|
|
unix/ArchConsoleUnix.cpp
|
|
|
|
|
unix/ArchConsoleUnix.h
|
|
|
|
|
unix/ArchDaemonUnix.cpp
|
|
|
|
|
unix/ArchDaemonUnix.h
|
|
|
|
|
unix/ArchFileUnix.cpp
|
|
|
|
|
unix/ArchFileUnix.h
|
|
|
|
|
unix/ArchLogUnix.cpp
|
|
|
|
|
unix/ArchLogUnix.h
|
|
|
|
|
unix/ArchMultithreadPosix.cpp
|
|
|
|
|
unix/ArchMultithreadPosix.h
|
|
|
|
|
unix/ArchNetworkBSD.cpp
|
|
|
|
|
unix/ArchNetworkBSD.h
|
|
|
|
|
unix/ArchSleepUnix.cpp
|
|
|
|
|
unix/ArchSleepUnix.h
|
|
|
|
|
unix/ArchStringUnix.cpp
|
|
|
|
|
unix/ArchStringUnix.h
|
|
|
|
|
unix/ArchSystemUnix.cpp
|
|
|
|
|
unix/ArchSystemUnix.h
|
|
|
|
|
unix/ArchTaskBarXWindows.cpp
|
|
|
|
|
unix/ArchTaskBarXWindows.h
|
|
|
|
|
unix/ArchTimeUnix.cpp
|
|
|
|
|
unix/ArchTimeUnix.h
|
|
|
|
|
unix/XArchUnix.cpp
|
|
|
|
|
unix/XArchUnix.h
|
|
|
|
|
)
|
2012-06-10 16:50:54 +00:00
|
|
|
endif()
|
|
|
|
|
|
2024-10-23 23:02:59 +00:00
|
|
|
add_library(arch STATIC ${PLATFORM_CODE}
|
|
|
|
|
Arch.cpp
|
|
|
|
|
Arch.h
|
|
|
|
|
ArchConsoleStd.cpp
|
|
|
|
|
ArchConsoleStd.h
|
|
|
|
|
ArchDaemonNone.cpp
|
|
|
|
|
ArchDaemonNone.h
|
|
|
|
|
IArchConsole.h
|
|
|
|
|
IArchDaemon.h
|
|
|
|
|
IArchFile.h
|
|
|
|
|
IArchLog.h
|
|
|
|
|
IArchMultithread.h
|
|
|
|
|
IArchNetwork.h
|
|
|
|
|
IArchSleep.h
|
|
|
|
|
IArchString.cpp
|
|
|
|
|
IArchString.h
|
|
|
|
|
IArchSystem.h
|
|
|
|
|
IArchTaskBar.h
|
|
|
|
|
IArchTaskBarReceiver.h
|
|
|
|
|
IArchTime.h
|
|
|
|
|
multibyte.h
|
|
|
|
|
vsnprintf.h
|
|
|
|
|
XArch.h
|
|
|
|
|
)
|
2014-04-08 16:41:48 +00:00
|
|
|
|
2024-07-02 10:23:56 +00:00
|
|
|
if(UNIX)
|
|
|
|
|
target_link_libraries(arch ${CMAKE_DL_LIBS} ${libs})
|
|
|
|
|
if(NOT APPLE)
|
2024-07-08 14:37:51 +00:00
|
|
|
find_package(Qt6 COMPONENTS DBus)
|
|
|
|
|
target_link_libraries(arch Qt6::DBus)
|
2024-07-02 10:23:56 +00:00
|
|
|
endif()
|
2014-04-08 16:41:48 +00:00
|
|
|
endif()
|