diff options
author | Iikka Eklund <iikka.eklund@theqtcompany.com> | 2014-11-04 14:20:04 +0200 |
---|---|---|
committer | Antti Kokko <antti.kokko@digia.com> | 2014-11-04 14:56:22 +0100 |
commit | 9da45011e4c2b83397cba1805019c0ff82551576 (patch) | |
tree | 3fd729004c88732cd0aea15b24b46d34ba40131e /packaging-tools/mkqt5bld.py | |
parent | ae723060f73869d90f8bee00ed8f2e9ac4deaf1a (diff) |
Update ICU builds in packaging scripts
Some updates how the ICU builds are handled in release builds.
Improve patching of build time ICU paths in Qt5 binary packages.
Change-Id: I74695ef92e95892b2dd88c1dacbc691aa3e324c9
Reviewed-by: Antti Kokko <antti.kokko@digia.com>
Diffstat (limited to 'packaging-tools/mkqt5bld.py')
-rw-r--r-- | packaging-tools/mkqt5bld.py | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/packaging-tools/mkqt5bld.py b/packaging-tools/mkqt5bld.py index 354759571..9bf1b3b6e 100644 --- a/packaging-tools/mkqt5bld.py +++ b/packaging-tools/mkqt5bld.py @@ -48,6 +48,7 @@ import sys import urllib import fileinput import bldinstallercommon +import bld_icu_tools import multiprocessing import patch_qmake_qt_key from optparse import OptionParser, Option @@ -809,40 +810,7 @@ def patch_build(): replace_rpath() # patch icu_install paths from files if bldinstallercommon.is_linux_platform(): - patch_icu_paths(MAKE_INSTALL_ROOT_DIR) - - -############################### -# function -############################### -def patch_icu_paths(search_path): - extension_list = ['*.prl', '*.pri', '*.pc', '*.la'] - pattern = re.compile('icu_install') - file_list = [] - for root, dirnames, filenames in os.walk(search_path): - for extensions in extension_list: - for filename in fnmatch.filter(filenames, extensions): - path = os.path.join(root, filename) - readlines = open(path,'r').read() - if pattern.search(readlines): - file_list.append(path) - - for item in file_list: - print_wrap('Erasing \'icu_install\' paths from file: ' + item) - match = 0 - for line in fileinput.FileInput(item, inplace = 1): - keep_going = True - formatted_line = '' - while keep_going: - formatted_line = re.sub('-[I|L](.*?icu_install)(.*?)[\" $]', '', line) - if formatted_line == line: - keep_going = False - else: - match = match + 1 - line = formatted_line - print formatted_line.rstrip('\n') - if match: - print_wrap('Items erased: ' + str(match)) + bld_icu_tools.patch_icu_paths(MAKE_INSTALL_ROOT_DIR) ############################### |