forked from mer-hybris/qt5-feedback-haptics-droid-vibrator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdroid-vibrator.pro
30 lines (22 loc) · 851 Bytes
/
droid-vibrator.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
TEMPLATE = lib
QT += core feedback
CONFIG += qt plugin hide_symbols
TARGET = $$qtLibraryTarget(qtfeedback_droid-vibrator)
PLUGIN_TYPE = feedback
HEADERS += qfeedback.h
SOURCES += qfeedback.cpp
CONFIG += link_pkgconfig
PKGCONFIG += android-headers libhardware libvibrator
DEFINES += 'DROID_VIBRATOR_SETTINGS=\'\"$$[QT_INSTALL_PLUGINS]/feedback/droid-vibrator.ini\"\''
settings.files = droid-vibrator.ini
settings.path = $$[QT_INSTALL_PLUGINS]/feedback
INSTALLS += settings
target.path = $$[QT_INSTALL_PLUGINS]/feedback
INSTALLS += target
plugindescription.files = droid-vibrator.json
plugindescription.path = $$[QT_INSTALL_PLUGINS]/feedback/
INSTALLS += plugindescription
# also enable profile detection. libprofile-qt5 is a bit broken, work around it here.
QT += dbus
QMAKE_CXXFLAGS += -I/usr/include/profile-qt5
QMAKE_LFLAGS += -lprofile-qt5