-
Notifications
You must be signed in to change notification settings - Fork 7
/
koboplatformplugin.pro
91 lines (69 loc) · 2.49 KB
/
koboplatformplugin.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
TARGET = kobo
QTDIR = /mnt/onboard/.adds/qt-linux-5.15-kde-kobo
CROSS_TC = arm-kobo-linux-gnueabihf
TEMPLATE = lib
CONFIG += plugin
DEFINES += QT_NO_FOREACH
QMAKE_CXXFLAGS += -Wno-missing-field-initializers
QMAKE_RPATHDIR += ../../lib
QT += widgets \
core-private gui-private \
service_support-private eventdispatcher_support-private input_support-private \
fb_support-private fontdatabase_support-private
INCLUDEPATH += $$PWD/src
# FBINK
DEFINES += FBINK_FOR_KOBO
FBInkBuildEvent.input = $$PWD/FBink/*.c $$PWD/FBink/*.h
PHONY_DEPS = .
FBInkBuildEvent.input = PHONY_DEPS
FBInkBuildEvent.output = FBInk
FBInkBuildEvent.clean_commands = make -C $$PWD/FBInk distclean
FBInkBuildEvent.name = building FBInk
FBInkBuildEvent.CONFIG += no_link target_predeps
QMAKE_EXTRA_COMPILERS += FBInkBuildEvent
INCLUDEPATH += $$PWD/FBInk $$PWD/FBInk/libi2c-staged/include $$PWD/FBInk/libevdev-staged/include/libevdev-1.0
LIBS += -L$$PWD/FBInk/libi2c-staged/lib/ -l:libi2c.a
CONFIG(debug, debug|release) {
FBInkBuildEvent.commands = CROSS_TC=$$CROSS_TC MINIMAL=1 DRAW=1 DEBUG=1 KOBO=true make -C $$PWD/FBInk pic
LIBS += -L$$PWD/FBInk/Debug -l:libfbink.a
}
CONFIG(release, debug|release) {
FBInkBuildEvent.commands = CROSS_TC=$$CROSS_TC MINIMAL=1 DRAW=1 KOBO=true make -C $$PWD/FBInk pic
LIBS += -L$$PWD/FBInk/Release -l:libfbink.a
}
SOURCES = src/main.cpp \
src/dither.cpp \
src/kobobuttonintegration.cpp \
src/kobodevicedescriptor.cpp \
src/kobofbscreen.cpp \
src/koboplatformadditions.cpp \
src/koboplatformintegration.cpp \
src/kobowifimanager.cpp \
src/qevdevtouchdata.cpp \
src/qevdevtouchdata2.cpp \
src/qevdevtouchhandlerthread.cpp \
src/qevdevtouchmanager.cpp \
src/qevdevtouchhandler.cpp
HEADERS = \
src/dither.h \
src/einkenums.h \
src/kobobuttonintegration.h \
src/kobodevicedescriptor.h \
src/kobofbscreen.h \
src/koboplatformadditions.h \
src/koboplatformfunctions.h \
src/koboplatformintegration.h \
src/kobowifimanager.h \
src/qevdevtouchdata.h \
src/qevdevtouchdata2.h \
src/qevdevtouchfilter_p.h \
src/qevdevtouchhandler.h \
src/qevdevtouchhandlerthread.h \
src/qevdevtouchmanager_p.h
OTHER_FILES += \
target.path =$$QTDIR/plugins/platforms
INSTALLS += target
DISTFILES += \
koboplatformplugin.json
RESOURCES += \
Resources.qrc