Skip to content

Commit d3fb790

Browse files
committed
build, qt: Do not require xml module for native builds in depends
This change makes Qt tools always bootstrapped.
1 parent 06d573f commit d3fb790

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

depends/packages/qt.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ $(package)_patches+= fix_android_qmake_conf.patch fix_android_jni_static.patch d
1111
$(package)_patches+= drop_lrelease_dependency.patch no_sdk_version_check.patch
1212
$(package)_patches+= fix_lib_paths.patch fix_android_pch.patch
1313
$(package)_patches+= fix_bigsur_drawing.patch qtbase-moc-ignore-gcc-macro.patch
14+
$(package)_patches += force_bootstrap.patch
1415

1516
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
1617
$(package)_qttranslations_sha256_hash=e1de58ed108b7e0a138815ea60fd46a2c4e1fc31396a707e5630e92de79c53de
@@ -64,6 +65,7 @@ $(package)_config_opts += -no-system-proxies
6465
$(package)_config_opts += -no-use-gold-linker
6566
$(package)_config_opts += -nomake examples
6667
$(package)_config_opts += -nomake tests
68+
$(package)_config_opts += -nomake tools
6769
$(package)_config_opts += -opensource
6870
$(package)_config_opts += -pkg-config
6971
$(package)_config_opts += -prefix $(host_prefix)
@@ -231,6 +233,7 @@ define $(package)_preprocess_cmds
231233
patch -p1 -i $($(package)_patch_dir)/fix_lib_paths.patch && \
232234
patch -p1 -i $($(package)_patch_dir)/fix_bigsur_drawing.patch && \
233235
patch -p1 -i $($(package)_patch_dir)/qtbase-moc-ignore-gcc-macro.patch && \
236+
patch -p1 -i $($(package)_patch_dir)/force_bootstrap.patch && \
234237
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
235238
mkdir -p qtbase/mkspecs/macx-clang-linux &&\
236239
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Qt lrelease tool depends on XML features.
2+
No need to build the libQt5Xml module if tools are
3+
bootstrapped, even if not cross-compiling.
4+
5+
We should be able to drop this once we are using Qt 5.15:
6+
- QTBUG-76177
7+
- upstream commit: 9e6943370585bdc791caae6c83555b3aa5efe063
8+
9+
--- old/qtbase/mkspecs/features/qt_build_config.prf
10+
+++ new/qtbase/mkspecs/features/qt_build_config.prf
11+
@@ -82,8 +82,7 @@
12+
!prefix_build: \
13+
CONFIG += qt_clear_installs
14+
15+
-cross_compile: \
16+
- CONFIG += force_bootstrap
17+
+CONFIG += force_bootstrap
18+
19+
android|uikit|winrt: \
20+
CONFIG += builtin_testdata

0 commit comments

Comments
 (0)