Made qpluginbase.pri into a feature profile.
authoraxis <qt-info@nokia.com>
Fri, 27 May 2011 08:10:36 +0000 (10:10 +0200)
committerQt Continuous Integration System <qt-info@nokia.com>
Tue, 31 May 2011 10:51:29 +0000 (12:51 +0200)
This enables other modules to use it without having access to the
QtBase sources.

Change-Id: I0a588b2e14ca88fa068c7c2bcc69ff669444f6c6
Task: QTBUG-19585
Reviewed-on: http://codereview.qt.nokia.com/237
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
58 files changed:
mkspecs/features/qt_plugin.prf [new file with mode: 0644]
src/plugins/accessible/widgets/widgets.pro
src/plugins/bearer/connman/connman.pro
src/plugins/bearer/corewlan/corewlan.pro
src/plugins/bearer/generic/generic.pro
src/plugins/bearer/icd/icd.pro
src/plugins/bearer/nativewifi/nativewifi.pro
src/plugins/bearer/networkmanager/networkmanager.pro
src/plugins/bearer/nla/nla.pro
src/plugins/bearer/symbian/symbian.pri
src/plugins/codecs/cn/cn.pro
src/plugins/codecs/jp/jp.pro
src/plugins/codecs/kr/kr.pro
src/plugins/codecs/tw/tw.pro
src/plugins/decorations/default/default.pro
src/plugins/decorations/styled/styled.pro
src/plugins/decorations/windows/windows.pro
src/plugins/generic/linuxinput/linuxinput.pro
src/plugins/generic/tslib/tslib.pro
src/plugins/gfxdrivers/ahi/ahi.pro
src/plugins/gfxdrivers/directfb/directfb.pro
src/plugins/gfxdrivers/eglnullws/eglnullws.pro
src/plugins/gfxdrivers/linuxfb/linuxfb.pro
src/plugins/gfxdrivers/qvfb/qvfb.pro
src/plugins/gfxdrivers/transformed/transformed.pro
src/plugins/gfxdrivers/vnc/vnc.pro
src/plugins/graphicssystems/meego/meego.pro
src/plugins/graphicssystems/opengl/opengl.pro
src/plugins/graphicssystems/openvg/openvg.pro
src/plugins/graphicssystems/shivavg/shivavg.pro
src/plugins/graphicssystems/trace/trace.pro
src/plugins/imageformats/gif/gif.pro
src/plugins/imageformats/ico/ico.pro
src/plugins/imageformats/jpeg/jpeg.pro
src/plugins/imageformats/mng/mng.pro
src/plugins/imageformats/tiff/tiff.pro
src/plugins/inputmethods/imsw-multi/imsw-multi.pro
src/plugins/kbddrivers/linuxinput/linuxinput.pro
src/plugins/mousedrivers/linuxtp/linuxtp.pro
src/plugins/mousedrivers/pc/pc.pro
src/plugins/mousedrivers/tslib/tslib.pro
src/plugins/platforms/cocoa/cocoa.pro
src/plugins/platforms/directfb/directfb.pro
src/plugins/platforms/externalplugin.pri
src/plugins/platforms/fb_base/fb_base.pro
src/plugins/platforms/linuxfb/linuxfb.pro
src/plugins/platforms/minimal/minimal.pro
src/plugins/platforms/openkode/openkode.pro
src/plugins/platforms/openvglite/openvglite.pro
src/plugins/platforms/qvfb/qvfb.pro
src/plugins/platforms/uikit/uikit.pro
src/plugins/platforms/vnc/vnc.pro
src/plugins/platforms/wayland/wayland.pro
src/plugins/platforms/xcb/xcb.pro
src/plugins/platforms/xlib/xlib.pro
src/plugins/qpluginbase.pri
src/plugins/s60/s60pluginbase.pri
src/plugins/sqldrivers/qsqldriverbase.pri

diff --git a/mkspecs/features/qt_plugin.prf b/mkspecs/features/qt_plugin.prf
new file mode 100644 (file)
index 0000000..c4eaab8
--- /dev/null
@@ -0,0 +1,41 @@
+TEMPLATE = lib
+isEmpty(QT_MAJOR_VERSION) {
+   VERSION=5.0.0
+} else {
+   VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
+}
+CONFIG += qt plugin
+
+win32|mac:!wince*:!win32-msvc:!macx-xcode:CONFIG += debug_and_release
+TARGET = $$qtLibraryTarget($$TARGET)
+contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
+
+load(qt_targets)
+
+wince*:LIBS += $$QMAKE_LIBS_GUI
+
+symbian: {
+    TARGET.EPOCALLOWDLLDATA=1
+    TARGET.CAPABILITY = All -Tcb
+    TARGET = $${TARGET}$${QT_LIBINFIX}
+    load(armcc_warnings)
+
+    # Make partial upgrade SIS file for Qt plugin dll's
+    # Partial upgrade SIS file
+    vendorinfo = \
+        "; Localised Vendor name" \
+        "%{\"Nokia\"}" \
+        " " \
+        "; Unique Vendor name" \
+        ":\"Nokia, Qt\"" \
+        " "
+    isEmpty(QT_LIBINFIX): PARTIAL_UPGRADE_UID = 0x2001E61C
+    else: PARTIAL_UPGRADE_UID = 0xE001E61C
+
+    pu_header = "; Partial upgrade package for testing $${TARGET} changes without reinstalling everything" \
+                "$${LITERAL_HASH}{\"$${TARGET}\"}, ($$PARTIAL_UPGRADE_UID), $${QT_MAJOR_VERSION},$${QT_MINOR_VERSION},$${QT_PATCH_VERSION}, TYPE=PU"
+    partial_upgrade.pkg_prerules = pu_header vendorinfo
+    partial_upgrade.files = $$QMAKE_LIBDIR_QT/$${TARGET}.dll
+    partial_upgrade.path = c:/sys/bin
+    DEPLOYMENT += partial_upgrade
+}
index 8329bce..00d99f9 100644 (file)
@@ -1,5 +1,5 @@
 TARGET  = qtaccessiblewidgets
-include(../../qpluginbase.pri)
+load(qt_plugin)
 include (../qaccessiblebase.pri)
 
 QT += core-private gui-private
index f57a0c9..25243f8 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qconnmanbearer
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT = core network-private dbus
 
index adc1625..0d11b1e 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qcorewlanbearer
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT = core-private network-private
 LIBS += -framework Foundation -framework SystemConfiguration
index 94fefaf..4f86c2a 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qgenericbearer
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT = core-private network-private
 
index 4737045..3f57534 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qicdbearer
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT = core network dbus
 
index ba02f37..ec86cc0 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qnativewifibearer
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT = core-private network-private
 
index a9de156..262f60a 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qnmbearer
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT = core network-private dbus
 
index ecf958f..76da098 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qnlabearer
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT = core network
 
index 5d2ae1a..c4b3c6d 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qsymbianbearer
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT = core network
 
index 51a2f41..fc2e94b 100644 (file)
@@ -1,5 +1,5 @@
 TARGET  = qcncodecs
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 CONFIG += warn_on
 DESTDIR = $$QT.core.plugins/codecs
index e6b7a4b..834ca31 100644 (file)
@@ -1,5 +1,5 @@
 TARGET  = qjpcodecs
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 CONFIG += warn_on
 DESTDIR = $$QT.core.plugins/codecs
index 14c162c..f5aea65 100644 (file)
@@ -1,5 +1,5 @@
 TARGET  = qkrcodecs
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 CONFIG += warn_on
 DESTDIR = $$QT.core.plugins/codecs
index b0d5a2b..f76cba4 100644 (file)
@@ -1,5 +1,5 @@
 TARGET   = qtwcodecs
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 CONFIG  += warn_on
 DESTDIR = $$QT.core.plugins/codecs
index a30899a..c323d10 100644 (file)
@@ -1,5 +1,5 @@
 TARGET  = qdecorationdefault
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 HEADERS        = $$QT_SOURCE_TREE/src/gui/embedded/qdecorationdefault_qws.h
 SOURCES        = main.cpp \
index 151ef88..c5329ae 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qdecorationstyled
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 DESTDIR = $$QT.gui.plugins/decorations
 target.path += $$[QT_INSTALL_PLUGINS]/decorations
index 7f788a3..f27adb9 100644 (file)
@@ -1,5 +1,5 @@
 TARGET  = qdecorationwindows
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 HEADERS        = $$QT_SOURCE_TREE/src/gui/embedded/qdecorationwindows_qws.h
 SOURCES        = main.cpp \
index d4dc4bb..a771ee9 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qlinuxinputplugin
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 DESTDIR = $$QT.gui.plugins/generic
 target.path = $$[QT_INSTALL_PLUGINS]/generic
index 4851521..d9726b6 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qlinuxinputplugin
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 DESTDIR = $$QT.gui.plugins/generic
 target.path = $$[QT_INSTALL_PLUGINS]/generic
index 3abe2a7..fd07842 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qahiscreen
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 DESTDIR = $$QT.gui.plugins/gfxdrivers
 
index 54d11ca..6fb2a0f 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qdirectfbscreen
-include(../../qpluginbase.pri)
+load(qt_plugin)
 include($$QT_SOURCE_TREE/src/gui/embedded/directfb.pri)
 
 DESTDIR = $$QT.gui.plugins/gfxdrivers
index 30cebab..cb65c2b 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qeglnullws
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 CONFIG += warn_on
 QT += opengl
index c1cdc0e..2bbe910 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qscreenlinuxfb
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 DESTDIR = $$QT.gui.plugins/gfxdrivers
 
index e45319d..99376be 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qscreenvfb
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 DEFINES        += QT_QWS_QVFB QT_QWS_MOUSE_QVFB QT_QWS_KBD_QVFB
 
index f6e0770..f97713f 100644 (file)
@@ -1,5 +1,5 @@
 TARGET  = qgfxtransformed
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 DEFINES        += QT_QWS_TRANSFORMED
 
index 48bad8c..95e2ba7 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qgfxvnc
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 DEFINES        += QT_QWS_VNC
 
index c497ba2..5c650ee 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qmeegographicssystem
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT += gui opengl
 
index 30c8827..fd3542e 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qglgraphicssystem
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT += core-private gui-private opengl-private
 
index 6f8b139..6a73779 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qvggraphicssystem
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT += openvg
 
index 6bf9d7a..1d934cd 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qshivavggraphicssystem
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT += openvg
 
index b31beb3..f44bb32 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qtracegraphicssystem
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT += core-private gui-private network
 
index 4b72cae..b8d260e 100644 (file)
@@ -1,5 +1,5 @@
 TARGET  = qgif
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 include(../../../gui/image/qgifhandler.pri)
 SOURCES += $$PWD/main.cpp
index cef92ce..e0109c6 100644 (file)
@@ -1,5 +1,5 @@
 TARGET  = qico
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QTDIR_build:REQUIRES = "!contains(QT_CONFIG, no-ico)"
 
index 1e6c24d..aa48972 100644 (file)
@@ -1,5 +1,5 @@
 TARGET  = qjpeg
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT += core-private
 
index 01dc418..72dc506 100644 (file)
@@ -1,5 +1,5 @@
 TARGET  = qmng
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QTDIR_build:REQUIRES = "!contains(QT_CONFIG, no-mng)"
 
index e4eb21b..012c49e 100644 (file)
@@ -1,5 +1,5 @@
 TARGET  = qtiff
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QTDIR_build:REQUIRES = "!contains(QT_CONFIG, no-tiff)"
 
index 5d0535f..4c7b9b9 100644 (file)
@@ -1,5 +1,5 @@
 TARGET   = qimsw-multi
-include(../../qpluginbase.pri)
+load(qt_plugin)
 CONFIG      += warn_on
 
 DESTDIR = $$QT.gui.plugins/inputmethods
index c0af91c..8eaa786 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qlinuxinputkbddriver
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 DESTDIR = $$QT.gui.plugins/kbddrivers
 target.path = $$[QT_INSTALL_PLUGINS]/kbddrivers
index b8e26b4..e5d274a 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qlinuxtpmousedriver
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 DESTDIR = $$QT.gui.plugins/mousedrivers
 target.path = $$[QT_INSTALL_PLUGINS]/mousedrivers
index d38e3fe..04d7b0f 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qpcmousedriver
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 DESTDIR = $$QT.gui.plugins/mousedrivers
 target.path = $$[QT_INSTALL_PLUGINS]/mousedrivers
index e2fa013..552a2e7 100644 (file)
@@ -1,5 +1,5 @@
 TARGET  = qtslibmousedriver
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 DESTDIR = $$QT.gui.plugins/mousedrivers
 
index 705e604..bfa147f 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qcocoa
-include(../../qpluginbase.pri)
+load(qt_plugin)
 DESTDIR = $$QT.gui.plugins/platforms
 
 OBJECTIVE_SOURCES = main.mm \
index 4a63746..f830177 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qdirectfb
-include(../../qpluginbase.pri)
+load(qt_plugin)
 DESTDIR = $$QT.gui.plugins/platforms
 
 isEmpty(DIRECTFB_LIBS) {
index 54da4d9..9b00acb 100644 (file)
@@ -26,4 +26,4 @@
 QT_SOURCE_TREE = $$fromfile($$(QTDIR)/.qmake.cache,QT_SOURCE_TREE)
 QT_BUILD_TREE = $$fromfile($$(QTDIR)/.qmake.cache,QT_BUILD_TREE)
 
-include($$QT_SOURCE_TREE/src/plugins/qpluginbase.pri)
+load(qt_plugin)
index 4445516..4ebd53b 100644 (file)
@@ -6,7 +6,7 @@
 
 #QT       -= core gui
 TARGET = fb_base
-#include(../../qpluginbase.pri)
+#load(qt_plugin)
 
 DESTDIR = $$QT.gui.plugins/graphicssystems
 
index 4e4fe6f..ce6814e 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qlinuxfbgraphicssystem
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 DESTDIR = $$QT.gui.plugins/platforms
 
index d1088e3..d51b6b2 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qminimal
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT = core-private gui-private
 DESTDIR = $$QT.gui.plugins/platforms
index a6e7d76..ad17a3b 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qopenkodeintegration
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT += opengl
 
index 11e867d..bb7efe9 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qvglitegraphicssystem
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT += openvg
 
index bc17525..5db8533 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qvfbintegration
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 DESTDIR = $$QT.gui.plugins/platforms
 
index 6f5947f..45a48dc 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = quikit
-include(../../qpluginbase.pri)
+load(qt_plugin)
 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
 
 QT += opengl
index a7b8ca5..85bffb0 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qvncgraphicssystem
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT += network
 
index 3f5a69c..857a291 100644 (file)
@@ -1,5 +1,5 @@
 TARGET = qwayland
-include(../../qpluginbase.pri)
+load(qt_plugin)
 
 QT+=gui-private core-private opengl-private
 
index 139f5c9..27d10b6 100644 (file)
@@ -1,6 +1,6 @@
 TARGET = xcb
 
-include(../../qpluginbase.pri)
+load(qt_plugin)
 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
 
 QT += core-private gui-private
index 902d379..2cba551 100644 (file)
@@ -1,6 +1,6 @@
 TARGET = qxlib
 
-include(../../qpluginbase.pri)
+load(qt_plugin)
 DESTDIR = $$QT.gui.plugins/platforms
 
 QT += core-private gui-private opengl-private
index 2dd96bf..b22a527 100644 (file)
@@ -1,41 +1 @@
-TEMPLATE = lib
-isEmpty(QT_MAJOR_VERSION) {
-   VERSION=5.0.0
-} else {
-   VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
-}
-CONFIG += qt plugin
-
-win32|mac:!wince*:!win32-msvc:!macx-xcode:CONFIG += debug_and_release
-TARGET = $$qtLibraryTarget($$TARGET)
-contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
-
-include(../qt_targets.pri)
-
-wince*:LIBS += $$QMAKE_LIBS_GUI
-
-symbian: {
-    TARGET.EPOCALLOWDLLDATA=1
-    TARGET.CAPABILITY = All -Tcb
-    TARGET = $${TARGET}$${QT_LIBINFIX}
-    load(armcc_warnings)
-
-    # Make partial upgrade SIS file for Qt plugin dll's
-    # Partial upgrade SIS file
-    vendorinfo = \
-        "; Localised Vendor name" \
-        "%{\"Nokia\"}" \
-        " " \
-        "; Unique Vendor name" \
-        ":\"Nokia, Qt\"" \
-        " "
-    isEmpty(QT_LIBINFIX): PARTIAL_UPGRADE_UID = 0x2001E61C
-    else: PARTIAL_UPGRADE_UID = 0xE001E61C
-
-    pu_header = "; Partial upgrade package for testing $${TARGET} changes without reinstalling everything" \
-                "$${LITERAL_HASH}{\"$${TARGET}\"}, ($$PARTIAL_UPGRADE_UID), $${QT_MAJOR_VERSION},$${QT_MINOR_VERSION},$${QT_PATCH_VERSION}, TYPE=PU"
-    partial_upgrade.pkg_prerules = pu_header vendorinfo
-    partial_upgrade.files = $$QMAKE_LIBDIR_QT/$${TARGET}.dll
-    partial_upgrade.path = c:/sys/bin
-    DEPLOYMENT += partial_upgrade
-}
+load(qt_plugin)
index 0cde7d2..41d4b27 100644 (file)
@@ -1,6 +1,6 @@
 # Note: These version based 'plugins' are not an actual Qt plugins,
 # they are just regular runtime loaded libraries
-include(../qpluginbase.pri)
+load(qt_plugin)
 
 CONFIG  -= plugin
 
index 7399c65..45638fc 100644 (file)
@@ -1,4 +1,4 @@
-include(../qpluginbase.pri)
+load(qt_plugin)
 QT  = core sql-private
 DESTDIR = $$QT.sql.plugins/sqldrivers