diff options
author | Kai Koehne <kai.koehne@digia.com> | 2012-11-12 13:10:37 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@digia.com> | 2012-11-28 15:42:15 +0100 |
commit | fa63059cbdf989063e5c3a3e12e173caf3512b9d (patch) | |
tree | a93041a2c45c752bba02d1ebee8d6e4f98258c95 /scripts | |
parent | e73a349a96ca5e050ad498dab86b4277b74ede6e (diff) | |
download | qt-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-x | scripts/deployqt.py | 8 |
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': |