* [ptxdist] [PATCH] qt5: allow deselection of qml styles
@ 2019-04-02 16:06 Baeuerle, Florian
0 siblings, 0 replies; only message in thread
From: Baeuerle, Florian @ 2019-04-02 16:06 UTC (permalink / raw)
To: ptxdist
Non-default QuickControls2 QML Styles are optional, so give the option
to (de)select them, allowing to save a few megabytes of space:
374.0K Fusion
2.0M Imagine
466.5K Material
381.5K Universal
Signed-off-by: Florian Bäuerle <florian.baeuerle@allegion.com>
---
rules/qt5.in | 20 ++++++++++++++++++++
rules/qt5.make | 8 ++++++++
2 files changed, 28 insertions(+)
diff --git a/rules/qt5.in b/rules/qt5.in
index 3fa6f69b3..f114756a6 100644
--- a/rules/qt5.in
+++ b/rules/qt5.in
@@ -523,6 +523,26 @@ config QT5_MODULE_QTQUICKCONTROLS2
select QT5_MODULE_QTGRAPHICALEFFECTS
prompt "QtQuickControls2"
+if QT5_MODULE_QTQUICKCONTROLS2
+
+config QT5_MODULE_QTQUICKCONTROLS2_STYLE_FUSION
+ bool
+ prompt "Fusion Style"
+
+config QT5_MODULE_QTQUICKCONTROLS2_STYLE_IMAGINE
+ bool
+ prompt "Imagine Style"
+
+config QT5_MODULE_QTQUICKCONTROLS2_STYLE_MATERIAL
+ bool
+ prompt "Material Style"
+
+config QT5_MODULE_QTQUICKCONTROLS2_STYLE_UNIVERSAL
+ bool
+ prompt "Universal Style"
+
+endif
+
config QT5_MODULE_QTREMOTEOBJECTS
bool
prompt "QtRemoteObjects"
diff --git a/rules/qt5.make b/rules/qt5.make
index 02c040afa..ee230bba5 100644
--- a/rules/qt5.make
+++ b/rules/qt5.make
@@ -232,6 +232,14 @@ QT5_CONF_OPT := \
--$(call ptx/endis, PTXCONF_QT5_MODULE_QTBASE_SQL_SQLITE)-sql-sqlite \
$(call ptx/qt5-system, PTXCONF_QT5_MODULE_QTBASE_SQL_SQLITE)-sqlite
+ifdef PTXCONF_QT5_MODULE_QTQUICKCONTROLS2
+QT5_CONF_OPT += \
+ --$(call ptx/endis, PTXCONF_QT5_MODULE_QTQUICKCONTROLS2_STYLE_FUSION)-style-fusion \
+ --$(call ptx/endis, PTXCONF_QT5_MODULE_QTQUICKCONTROLS2_STYLE_IMAGINE)-style-imagine \
+ --$(call ptx/endis, PTXCONF_QT5_MODULE_QTQUICKCONTROLS2_STYLE_MATERIAL)-style-material \
+ --$(call ptx/endis, PTXCONF_QT5_MODULE_QTQUICKCONTROLS2_STYLE_UNIVERSAL)-style-universal
+endif
+
ifdef PTXCONF_QT5_MODULE_QTMULTIMEDIA
QT5_CONF_OPT += \
--disable-pulseaudio \
--
2.21.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-02 16:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-02 16:06 [ptxdist] [PATCH] qt5: allow deselection of qml styles Baeuerle, Florian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox