mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Move from a C++ library + QML plugin to a QML plugin only for simplicity, since the homescreen switching architecture will be done from Plasma, and so use of the shell library only needs to be from QML.
52 lines
1.6 KiB
CMake
52 lines
1.6 KiB
CMake
# SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/..)
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
|
|
|
|
set(mobileshellplugin_SRCS
|
|
mobileshellplugin.cpp
|
|
mobileshellsettings.cpp
|
|
quicksetting.cpp
|
|
quicksettingsmodel.cpp
|
|
savedquicksettings.cpp
|
|
savedquicksettingsmodel.cpp
|
|
shellutil.cpp
|
|
notifications/notificationthumbnailer.cpp
|
|
notifications/notificationfilemenu.cpp
|
|
taskswitcher/displaysmodel.cpp
|
|
)
|
|
|
|
if(QUICK_COMPILER)
|
|
qtquick_compiler_add_resources(RESOURCES resources.qrc)
|
|
else()
|
|
qt5_add_resources(RESOURCES resources.qrc)
|
|
endif()
|
|
|
|
add_library(mobileshellplugin SHARED ${mobileshellplugin_SRCS} ${RESOURCES})
|
|
|
|
target_link_libraries(mobileshellplugin
|
|
PUBLIC
|
|
Qt::Core
|
|
PRIVATE
|
|
Qt::DBus
|
|
Qt::Qml
|
|
Qt::Gui
|
|
Qt::Quick
|
|
KF5::ConfigWidgets # for KStandardAction
|
|
KF5::KIOGui
|
|
KF5::Plasma
|
|
KF5::I18n
|
|
KF5::Notifications
|
|
KF5::PlasmaQuick
|
|
KF5::KIOGui
|
|
KF5::KIOWidgets # for PreviewJob
|
|
KF5::WaylandClient
|
|
KF5::Service
|
|
)
|
|
|
|
# we compiled the qml files, just install qmldir
|
|
install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/mobileshell)
|
|
|
|
ecm_generate_qmltypes(org.kde.plasma.private.mobileshell 1.0 DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/mobileshell)
|
|
install(TARGETS mobileshellplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/mobileshell)
|