mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Baeuerle, Florian" <Florian.Baeuerle@allegion.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist] [PATCH] qt5: allow deselection of qml styles
Date: Tue, 2 Apr 2019 16:06:26 +0000	[thread overview]
Message-ID: <20190402160608.2181-1-florian.baeuerle@allegion.com> (raw)

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

                 reply	other threads:[~2019-04-02 16:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190402160608.2181-1-florian.baeuerle@allegion.com \
    --to=florian.baeuerle@allegion.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox