2014-02-07 03:10:06 +00:00
|
|
|
From 841d1f06f3fd2f59f6b18067b02d5fcfc93aaa7a Mon Sep 17 00:00:00 2001
|
2013-04-03 11:08:50 +00:00
|
|
|
From: Holger Freyther <zecke@selfish.org>
|
|
|
|
Date: Wed, 26 Sep 2012 17:22:30 +0200
|
2013-11-02 18:06:14 +00:00
|
|
|
Subject: [PATCH 02/14] qlibraryinfo: allow to set qt.conf from the outside
|
2013-04-28 12:15:13 +00:00
|
|
|
using the environment
|
2013-04-03 11:08:50 +00:00
|
|
|
|
|
|
|
Allow to set a qt.conf from the outside using the environment. This allows
|
|
|
|
to inject new prefixes and other paths into qmake. This is needed when using
|
|
|
|
the same qmake binary to build qt/x11 and qt/embedded
|
|
|
|
|
|
|
|
Upstream-Status: Pending
|
|
|
|
|
|
|
|
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
|
|
---
|
2013-05-21 19:44:31 +00:00
|
|
|
src/corelib/global/qlibraryinfo.cpp | 5 ++++-
|
|
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
2013-04-03 11:08:50 +00:00
|
|
|
|
|
|
|
diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp
|
2013-11-02 18:06:14 +00:00
|
|
|
index 1c3b09f..c647a16 100644
|
2013-04-03 11:08:50 +00:00
|
|
|
--- a/src/corelib/global/qlibraryinfo.cpp
|
|
|
|
+++ b/src/corelib/global/qlibraryinfo.cpp
|
2013-11-02 18:06:14 +00:00
|
|
|
@@ -149,7 +149,10 @@ QLibrarySettings::QLibrarySettings()
|
2013-04-03 11:08:50 +00:00
|
|
|
|
|
|
|
QSettings *QLibraryInfoPrivate::findConfiguration()
|
|
|
|
{
|
|
|
|
- QString qtconfig = QStringLiteral(":/qt/etc/qt.conf");
|
|
|
|
+ QByteArray config = getenv("QT_CONF_PATH");
|
|
|
|
+ QString qtconfig = QFile::decodeName(config);
|
|
|
|
+ if(!QFile::exists(qtconfig))
|
|
|
|
+ qtconfig = QStringLiteral(":/qt/etc/qt.conf");
|
|
|
|
#ifdef QT_BOOTSTRAPPED
|
|
|
|
if(!QFile::exists(qtconfig))
|
|
|
|
qtconfig = qt_libraryInfoFile();
|
|
|
|
--
|
2014-02-07 03:10:06 +00:00
|
|
|
1.8.5.3
|
2013-04-03 11:08:50 +00:00
|
|
|
|