diff options
author | Kwangsub Kim <kwangsub.kim@qt.io> | 2018-02-20 21:04:33 +0900 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2018-02-26 16:51:55 +0000 |
commit | 6f9d4fdf99ea5c1ac1b0c9c9b637961b2c032195 (patch) | |
tree | 1b8394704c36e6461c834d942c419b378422edff | |
parent | 1ad923abbff0d749a137aad19a1e6795dbe7e32a (diff) | |
download | meta-qt5-6f9d4fdf99ea5c1ac1b0c9c9b637961b2c032195.tar.gz |
qtbase: add a config option to optimize for size
The '-optimize-size' option would enable the compiler to optimize
for size instead of speed. If the global compiler option already
included '-Os', this option would be enabled by default.
It would affect the whole Qt libraries and Qt applications as well.
This feature is available in Qt 5.9+.
Signed-off-by: Kwangsub Kim <kwangsub.kim@qt.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | recipes-qt/qt5/qtbase_git.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index 522e2615..4df7a767 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb | |||
@@ -70,7 +70,9 @@ PACKAGECONFIG_DISTRO ?= "" | |||
70 | PACKAGECONFIG_RELEASE ?= "release" | 70 | PACKAGECONFIG_RELEASE ?= "release" |
71 | # This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency | 71 | # This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency |
72 | # PACKAGECONFIG_OPENSSL ?= "openssl" | 72 | # PACKAGECONFIG_OPENSSL ?= "openssl" |
73 | PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs freetype tests" | 73 | PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs freetype tests \ |
74 | ${@bb.utils.contains('SELECTED_OPTIMIZATION', '-Os', 'optimize-size', '', d)} \ | ||
75 | " | ||
74 | 76 | ||
75 | PACKAGECONFIG ?= " \ | 77 | PACKAGECONFIG ?= " \ |
76 | ${PACKAGECONFIG_RELEASE} \ | 78 | ${PACKAGECONFIG_RELEASE} \ |
@@ -88,6 +90,7 @@ PACKAGECONFIG[release] = "-release,-debug" | |||
88 | PACKAGECONFIG[debug] = "" | 90 | PACKAGECONFIG[debug] = "" |
89 | PACKAGECONFIG[developer] = "-developer-build" | 91 | PACKAGECONFIG[developer] = "-developer-build" |
90 | PACKAGECONFIG[qml-debug] = "-qml-debug,-no-qml-debug" | 92 | PACKAGECONFIG[qml-debug] = "-qml-debug,-no-qml-debug" |
93 | PACKAGECONFIG[optimize-size] = "-optimize-size" | ||
91 | PACKAGECONFIG[sm] = "-sm,-no-sm" | 94 | PACKAGECONFIG[sm] = "-sm,-no-sm" |
92 | PACKAGECONFIG[tests] = "-make tests,-nomake tests" | 95 | PACKAGECONFIG[tests] = "-make tests,-nomake tests" |
93 | PACKAGECONFIG[examples] = "-make examples -compile-examples,-nomake examples" | 96 | PACKAGECONFIG[examples] = "-make examples -compile-examples,-nomake examples" |