shift-shell/components/hapticsplugin/CMakeLists.txt
Devin Lin 72284989f8 hapticsplugin: Port to feedbackd
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
2025-05-22 11:45:44 -04:00

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)