summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2012-11-12 13:10:37 +0100
committerKai Koehne <kai.koehne@digia.com>2012-11-28 15:42:15 +0100
commitfa63059cbdf989063e5c3a3e12e173caf3512b9d (patch)
treea93041a2c45c752bba02d1ebee8d6e4f98258c95 /scripts
parente73a349a96ca5e050ad498dab86b4277b74ede6e (diff)
downloadqt-creator-fa63059cbdf989063e5c3a3e12e173caf3512b9d.tar.gz
Deployqt: Add qt.conf
Override any QtLibraryInfo settings. Change-Id: Ib931d132975769a2ab90f832b672bc6740138841 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/deployqt.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/deployqt.py b/scripts/deployqt.py
index 7f42eb322a..af90ca3429 100755
--- a/scripts/deployqt.py
+++ b/scripts/deployqt.py
@@ -186,6 +186,13 @@ def copy_qt_libs(install_dir, qt_libs_dir, qt_plugin_dir, qt_import_dir, plugins
shutil.rmtree(target)
shutil.copytree(os.path.join(qt_import_dir, qtimport), target, ignore=copy_ignore_func, symlinks=True)
+def add_qt_conf(install_dir):
+ print "Creating qt.conf:"
+ f = open(install_dir + '/bin/qt.conf', 'w')
+ f.write('[Paths]\n')
+ f.write('Libraries=../lib/qtcreator\n')
+ f.close()
+
def copy_translations(install_dir, qt_tr_dir, tr_catalogs):
langs = []
tr_dir = os.path.join(install_dir, 'share', 'qtcreator', 'translations')
@@ -268,6 +275,7 @@ def main():
if not sys.platform.startswith('win'):
fix_rpaths(chrpath_bin, install_dir)
+ add_qt_conf(install_dir)
if __name__ == "__main__":
if sys.platform == 'darwin':