Make the QNX QPA plugin work with non blackberry.
[profile/ivi/qtbase.git] / src / plugins / platforms / qnx / qnx.pro
1 TARGET = qnx
2 include(../../qpluginbase.pri)
3
4 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
5 QT += opengl opengl-private platformsupport platformsupport-private widgets-private
6
7 # Uncomment this to build with support for IMF once it becomes available in the BBNDK
8 #CONFIG += qqnx_imf
9
10 # Uncomment these to enable debugging output for various aspects of the plugin
11 #DEFINES += QQNXBUFFER_DEBUG
12 #DEFINES += QQNXCLIPBOARD_DEBUG
13 #DEFINES += QQNXEVENTTHREAD_DEBUG
14 #DEFINES += QQNXGLBACKINGSTORE_DEBUG
15 #DEFINES += QQNXGLCONTEXT_DEBUG
16 #DEFINES += QQNXINPUTCONTEXT_DEBUG
17 #DEFINES += QQNXINPUTCONTEXT_IMF_EVENT_DEBUG
18 #DEFINES += QQNXINTEGRATION_DEBUG
19 #DEFINES += QQNXNAVIGATOREVENTHANDLER_DEBUG
20 #DEFINES += QQNXNAVIGATOREVENTNOTIFIER_DEBUG
21 #DEFINES += QQNXRASTERBACKINGSTORE_DEBUG
22 #DEFINES += QQNXROOTWINDOW_DEBUG
23 #DEFINES += QQNXSCREEN_DEBUG
24 #DEFINES += QQNXSCREENEVENT_DEBUG
25 #DEFINES += QQNXVIRTUALKEYBOARD_DEBUG
26 #DEFINES += QQNXWINDOW_DEBUG
27
28 SOURCES =   main.cpp \
29             qqnxbuffer.cpp \
30             qqnxeventthread.cpp \
31             qqnxglcontext.cpp \
32             qqnxglbackingstore.cpp \
33             qqnxintegration.cpp \
34             qqnxscreen.cpp \
35             qqnxwindow.cpp \
36             qqnxrasterbackingstore.cpp \
37             qqnxrootwindow.cpp \
38             qqnxscreeneventhandler.cpp \
39             qqnxnativeinterface.cpp
40
41 CONFIG(blackberry) {
42     SOURCES += qqnxnavigatoreventhandler.cpp \
43                qqnxnavigatoreventnotifier.cpp \
44                qqnxvirtualkeyboard.cpp \
45                qqnxclipboard.cpp \
46                qqnxabstractvirtualkeyboard.cpp
47 }
48
49 HEADERS =   main.h \
50             qqnxbuffer.h \
51             qqnxeventthread.h \
52             qqnxkeytranslator.h \
53             qqnxintegration.h \
54             qqnxglcontext.h \
55             qqnxglbackingstore.h \
56             qqnxscreen.h \
57             qqnxwindow.h \
58             qqnxrasterbackingstore.h \
59             qqnxrootwindow.h \
60             qqnxscreeneventhandler.h \
61             qqnxnativeinterface.h
62
63 CONFIG(blackberry) {
64     HEADERS += qqnxnavigatoreventhandler.h \
65                qqnxnavigatoreventnotifier.h \
66                qqnxvirtualkeyboard.h \
67                qqnxclipboard.h \
68                qqnxabstractvirtualkeyboard.h
69 }
70
71
72 CONFIG(blackberry) {
73     SOURCES += qqnxservices.cpp
74     HEADERS += qqnxservices.h
75
76     CONFIG(qqnx_imf) {
77         DEFINES += QQNX_IMF
78         HEADERS += qqnxinputcontext_imf.h
79         SOURCES += qqnxinputcontext_imf.cpp
80     } else {
81         HEADERS += qqnxinputcontext_noimf.h
82         SOURCES += qqnxinputcontext_noimf.cpp
83     }
84 }
85
86 OTHER_FILES += qnx.json
87
88 QMAKE_CXXFLAGS += -I./private
89
90 LIBS += -lscreen -lEGL
91
92 CONFIG(blackberry) {
93     LIBS += -lbps -lpps -lclipboard
94 }
95
96 include (../../../platformsupport/eglconvenience/eglconvenience.pri)
97 include (../../../platformsupport/fontdatabases/fontdatabases.pri)
98
99 target.path += $$[QT_INSTALL_PLUGINS]/platforms
100 INSTALLS += target