Skip to content

Commit 0ec3df1

Browse files
committed
binary size reducing flags
1 parent b61bc79 commit 0ec3df1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

build-qt.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ SCRIPT_DIR=$(dirname "$0")
3737
INSTALL_DIR="${WORK_DIR}/qt"
3838

3939
#FIXME bad warning in qtdeclarative-everywhere-src-6.8.3/src/quickwidgets/qquickwidget.cpp
40+
# TODO: no-pie linux-only
4041

41-
common_options_cmake='-DQT_GENERATE_SBOM=OFF -DFEATURE_accessibility=OFF'
42+
common_options_cmake='
43+
-DFEATURE_accessibility=OFF
44+
-DQT_GENERATE_SBOM=OFF
45+
'
4246
options_qtbase="
4347
-opensource
4448
-confirm-license
@@ -48,6 +52,8 @@ options_qtbase="
4852
-static
4953
--c++std=17
5054
-disable-deprecated-up-to 0x060800
55+
-reduce-exports
56+
-gc-binaries
5157
-qpa xcb
5258
-nomake tests
5359
-nomake examples
@@ -95,7 +101,6 @@ options_qtbase="
95101
-DFEATURE_formlayout=OFF
96102
-DFEATURE_fscompleter=OFF
97103
-DFEATURE_future=OFF
98-
-DFEATURE_gc_binaries=OFF
99104
-DFEATURE_gestures=OFF
100105
-DFEATURE_graphicsview=OFF
101106
-DFEATURE_groupbox=OFF
@@ -196,7 +201,7 @@ options_qtbase="
196201
-DFEATURE_whatsthis=OFF
197202
-DFEATURE_widgettextcontrol=ON
198203
-DFEATURE_wizard=OFF
199-
-DFEATURE_xcb=1
204+
-DFEATURE_xcb=ON
200205
-DFEATURE_xcb_glx_plugin=ON
201206
-DFEATURE_xml=OFF
202207
-DFEATURE_xmlstream=ON

0 commit comments

Comments
 (0)