shift-shell/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

152 lines
4.2 KiB
Text
Raw Normal View History

# SPDX-FileCopyrightText: 2014-2020 Marco Martin <mart@kde.org>
# SPDX-FileCopyrightText: 2017-2021 Bhushan Shah <bshah@kde.org>
# SPDX-FileCopyrightText: 2019-2021 Nicolas Fella <nicolas.fella@kde.org>
# SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
# SPDX-License-Identifier: GPL-2.0-or-later
cmake_minimum_required(VERSION 3.16)
2022-01-18 16:02:38 +00:00
project(plasma-mobile)
2025-01-09 11:03:18 +00:00
set(PROJECT_VERSION "6.2.90")
set(PROJECT_VERSION_MAJOR 6)
2014-08-06 08:49:28 +00:00
2024-10-03 11:12:24 +00:00
set(PROJECT_DEP_VERSION "6.2.0")
set(QT_MIN_VERSION "6.7.0")
set(KF6_MIN_VERSION "6.10.0")
set(KDE_COMPILERSETTINGS_LEVEL "5.82")
2014-08-06 08:49:28 +00:00
2023-03-06 06:38:43 +00:00
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2014-08-06 08:49:28 +00:00
option(INSTALL_SYSTEMD_SERVICE "Install a systemd service file to start the session" OFF)
2023-03-02 07:19:14 +00:00
find_package(ECM ${KF6_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
2014-08-06 08:49:28 +00:00
2022-03-11 17:00:39 +00:00
set(KF_IGNORE_PLATFORM_CHECK ON CACHE BOOL "Don't check platform that is being built on")
2022-03-11 16:59:57 +00:00
2014-08-06 08:49:28 +00:00
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
2014-08-06 08:49:28 +00:00
include(ECMOptionalAddSubdirectory)
include(ECMInstallIcons)
include(ECMSetupVersion)
include(ECMMarkNonGuiExecutable)
include(ECMGenerateHeaders)
include(ECMFindQmlModule)
include(ECMGenerateQmlTypes)
include(ECMFindQmlModule)
2014-08-06 08:49:28 +00:00
include(GenerateExportHeader)
2021-05-30 15:50:22 +00:00
include(KDEGitCommitHooks)
include(KDEClangFormat)
2014-08-06 08:49:28 +00:00
include(FeatureSummary)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
ecm_setup_version(${PROJECT_VERSION}
VARIABLE_PREFIX PLASMA_MOBILE
VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/version.h
)
2023-06-02 16:28:18 +00:00
find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED
Core
Qml
Quick
Gui
Sensors
notifications: Implement popup notifications This merge request implements a more mobile optimized solution for popup notification. - The current controls are: - Swipe up to move the notification to the notification center. - Swipe left/right to dismiss the notification entirely. - If multiple popup notifications are grouped together, tap on the bottom area to view them in a expanded view. What still needs to be done: - ~~For notification without a default action, tapping on them should probably open up the associated app.~~ Note: I think I will add this in a separate merge request as it probably should be the case regardless if the notification is a popup - ~~Swiping down on a notification currently does nothing. Maybe we should map this to a notification action?~~ Note: I have some ideas I will try later, though for now, I will leave this action blank - ~~The expanded view of notifications should be able to be dismissed by swiping up/down on the top/bottom of the list.~~ Note: Added - Investigate further into how to remove the current desktop popup notifications. - ~~Code clean up.~~ Note: The code is at least a bit better Single popup notification: ![notification_1](/uploads/63d12be6da1dd2676de17940dcadbdfa/notification_1.gif) Multiple popup notifications: ![notification_2](/uploads/907a14b772f66f46040c28342f4dcf02/notification_2.gif) Multiple popup notifications in the expanded view: ![notification_3](/uploads/9a7cd09a6bb8a0f7ee70e5bcf7c29c6b/notification_3.gif) Any feedback would be greatly appreciated.
2024-11-07 16:13:06 +00:00
WaylandClient
)
2022-03-11 03:39:58 +00:00
2023-03-02 07:19:14 +00:00
find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS
I18n
2023-03-06 06:38:43 +00:00
GlobalAccel
KIO
2023-03-02 07:19:14 +00:00
Config
DBusAddons
ItemModels
Service
2020-05-10 16:07:36 +00:00
Notifications
ModemManagerQt
NetworkManagerQt
KCMUtils
Package
JobWidgets
)
find_package(Plasma CONFIG REQUIRED)
find_package(PlasmaQuick CONFIG REQUIRED)
find_package(PlasmaActivities CONFIG REQUIRED)
find_package(KF6Screen CONFIG REQUIRED)
2023-11-23 14:26:22 +00:00
find_package(KWayland CONFIG REQUIRED)
find_package(PkgConfig REQUIRED)
find_package(QCoro6 REQUIRED COMPONENTS DBus)
qcoro_enable_coroutines()
kde_enable_exceptions()
pkg_check_modules(GOBJECT gobject-2.0 REQUIRED IMPORTED_TARGET)
pkg_check_modules(GIO gio-2.0 REQUIRED IMPORTED_TARGET)
find_package(KF6KirigamiAddons 0.6 REQUIRED)
2023-03-06 06:38:43 +00:00
find_package(epoxy REQUIRED)
find_package(XCB REQUIRED COMPONENTS XCB)
find_package(KWin ${PROJECT_DEP_VERSION} REQUIRED COMPONENTS
kwin
2023-03-06 06:38:43 +00:00
)
find_package(LayerShellQt REQUIRED)
find_package(LibKWorkspace CONFIG REQUIRED)
find_package(Libudev REQUIRED)
find_package(KWinDBusInterface)
set_package_properties(KWinDBusInterface PROPERTIES DESCRIPTION "KWin DBus interface"
TYPE REQUIRED
PURPOSE "Needed for virtual keyboard toggle button"
)
2014-08-06 08:49:28 +00:00
include(CheckIncludeFiles)
ecm_find_qmlmodule(org.kde.pipewire 0.1)
plasma_install_package(lookandfeel org.kde.breeze.mobile look-and-feel lookandfeel)
plasma_install_package(shell org.kde.plasma.mobileshell shells)
add_subdirectory(bin)
add_subdirectory(components)
add_subdirectory(containments)
add_subdirectory(quicksettings)
add_subdirectory(kcms)
add_subdirectory(kded)
add_subdirectory(kwin)
add_subdirectory(envmanager)
add_subdirectory(initialstart)
add_subdirectory(layout-templates)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
find_program(PlasmaOpenSettings plasma-open-settings)
set_package_properties(PlasmaOpenSettings PROPERTIES
URL https://invent.kde.org/plasma/kde-cli-tools/
DESCRIPTION "Opens KCMs properly"
TYPE RUNTIME
PURPOSE "Used on the top panel")
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
2021-03-19 07:23:10 +00:00
2021-05-30 15:50:22 +00:00
# add clang-format target for all our real source files
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
2022-10-02 15:14:17 +00:00
ki18n_install(po)
if (INSTALL_SYSTEMD_SERVICE)
install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/plasma-mobile.service
DESTINATION ${KDE_INSTALL_SYSTEMDUNITDIR}
)
endif()