summaryrefslogtreecommitdiffstats
path: root/package/qt5/qt5base
diff options
context:
space:
mode:
authorBryce Ferguson <bryce.ferguson@rockwellcollins.com>2016-10-10 15:02:37 -0500
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-02-06 16:50:56 +0100
commit0e9b5a96a3a5d20b3c75ef9d64cbc53fd9fb4f87 (patch)
tree3344d99f91d7f9387ea937e1568ff9ba353a7582 /package/qt5/qt5base
parent9bd8278ff27427092117cc22fa306af74c94e6c7 (diff)
downloadbuildroot-0e9b5a96a3a5d20b3c75ef9d64cbc53fd9fb4f87.tar.gz
buildroot-0e9b5a96a3a5d20b3c75ef9d64cbc53fd9fb4f87.zip
qt5base: add Config.in option to pass custom Qt5 options
To reduce the qt5base binary size, we can disable unnecessary features. Instead of trying to map every qt5base option to buildroot, create a single config that we can pass any option too. Then append those to the ones generated by buildroot. Signed-off-by: Brandon Maier <brandon.maier@rockwellcollins.com> Signed-off-by: Bryce Ferguson <bryce.ferguson@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/qt5/qt5base')
-rw-r--r--package/qt5/qt5base/Config.in11
-rw-r--r--package/qt5/qt5base/qt5base.mk2
2 files changed, 13 insertions, 0 deletions
diff --git a/package/qt5/qt5base/Config.in b/package/qt5/qt5base/Config.in
index ad95138380..e273caa773 100644
--- a/package/qt5/qt5base/Config.in
+++ b/package/qt5/qt5base/Config.in
@@ -16,6 +16,17 @@ config BR2_PACKAGE_QT5BASE
if BR2_PACKAGE_QT5BASE
+config BR2_PACKAGE_QT5BASE_CUSTOM_CONF_OPTS
+ string "Custom configuration options"
+ help
+ Define custom qt5 configuration options which can be used to
+ enable or disable options not managed by buildroot. These
+ options are appended to the ones generated by buildroot and
+ passed to qt5base during configuration.
+
+ E.g. to remove the Windows Vista style option, add the option
+ -no-feature-style_windowsvista.
+
config BR2_PACKAGE_QT5BASE_LICENSE_APPROVED
bool "Approve free license"
help
diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
index bbbaf0f456..4cd14c0120 100644
--- a/package/qt5/qt5base/qt5base.mk
+++ b/package/qt5/qt5base/qt5base.mk
@@ -27,6 +27,8 @@ QT5BASE_CONFIGURE_OPTS += \
-no-pch \
-shared
+QT5BASE_CONFIGURE_OPTS += $(call qstrip,$(BR2_PACKAGE_QT5BASE_CUSTOM_CONF_OPTS))
+
# Uses libgbm from mesa3d
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
QT5BASE_CONFIGURE_OPTS += -kms -gbm
OpenPOWER on IntegriCloud