Make maemo scope syntax in project files more generic
authorLaszlo Papp <lpapp@kde.org>
Fri, 14 Sep 2012 14:21:34 +0000 (15:21 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 14 Sep 2012 17:07:15 +0000 (19:07 +0200)
It is necessary to use the n9 device file for now in scratchbox or/and on the
community open build service because the maemo platform mkspecs file assumes
that a cross-toolchain is used all the time. If no platform file is used, then
for instance certain plugins may not be built in general. There is currently an
ongoing issue with the meego plugin for context management in the Harmattan
components project. That is currently not built due to this issue, so no
orientation works in those applications.

The nice solution would be to make the maemo platform file work with cross and
native toolchains as well, but that requires a decent amount of investigation
and work. Thereby, the scope is extended this way for now.

Change-Id: I172c7d152bdbb2db279526d9fd1ca5648d0cd0a9
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
configure
src/plugins/generic/generic.pro
src/plugins/platforms/xcb/xcb.pro
src/tools/uic/uic.pro

index b7f46dd..a556b86 100755 (executable)
--- a/configure
+++ b/configure
@@ -2455,7 +2455,7 @@ fi
 [ -z "$XPLATFORM" ] && XPLATFORM="$PLATFORM"
 
 case `basename "$XPLATFORM"` in win32-g++*) XPLATFORM_MINGW=yes;; esac
-case "$XPLATFORM" in linux-g++-maemo) XPLATFORM_MAEMO=yes;; esac
+case "$XPLATFORM" in *-maemo*) XPLATFORM_MAEMO=yes;; esac
 case "$XPLATFORM" in *qnx-*|*blackberry-*) XPLATFORM_QNX=yes;; esac
 
 if [ -d "$PLATFORM" ]; then
index f2e3bd3..078db2f 100644 (file)
@@ -1,6 +1,6 @@
 TEMPLATE = subdirs
 
-linux-g++-maemo: SUBDIRS += meego
+*-maemo*: SUBDIRS += meego
 
 contains(QT_CONFIG, evdev) {
     SUBDIRS += evdevmouse evdevtouch evdevkeyboard evdevtablet
index 76cdbf4..df37e59 100644 (file)
@@ -47,7 +47,7 @@ contains(QT_CONFIG, xcb-xlib) {
     DEFINES += XCB_USE_XLIB
     LIBS += -lX11 -lX11-xcb
 
-    linux-g++-maemo {
+    *-maemo* {
         contains(QT_CONFIG, xinput2) {
             # XInput2 support for Harmattan.
             DEFINES += XCB_USE_XINPUT2_MAEMO
index c4b7ca2..d481168 100644 (file)
@@ -13,7 +13,7 @@ HEADERS += uic.h
 SOURCES += main.cpp \
            uic.cpp
 
-linux-g++-maemo {
+*-maemo* {
     # UIC will crash when running inside QEMU if built with -O2
     QMAKE_CFLAGS_RELEASE -= -O2
     QMAKE_CXXFLAGS_RELEASE -= -O2