2023-11-15 07:13:05 +00:00
|
|
|
# SPDX-FileCopyrightText: 2023 Devin Lin <devin@kde.org>
|
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
2025-05-22 15:45:44 +00:00
|
|
|
set_source_files_properties(dbus/org.sigxcpu.Feedback.Haptic.xml PROPERTIES INCLUDE vibrationevent.h)
|
|
|
|
|
qt_add_dbus_interfaces(dbusinterface_SRCS
|
|
|
|
|
dbus/org.sigxcpu.Feedback.Haptic.xml)
|
2023-11-15 07:13:05 +00:00
|
|
|
|
|
|
|
|
ecm_add_qml_module(hapticsplugin URI org.kde.plasma.private.mobileshell.hapticsplugin GENERATE_PLUGIN_SOURCE)
|
|
|
|
|
target_sources(hapticsplugin PRIVATE
|
2025-05-22 15:45:44 +00:00
|
|
|
vibrationevent.h
|
2023-11-15 07:13:05 +00:00
|
|
|
vibrationmanager.cpp
|
2025-05-22 15:45:44 +00:00
|
|
|
${dbusinterface_SRCS}
|
2023-11-15 07:13:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(hapticsplugin PRIVATE
|
|
|
|
|
Qt::Qml
|
|
|
|
|
Qt::DBus
|
|
|
|
|
KF6::CoreAddons
|
|
|
|
|
KF6::I18n
|
2025-05-22 15:45:44 +00:00
|
|
|
QCoro::DBus
|
2023-11-15 07:13:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
ecm_finalize_qml_module(hapticsplugin)
|