[oe-commits] Laurentiu Palcu : nativesdk-qt4-tools: create qt.conf file
git at git.openembedded.org
git at git.openembedded.org
Wed Dec 11 14:18:46 UTC 2013
Module: openembedded-core.git
Branch: dylan
Commit: 78710c0d0a9442b7d177f705aada528acd27043d
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=78710c0d0a9442b7d177f705aada528acd27043d
Author: Laurentiu Palcu <laurentiu.palcu at intel.com>
Date: Mon Oct 28 22:46:20 2013 +0200
nativesdk-qt4-tools: create qt.conf file
When installing the SDK to another location than the default one, qmake
will look for libraries, headers, etc. in the default location. That's
because the paths are hard-coded in the binary itself. Luckily, QT
allows to override this using a qt.conf file installed in the same
directory with the application executable. However, we already have a
patch that allows for the installation of qt.conf in another place and
read the location from QT_CONF_PATH environment variable.
Hence, install qt.conf in ${sysconfdir}. This will allow other apps, that
use QLibraryInfo class, to find it.
[YOCTO #5339]
(From OE-Core master rev: 23f88695683a8e428375a8ccb6be935347a8768c)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-qt/qt4/nativesdk-qt4-tools.inc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-qt/qt4/nativesdk-qt4-tools.inc b/meta/recipes-qt/qt4/nativesdk-qt4-tools.inc
index cfc6fd8..b44e805 100644
--- a/meta/recipes-qt/qt4/nativesdk-qt4-tools.inc
+++ b/meta/recipes-qt/qt4/nativesdk-qt4-tools.inc
@@ -118,4 +118,10 @@ do_install() {
for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do \
ln -s ${i}4 ${i}; \
done)
+
+ install -d ${D}${sysconfdir}
+ cat >${D}${sysconfdir}/qt.conf <<EOF
+[Paths]
+Prefix = ${prefix}
+EOF
}
More information about the Openembedded-commits
mailing list