mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
This is an initial port to feedbackd for the haptics plugin. This implementation is a simple port to have the motor enabled for a certain duration. We will eventually want to use feedbackd events to trigger these instead. Related MR for qtfeedback: https://invent.kde.org/jbbgameich/ktactilefeedback/-/merge_requests/2 https://invent.kde.org/teams/plasma-mobile/issues/-/issues/10
23 lines
672 B
CMake
23 lines
672 B
CMake
# SPDX-FileCopyrightText: 2023 Devin Lin <devin@kde.org>
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
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)
|
|
|
|
ecm_add_qml_module(hapticsplugin URI org.kde.plasma.private.mobileshell.hapticsplugin GENERATE_PLUGIN_SOURCE)
|
|
target_sources(hapticsplugin PRIVATE
|
|
vibrationevent.h
|
|
vibrationmanager.cpp
|
|
${dbusinterface_SRCS}
|
|
)
|
|
|
|
target_link_libraries(hapticsplugin PRIVATE
|
|
Qt::Qml
|
|
Qt::DBus
|
|
KF6::CoreAddons
|
|
KF6::I18n
|
|
QCoro::DBus
|
|
)
|
|
|
|
ecm_finalize_qml_module(hapticsplugin)
|