diff options
author | Kevin Krammer <kevin.krammer.qnx@kdab.com> | 2012-04-11 13:25:28 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-26 15:21:46 +0200 |
commit | 8c59e22538b54c9170376bf22e2e6be054b38454 (patch) | |
tree | 2c3bea3ea20d1bbe2ebbd2f84b3dd268c1d7bc7f /src/plugins/platforms/qnx/qnx.pro | |
parent | 99a620d2e2d5225f2b5e29d52617a8a5328081fd (diff) |
Create interface for navigator calls and implement for BPS and PPS
Makes QQnxServices available on non-BPS systems by delegating to an interface
which is implemented on systems with BPS using the currenly used navigator API
and on systems without BPS by sending an appropriate message to the navigator's
PPS service interface.
Change-Id: I0e32fb11e6debb7b7b4693c0bc02af4f75ee2162
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qnx.pro')
-rw-r--r-- | src/plugins/platforms/qnx/qnx.pro | 80 |
1 files changed, 45 insertions, 35 deletions
diff --git a/src/plugins/platforms/qnx/qnx.pro b/src/plugins/platforms/qnx/qnx.pro index 940c4639db..9c7819a503 100644 --- a/src/plugins/platforms/qnx/qnx.pro +++ b/src/plugins/platforms/qnx/qnx.pro @@ -11,6 +11,13 @@ contains(QT_CONFIG, opengles2) { # Uncomment this to build with support for IMF once it becomes available in the BBNDK #CONFIG += qqnx_imf +# Uncomment this to build with support for PPS based platform integration +#CONFIG += qqnx_pps + +CONFIG(blackberry) { + CONFIG += qqnx_pps +} + # Uncomment these to enable debugging output for various aspects of the plugin #DEFINES += QQNXBUFFER_DEBUG #DEFINES += QQNXCLIPBOARD_DEBUG @@ -28,6 +35,7 @@ contains(QT_CONFIG, opengles2) { #DEFINES += QQNXSCREENEVENT_DEBUG #DEFINES += QQNXVIRTUALKEYBOARD_DEBUG #DEFINES += QQNXWINDOW_DEBUG +#DEFINES += QQNXNAVIGATOR_DEBUG SOURCES = main.cpp \ qqnxbuffer.cpp \ @@ -38,20 +46,11 @@ SOURCES = main.cpp \ qqnxrasterbackingstore.cpp \ qqnxrootwindow.cpp \ qqnxscreeneventhandler.cpp \ - qqnxnativeinterface.cpp - -CONFIG(blackberry) { - SOURCES += qqnxnavigatoreventhandler.cpp \ - qqnxnavigatoreventnotifier.cpp \ - qqnxvirtualkeyboard.cpp \ - qqnxclipboard.cpp \ - qqnxabstractvirtualkeyboard.cpp -} - -contains(QT_CONFIG, opengles2) { - SOURCES += qqnxglcontext.cpp \ - qqnxglbackingstore.cpp -} + qqnxnativeinterface.cpp \ + qqnxnavigatoreventhandler.cpp \ + qqnxabstractnavigator.cpp \ + qqnxabstractvirtualkeyboard.cpp \ + qqnxservices.cpp HEADERS = main.h \ qqnxbuffer.h \ @@ -63,25 +62,46 @@ HEADERS = main.h \ qqnxrasterbackingstore.h \ qqnxrootwindow.h \ qqnxscreeneventhandler.h \ - qqnxnativeinterface.h + qqnxnativeinterface.h \ + qqnxnavigatoreventhandler.h \ + qqnxabstractnavigator.h \ + qqnxabstractvirtualkeyboard.h \ + qqnxservices.h -CONFIG(blackberry) { - HEADERS += qqnxnavigatoreventhandler.h \ - qqnxnavigatoreventnotifier.h \ - qqnxvirtualkeyboard.h \ - qqnxclipboard.h \ - qqnxabstractvirtualkeyboard.h -} +LIBS += -lscreen contains(QT_CONFIG, opengles2) { + SOURCES += qqnxglcontext.cpp \ + qqnxglbackingstore.cpp + HEADERS += qqnxglcontext.h \ qqnxglbackingstore.h -} + LIBS += -lEGL +} CONFIG(blackberry) { - SOURCES += qqnxservices.cpp - HEADERS += qqnxservices.h + SOURCES += qqnxnavigatorbps.cpp + + HEADERS += qqnxnavigatorbps.h + + LIBS += -lbps +} + +CONFIG(qqnx_pps) { + DEFINES += QQNX_PPS + + SOURCES += qqnxnavigatorpps.cpp \ + qqnxnavigatoreventnotifier.cpp \ + qqnxvirtualkeyboard.cpp \ + qqnxclipboard.cpp + + HEADERS += qqnxnavigatorpps.h \ + qqnxnavigatoreventnotifier.h \ + qqnxvirtualkeyboard.h \ + qqnxclipboard.h + + LIBS += -lpps -lclipboard CONFIG(qqnx_imf) { DEFINES += QQNX_IMF @@ -97,16 +117,6 @@ OTHER_FILES += qnx.json QMAKE_CXXFLAGS += -I./private -LIBS += -lscreen - -contains(QT_CONFIG, opengles2) { - LIBS += -lEGL -} - -CONFIG(blackberry) { - LIBS += -lbps -lpps -lclipboard -} - include (../../../platformsupport/eglconvenience/eglconvenience.pri) include (../../../platformsupport/fontdatabases/fontdatabases.pri) |