deskflow/src/lib/gui/CMakeLists.txt

119 lines
2.5 KiB
CMake
Raw Normal View History

# SPDX-FileCopyrightText: 2024 Deskflow Developers
# SPDX-FileCopyrightText: 2024 Symless Ltd
# SPDX-License-Identifier: MIT
set(target gui)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
2025-01-15 01:20:04 +00:00
if(APPLE)
set (platform_sources
OSXHelpers.h
OSXHelpers.mm
)
Refactored core process management and IPC client (#7425) * Also ignore `command_pre` for Fedora itself * Improve warning message * Fixed layout issues on main window * Restore fusion theme for Windows dark mode * Further correct main window layout * Set CWD for launch on Windows to same dir as .env * Use signals for tray icon instead of callback * Reduce complexity for setting tray icon * Further reduce tray icon complexity * Reduce tray retry time * Fixed tray not showing on macOS * Refactor function names * Move tray icon to lib * Decouple server connection class * Move server connection to lib * Move client config to lib * Remove redundant forward declarations * Fixed some namespaces in the new lib * Move core process code to new class * Improve member names on new process class * Remove copy/pasta code * Move OSX helpers to lib * Add .mm to lib config * Fixed copyright * Improve reliability of log line handling * Fixed TLS certificate generate bugs * Remove client list * Refactor core process handling to fix various problems * Fixed process/connection status bugs * Fixed function signature issue on macOS * Fixed override warnings * Fixed string format warning * Save `wasStarted` state and use that instead * Use only filename in dialog * Use lambda for simple slot * Scroll to bottom if at bottome * Set value based on position before text added and set horizontal scroll too * Add 1px tollerance for Linux * Simplify start/stop mutex * Always stop service on restart * Increase scroll bottom threshold to 2 * Log warning instead of critical * Fixed long-standing dir CD-up hack * Remove include * Remove include * Fixed rogue dumbisense includes * Account for optional distro_like * Add QAction include to solve incomplete type * Remove rogue #pragma * Static cast log value * Solve event queue delete warning * Fixed integ test on Windows 10 * Reduce enum verbosity * Use static instance instead of global * Make function const * Use unique_ptr instead of new and delete, and made some functions const * Fixed smart pointer use * Fixed variable shadowing * Fixed wrong use of using * Fixed missing namespace using * Simplify TLS error handling * Improve UX around certificate errors and success * Decouple app config from core process through interface * First iteration of core process test * Mark dtor as override * Rename attach launch entry * Add TODO * Create proxy for process * Move IPC client to deps * Fixed warnings * Reorganize new GUI lib dir structure * Update includes to reflect new paths * Reorg GUI tests * Abstract IPC client * Refactor about screen * Fixed .ui warnings * Remove redundant include * Fixed typo * Fixed typos and add spelling * Fixed misleading function name * Improve comment * Improve code coverage for core process * Remove noisy log line * Make global const * Use default dtor * Use vector instead of new * Make ctor explicit * Make ctor explicit (2) * Use enum class * Fixed bad enum * Stub out core tool * Stub out dir operation * Extract byte functions * Add missing return path * Simplify byte/int functions * Fix truncation * Use ctor member assignment * Fixed segfault in process proxy * Fixed print warning * Make function const * Cleanup header * Fixed missing name * Update ChangeLog * Make more functions const
2024-08-07 14:05:18 +00:00
endif()
2025-01-15 01:20:04 +00:00
add_library(${target} STATIC
${platform_sources}
byte_utils.h
constants.h
diagnostic.cpp
diagnostic.h
dotenv.cpp
dotenv.h
env_vars.h
Logger.cpp
Logger.h
messages.cpp
messages.h
paths.h
string_utils.h
style_utils.h
styles.h
config/AppConfig.cpp
config/AppConfig.h
config/ConfigScopes.cpp
config/ConfigScopes.h
config/ElevateMode.h
config/IAppConfig.h
config/IConfigScopes.h
config/IServerConfig.h
config/Screen.cpp
config/Screen.h
config/ScreenConfig.cpp
config/ScreenConfig.h
config/ScreenList.cpp
config/ScreenList.h
config/ServerConfigDialogState.h
core/ClientConnection.cpp
core/ClientConnection.h
core/CommandProcess.cpp
core/CommandProcess.h
core/CoreProcess.cpp
core/CoreProcess.h
core/CoreTool.cpp
core/CoreTool.h
core/ServerConnection.cpp
core/ServerConnection.h
core/ServerMessage.cpp
core/ServerMessage.h
core/WaylandWarnings.cpp
core/WaylandWarnings.h
ipc/IpcReader.cpp
ipc/IpcReader.h
ipc/IQIpcClient.cpp
ipc/IQIpcClient.h
ipc/QDataStreamProxy.h
ipc/QIpcClient.cpp
ipc/QIpcClient.h
ipc/DaemonIpcClient.cpp
ipc/DaemonIpcClient.h
2025-01-15 01:20:04 +00:00
proxy/QNetworkAccessManagerProxy.cpp
proxy/QNetworkAccessManagerProxy.h
proxy/QProcessProxy.cpp
proxy/QProcessProxy.h
proxy/QSettingsProxy.cpp
proxy/QSettingsProxy.h
tls/TlsCertificate.cpp
tls/TlsCertificate.h
tls/TlsUtility.cpp
tls/TlsUtility.h
validators/AliasValidator.cpp
validators/AliasValidator.h
validators/ComputerNameValidator.cpp
validators/ComputerNameValidator.h
validators/EmptyStringValidator.cpp
validators/EmptyStringValidator.h
validators/IStringValidator.cpp
validators/IStringValidator.h
validators/LineEditValidator.cpp
validators/LineEditValidator.h
validators/ScreenDuplicationsValidator.cpp
validators/ScreenDuplicationsValidator.h
validators/ScreenNameValidator.cpp
validators/ScreenNameValidator.h
validators/SpacesValidator.cpp
validators/SpacesValidator.h
validators/ValidationError.cpp
validators/ValidationError.h
)
target_link_libraries(
${target}
platform
Qt6::Core
Qt6::Widgets
Qt6::Network)
2024-10-29 18:09:43 +00:00
if(WIN32)
target_link_libraries(
${target}
base
arch
net
2024-10-29 18:09:43 +00:00
)
endif()