mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 15:32:13 +02:00
qt4: package QML plugins and correct their install directory
QML components from Qt were installed to ${prefix} before and never got
packaged. This is now fixed and QML components are now installed into
${libdir}/${QT_DIR_NAME}/imports and packaged into qt4-*-qml-plugins
package.
Additionally qmlviewer and the examples/demos are now dependent upon
these plugins as needed.
Originally based on OE commit 4adf97be8c5b5f71ad92095a19968af534baa9e2
by Simon Busch <morphis@gravedo.de>
(From OE-Core rev: 49c43e2bea64f70a22a2741ea280bd1c13e5110a)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a7500e27a7
commit
f9e9d8d45c
@@ -3,7 +3,7 @@ SECTION = "libs"
|
||||
LICENSE = "LGPLv2.1 | GPLv3"
|
||||
HOMEPAGE = "http://qt.nokia.com"
|
||||
DEPENDS += "directfb tslib"
|
||||
INC_PR = "r28"
|
||||
INC_PR = "r29"
|
||||
|
||||
QT_BASE_NAME ?= "qt4-embedded"
|
||||
QT_BASE_LIB ?= "libqt-embedded"
|
||||
|
||||
@@ -5,7 +5,7 @@ HOMEPAGE = "http://qt.nokia.com"
|
||||
SECTION = "x11/libs"
|
||||
DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor"
|
||||
|
||||
INC_PR = "r25"
|
||||
INC_PR = "r26"
|
||||
|
||||
QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} "
|
||||
QT_GLFLAGS_qemux86 = "-opengl"
|
||||
|
||||
@@ -98,7 +98,8 @@ OTHER_PACKAGES = "\
|
||||
${QT_BASE_NAME}-pixeltool \
|
||||
${QT_BASE_NAME}-qmlviewer \
|
||||
${QT_BASE_NAME}-xmlpatterns \
|
||||
${QT_BASE_NAME}-qt3to4"
|
||||
${QT_BASE_NAME}-qt3to4 \
|
||||
${QT_BASE_NAME}-qml-plugins"
|
||||
|
||||
PACKAGES += "${LIB_PACKAGES} ${DEV_PACKAGES} ${DBG_PACKAGES} ${OTHER_PACKAGES}"
|
||||
PACKAGES_DYNAMIC = "${QT_BASE_NAME}-plugin-* ${QT_BASE_NAME}-translation-* ${QT_BASE_NAME}-fonts-*"
|
||||
@@ -122,11 +123,15 @@ RRECOMMENDS_${QT_BASE_NAME}-demos += " \
|
||||
${QT_BASE_NAME}-examples \
|
||||
${QT_BASE_NAME}-plugin-sqldriver-sqlite \
|
||||
${QT_BASE_NAME}-plugin-imageformat-jpeg \
|
||||
${QT_BASE_NAME}-qml-plugins \
|
||||
${QT_BASE_NAME}-assistant \
|
||||
${PN}-doc"
|
||||
RRECOMMENDS_${QT_BASE_NAME}-examples += " \
|
||||
${QT_BASE_NAME}-plugin-sqldriver-sqlite \
|
||||
${QT_BASE_NAME}-plugin-imageformat-jpeg"
|
||||
${QT_BASE_NAME}-plugin-imageformat-jpeg \
|
||||
${QT_BASE_NAME}-qml-plugins"
|
||||
RRECOMMENDS_${QT_BASE_NAME}-qmlviewer += " \
|
||||
${QT_BASE_NAME}-qml-plugins"
|
||||
|
||||
FILES_${QT_BASE_NAME}-tools = "${bindir}/qttracereplay ${bindir}/qdoc*"
|
||||
FILES_${QT_BASE_NAME}-tools-dbg = "${bindir}/.debug/qttracereplay ${bindir}/.debug/qdoc*"
|
||||
@@ -160,7 +165,8 @@ FILES_${QT_BASE_NAME}-makeqpf-dbg = "${bindir}/.debug/makeqpf"
|
||||
FILES_${QT_BASE_NAME}-mkspecs = "${datadir}/${QT_DIR_NAME}/mkspecs/*"
|
||||
FILES_${QT_BASE_NAME}-xmlpatterns = "${bindir}/xmlpatterns*"
|
||||
FILES_${QT_BASE_NAME}-xmlpatterns-dbg = "${bindir}/.debug/xmlpatterns*"
|
||||
|
||||
FILES_${QT_BASE_NAME}-qml-plugins = "${libdir}/${QT_DIR_NAME}/imports/* ${libdir}/${QT_DIR_NAME}/plugins/qmltooling/*"
|
||||
FILES_${QT_BASE_NAME}-qml-plugins-dbg = "${libdir}/${QT_DIR_NAME}/imports/*/*/*/.debug/* ${libdir}/${QT_DIR_NAME}/imports/*/.debug"
|
||||
|
||||
do_configure() {
|
||||
unset QMAKESPEC
|
||||
@@ -183,6 +189,7 @@ do_configure() {
|
||||
echo "Libraries=${libdir}" >> $QT_CONF_PATH
|
||||
echo "Binaries=${bindir}" >> $QT_CONF_PATH
|
||||
echo "Plugins=${libdir}/${QT_DIR_NAME}/plugins" >> $QT_CONF_PATH
|
||||
echo "Imports=${libdir}/${QT_DIR_NAME}/imports" >> $QT_CONF_PATH
|
||||
echo "Data=${datadir}/${QT_DIR_NAME}" >> $QT_CONF_PATH
|
||||
echo "Translations=${datadir}/${QT_DIR_NAME}/translations" >> $QT_CONF_PATH
|
||||
echo "Settings=${sysconfdir}/${QT_DIR_NAME}" >> $QT_CONF_PATH
|
||||
@@ -200,6 +207,7 @@ do_configure() {
|
||||
-docdir ${docdir}/${QT_DIR_NAME} \
|
||||
-headerdir ${includedir}/${QT_DIR_NAME} \
|
||||
-plugindir ${libdir}/${QT_DIR_NAME}/plugins \
|
||||
-importdir ${libdir}/${QT_DIR_NAME}/imports \
|
||||
-translationdir ${datadir}/${QT_DIR_NAME}/translations \
|
||||
-examplesdir ${bindir}/${QT_DIR_NAME}/examples \
|
||||
-demosdir ${bindir}/${QT_DIR_NAME}/demos \
|
||||
|
||||
Reference in New Issue
Block a user