Commit fa63059c authored by Kai Koehne's avatar Kai Koehne
Browse files

Deployqt: Add qt.conf



Override any QtLibraryInfo settings.

Change-Id: Ib931d132975769a2ab90f832b672bc6740138841
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent e73a349a
...@@ -186,6 +186,13 @@ def copy_qt_libs(install_dir, qt_libs_dir, qt_plugin_dir, qt_import_dir, plugins ...@@ -186,6 +186,13 @@ def copy_qt_libs(install_dir, qt_libs_dir, qt_plugin_dir, qt_import_dir, plugins
shutil.rmtree(target) shutil.rmtree(target)
shutil.copytree(os.path.join(qt_import_dir, qtimport), target, ignore=copy_ignore_func, symlinks=True) 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): def copy_translations(install_dir, qt_tr_dir, tr_catalogs):
langs = [] langs = []
tr_dir = os.path.join(install_dir, 'share', 'qtcreator', 'translations') tr_dir = os.path.join(install_dir, 'share', 'qtcreator', 'translations')
...@@ -268,6 +275,7 @@ def main(): ...@@ -268,6 +275,7 @@ def main():
if not sys.platform.startswith('win'): if not sys.platform.startswith('win'):
fix_rpaths(chrpath_bin, install_dir) fix_rpaths(chrpath_bin, install_dir)
add_qt_conf(install_dir)
if __name__ == "__main__": if __name__ == "__main__":
if sys.platform == 'darwin': if sys.platform == 'darwin':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment