aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/utils.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-12-15 10:04:28 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-12-15 18:16:19 +0100
commitfa7695ec63dd61a03fb491f80c3cf5dcb9f0dd76 (patch)
tree73573f40b36b395b61ae833514c2a6bb1920266e /build_scripts/utils.py
parenteff6361beec0f3251134a77350d24cf8ee25a2d7 (diff)
Build system: Remove regeneration of the example resources
With the growing nummber of examples, this started to slow down the build process and produced warnings about the linguist example. It has been replaced by the tools/regenerate_example_resources.py script. Pick-to: 6.2 Change-Id: Ia00ad35d8b3c0ecea62a497e1665b5b7ceb25e7b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'build_scripts/utils.py')
-rw-r--r--build_scripts/utils.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/build_scripts/utils.py b/build_scripts/utils.py
index 309a63ea5..3aca642ce 100644
--- a/build_scripts/utils.py
+++ b/build_scripts/utils.py
@@ -488,21 +488,6 @@ def get_environment_from_batch_command(env_cmd, initial=None):
return result
-def regenerate_qt_resources(src, pyside_rcc_path, pyside_rcc_options):
- names = os.listdir(src)
- for name in names:
- srcname = os.path.join(src, name)
- if os.path.isdir(srcname):
- regenerate_qt_resources(srcname, pyside_rcc_path, pyside_rcc_options)
- elif srcname.endswith('.qrc'):
- # Replace last occurence of '.qrc' in srcname
- srcname_split = srcname.rsplit('.qrc', 1)
- dstname = '_rc.py'.join(srcname_split)
- if os.path.exists(dstname):
- log.info(f"Regenerating {dstname} from {os.path.basename(srcname)}")
- run_process([pyside_rcc_path] + pyside_rcc_options + [srcname, '-o', dstname])
-
-
def back_tick(cmd, ret_err=False):
"""
Run command `cmd`, return stdout, or stdout, stderr,