Made qpluginbase.pri into a feature profile.
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>
This commit is contained in:
parent
0b2ce85200
commit
a8814fcb69
41
mkspecs/features/qt_plugin.prf
Normal file
41
mkspecs/features/qt_plugin.prf
Normal file
@ -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
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
TARGET = qtaccessiblewidgets
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
include (../qaccessiblebase.pri)
|
||||
|
||||
QT += core-private gui-private
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qconnmanbearer
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT = core network-private dbus
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qcorewlanbearer
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT = core-private network-private
|
||||
LIBS += -framework Foundation -framework SystemConfiguration
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qgenericbearer
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT = core-private network-private
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qicdbearer
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT = core network dbus
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qnativewifibearer
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT = core-private network-private
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qnmbearer
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT = core network-private dbus
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qnlabearer
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT = core network
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qsymbianbearer
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT = core network
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qcncodecs
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
CONFIG += warn_on
|
||||
DESTDIR = $$QT.core.plugins/codecs
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qjpcodecs
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
CONFIG += warn_on
|
||||
DESTDIR = $$QT.core.plugins/codecs
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qkrcodecs
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
CONFIG += warn_on
|
||||
DESTDIR = $$QT.core.plugins/codecs
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qtwcodecs
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
CONFIG += warn_on
|
||||
DESTDIR = $$QT.core.plugins/codecs
|
||||
|
@ -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 \
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qdecorationstyled
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
DESTDIR = $$QT.gui.plugins/decorations
|
||||
target.path += $$[QT_INSTALL_PLUGINS]/decorations
|
||||
|
@ -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 \
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qlinuxinputplugin
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
DESTDIR = $$QT.gui.plugins/generic
|
||||
target.path = $$[QT_INSTALL_PLUGINS]/generic
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qlinuxinputplugin
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
DESTDIR = $$QT.gui.plugins/generic
|
||||
target.path = $$[QT_INSTALL_PLUGINS]/generic
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qahiscreen
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
DESTDIR = $$QT.gui.plugins/gfxdrivers
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qeglnullws
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
CONFIG += warn_on
|
||||
QT += opengl
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qscreenlinuxfb
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
DESTDIR = $$QT.gui.plugins/gfxdrivers
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qscreenvfb
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
DEFINES += QT_QWS_QVFB QT_QWS_MOUSE_QVFB QT_QWS_KBD_QVFB
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qgfxtransformed
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
DEFINES += QT_QWS_TRANSFORMED
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qgfxvnc
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
DEFINES += QT_QWS_VNC
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qmeegographicssystem
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT += gui opengl
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qglgraphicssystem
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT += core-private gui-private opengl-private
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qvggraphicssystem
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT += openvg
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qshivavggraphicssystem
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT += openvg
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qtracegraphicssystem
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT += core-private gui-private network
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qgif
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
include(../../../gui/image/qgifhandler.pri)
|
||||
SOURCES += $$PWD/main.cpp
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qico
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QTDIR_build:REQUIRES = "!contains(QT_CONFIG, no-ico)"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qjpeg
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT += core-private
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qmng
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QTDIR_build:REQUIRES = "!contains(QT_CONFIG, no-mng)"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qtiff
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QTDIR_build:REQUIRES = "!contains(QT_CONFIG, no-tiff)"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qimsw-multi
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
CONFIG += warn_on
|
||||
|
||||
DESTDIR = $$QT.gui.plugins/inputmethods
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qlinuxinputkbddriver
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
DESTDIR = $$QT.gui.plugins/kbddrivers
|
||||
target.path = $$[QT_INSTALL_PLUGINS]/kbddrivers
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qlinuxtpmousedriver
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
DESTDIR = $$QT.gui.plugins/mousedrivers
|
||||
target.path = $$[QT_INSTALL_PLUGINS]/mousedrivers
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qpcmousedriver
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
DESTDIR = $$QT.gui.plugins/mousedrivers
|
||||
target.path = $$[QT_INSTALL_PLUGINS]/mousedrivers
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qtslibmousedriver
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
DESTDIR = $$QT.gui.plugins/mousedrivers
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qcocoa
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
DESTDIR = $$QT.gui.plugins/platforms
|
||||
|
||||
OBJECTIVE_SOURCES = main.mm \
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qdirectfb
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
DESTDIR = $$QT.gui.plugins/platforms
|
||||
|
||||
isEmpty(DIRECTFB_LIBS) {
|
||||
|
@ -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)
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#QT -= core gui
|
||||
TARGET = fb_base
|
||||
#include(../../qpluginbase.pri)
|
||||
#load(qt_plugin)
|
||||
|
||||
DESTDIR = $$QT.gui.plugins/graphicssystems
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qlinuxfbgraphicssystem
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
DESTDIR = $$QT.gui.plugins/platforms
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qminimal
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT = core-private gui-private
|
||||
DESTDIR = $$QT.gui.plugins/platforms
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qopenkodeintegration
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT += opengl
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qvglitegraphicssystem
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT += openvg
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qvfbintegration
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
DESTDIR = $$QT.gui.plugins/platforms
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = quikit
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
|
||||
|
||||
QT += opengl
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qvncgraphicssystem
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT += network
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TARGET = qwayland
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
|
||||
QT+=gui-private core-private opengl-private
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
TARGET = qxlib
|
||||
|
||||
include(../../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
DESTDIR = $$QT.gui.plugins/platforms
|
||||
|
||||
QT += core-private gui-private opengl-private
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
include(../qpluginbase.pri)
|
||||
load(qt_plugin)
|
||||
QT = core sql-private
|
||||
DESTDIR = $$QT.sql.plugins/sqldrivers
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user