2022-03-13 20:27:14 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
|
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
2024-06-09 20:56:32 +00:00
|
|
|
ecm_add_qml_module(mobileshellplugin URI org.kde.plasma.private.mobileshell GENERATE_PLUGIN_SOURCE DEPENDENCIES QtQuick)
|
2023-11-02 11:08:17 +00:00
|
|
|
|
2022-03-13 20:27:14 +00:00
|
|
|
set(mobileshellplugin_SRCS
|
2023-01-24 07:51:18 +00:00
|
|
|
shellutil.cpp
|
|
|
|
|
components/direction.cpp
|
2023-11-02 11:08:17 +00:00
|
|
|
components/direction.h
|
2023-09-30 05:56:49 +00:00
|
|
|
components/swipearea.cpp
|
2023-01-24 07:51:18 +00:00
|
|
|
notifications/notificationthumbnailer.cpp
|
|
|
|
|
notifications/notificationfilemenu.cpp
|
2024-07-28 18:54:14 +00:00
|
|
|
notifications/notificationfileinfo.cpp
|
2022-03-13 20:27:14 +00:00
|
|
|
)
|
2023-11-02 11:08:17 +00:00
|
|
|
target_include_directories(mobileshellplugin PRIVATE components)
|
|
|
|
|
target_include_directories(mobileshellplugin PRIVATE notifications)
|
|
|
|
|
target_sources(mobileshellplugin PRIVATE ${mobileshellplugin_SRCS})
|
|
|
|
|
|
|
|
|
|
# Singleton declarations
|
|
|
|
|
set_source_files_properties(qml/components/AppLaunch.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
|
|
|
|
|
set_source_files_properties(qml/components/Constants.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
|
|
|
|
|
set_source_files_properties(qml/dataproviders/AudioInfo.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
|
|
|
|
|
set_source_files_properties(qml/dataproviders/BatteryInfo.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
|
|
|
|
|
set_source_files_properties(qml/dataproviders/BluetoothInfo.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
|
|
|
|
|
set_source_files_properties(qml/dataproviders/SignalStrengthInfo.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
|
|
|
|
|
set_source_files_properties(qml/volumeosd/VolumeOSDProviderLoader.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
|
|
|
|
|
|
|
|
|
|
# Include qml and js files within ./qml/
|
|
|
|
|
file(GLOB_RECURSE _qml_sources
|
|
|
|
|
"qml/*.qml"
|
|
|
|
|
"qml/*.js"
|
|
|
|
|
)
|
|
|
|
|
ecm_target_qml_sources(mobileshellplugin SOURCES ${_qml_sources})
|
|
|
|
|
|
2022-03-13 20:27:14 +00:00
|
|
|
|
2024-07-13 16:30:07 +00:00
|
|
|
target_link_libraries(mobileshellplugin
|
2022-03-13 20:27:14 +00:00
|
|
|
PUBLIC
|
|
|
|
|
Qt::Core
|
|
|
|
|
PRIVATE
|
|
|
|
|
Qt::DBus
|
|
|
|
|
Qt::Qml
|
|
|
|
|
Qt::Gui
|
|
|
|
|
Qt::Quick
|
2023-03-02 07:19:14 +00:00
|
|
|
KF6::KIOGui
|
2023-11-23 22:42:47 +00:00
|
|
|
Plasma::Plasma
|
2023-03-02 07:19:14 +00:00
|
|
|
KF6::I18n
|
|
|
|
|
KF6::Notifications
|
2023-11-23 22:42:47 +00:00
|
|
|
Plasma::PlasmaQuick
|
2023-03-02 07:19:14 +00:00
|
|
|
KF6::KIOGui
|
|
|
|
|
KF6::KIOWidgets # for PreviewJob
|
|
|
|
|
KF6::Service
|
|
|
|
|
KF6::Package
|
2024-10-31 00:53:12 +00:00
|
|
|
KF6::ConfigGui
|
2024-10-25 15:52:49 +00:00
|
|
|
LayerShellQt::Interface
|
2022-03-13 20:27:14 +00:00
|
|
|
)
|
|
|
|
|
|
2023-11-02 11:08:17 +00:00
|
|
|
ecm_finalize_qml_module(mobileshellplugin)
|