summaryrefslogtreecommitdiffstats
path: root/meta/recipes-qt
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-10-28 22:46:20 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-12 17:00:03 +0000
commite92c43001024b6207e1fd897caab9aa2fce517f9 (patch)
tree6d6d78b40be08a0c1f255901ade2e4e66d0990a6 /meta/recipes-qt
parent8e556d30ae28349f9a8d6a53506f53b08894a739 (diff)
downloadpoky-e92c43001024b6207e1fd897caab9aa2fce517f9.tar.gz
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) (From OE-Core rev: 0e71811a1c3285a71cbca682cb62c1563d3e74ee) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-qt')
-rw-r--r--meta/recipes-qt/qt4/nativesdk-qt4-tools.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-qt/qt4/nativesdk-qt4-tools.inc b/meta/recipes-qt/qt4/nativesdk-qt4-tools.inc
index a9ec61e08f..2c806e0043 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() {
118 for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do \ 118 for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do \
119 ln -s ${i}4 ${i}; \ 119 ln -s ${i}4 ${i}; \
120 done) 120 done)
121
122 install -d ${D}${sysconfdir}
123 cat >${D}${sysconfdir}/qt.conf <<EOF
124[Paths]
125Prefix = ${prefix}
126EOF
121} 127}