Warning, /plasma/plasma-mobile/components/mobileshell/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
0002 # SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 ecm_add_qml_module(mobileshellplugin URI org.kde.plasma.private.mobileshell GENERATE_PLUGIN_SOURCE)
0005 
0006 set(mobileshellplugin_SRCS
0007     shellutil.cpp
0008     components/direction.cpp
0009     components/direction.h
0010     components/swipearea.cpp
0011     notifications/notificationthumbnailer.cpp
0012     notifications/notificationfilemenu.cpp
0013 )
0014 target_include_directories(mobileshellplugin PRIVATE components)
0015 target_include_directories(mobileshellplugin PRIVATE notifications)
0016 target_sources(mobileshellplugin PRIVATE ${mobileshellplugin_SRCS})
0017 
0018 # Singleton declarations
0019 set_source_files_properties(qml/components/AppLaunch.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
0020 set_source_files_properties(qml/components/Constants.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
0021 set_source_files_properties(qml/dataproviders/AudioInfo.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
0022 set_source_files_properties(qml/dataproviders/BatteryInfo.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
0023 set_source_files_properties(qml/dataproviders/BluetoothInfo.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
0024 set_source_files_properties(qml/dataproviders/SignalStrengthInfo.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
0025 set_source_files_properties(qml/volumeosd/VolumeOSDProviderLoader.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
0026 
0027 # Include qml and js files within ./qml/
0028 file(GLOB_RECURSE _qml_sources
0029     "qml/*.qml"
0030     "qml/*.js"
0031 )
0032 ecm_target_qml_sources(mobileshellplugin SOURCES ${_qml_sources})
0033 
0034 
0035 target_link_libraries(mobileshellplugin 
0036     PUBLIC
0037         Qt::Core
0038     PRIVATE
0039         Qt::DBus
0040         Qt::Qml
0041         Qt::Gui
0042         Qt::Quick
0043         KF6::ConfigWidgets # for KStandardAction
0044         KF6::KIOGui
0045         Plasma::Plasma
0046         KF6::I18n
0047         KF6::Notifications
0048         Plasma::PlasmaQuick
0049         KF6::KIOGui
0050         KF6::KIOWidgets # for PreviewJob
0051         Plasma::KWaylandClient
0052         KF6::Service
0053         KF6::Package
0054 )
0055 
0056 ecm_finalize_qml_module(mobileshellplugin)