* [PATCH] qt4: use extra variable for more QT_CONFIG_FLAGS fragments
@ 2012-10-12 10:48 Martin Jansa
2012-10-18 20:20 ` Saul Wold
0 siblings, 1 reply; 2+ messages in thread
From: Martin Jansa @ 2012-10-12 10:48 UTC (permalink / raw)
To: openembedded-core
* qt4-embedded was forcing -DQT_KEYPAD_NAVIGATION which depends on feature-completer
* separate variable makes it easier to not enable QT_KEYPAD_NAVIGATION in some upper layer where we have disabled feature-completer
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta/recipes-qt/qt4/qt4-embedded.inc | 10 ++++++++--
meta/recipes-qt/qt4/qt4-x11-free.inc | 6 ++++--
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-qt/qt4/qt4-embedded.inc b/meta/recipes-qt/qt4/qt4-embedded.inc
index 4a146f7..afca7f8 100644
--- a/meta/recipes-qt/qt4/qt4-embedded.inc
+++ b/meta/recipes-qt/qt4/qt4-embedded.inc
@@ -10,14 +10,20 @@ QT_BASE_LIB ?= "libqt-embedded"
# Set necessary variables in the profile
SRC_URI += "file://qte.sh"
-QT_CONFIG_FLAGS += " \
+QT_EMBEDDED_FLAGS ?= " \
-embedded $QT_ARCH \
-qtlibinfix ${QT_LIBINFIX} \
+"
+QT_EMBEDDED_EXTRA_FLAGS ?= " \
-plugin-gfx-transformed -plugin-gfx-qvfb -plugin-gfx-vnc -plugin-gfx-directfb \
-plugin-mouse-tslib -qt-mouse-pc -qt-mouse-qvfb -qt-mouse-linuxinput \
-qt-kbd-tty \
+"
+QT_EMBEDDED_KEYPAD_FLAGS ?= " \
-DQT_KEYPAD_NAVIGATION \
- "
+"
+
+QT_CONFIG_FLAGS += "${QT_EMBEDDED_FLAGS} ${QT_EMBEDDED_EXTRA_FLAGS} ${QT_EMBEDDED_KEYPAD_FLAGS}"
require qt4.inc
diff --git a/meta/recipes-qt/qt4/qt4-x11-free.inc b/meta/recipes-qt/qt4/qt4-x11-free.inc
index 404d8b8..20ad30c 100644
--- a/meta/recipes-qt/qt4/qt4-x11-free.inc
+++ b/meta/recipes-qt/qt4/qt4-x11-free.inc
@@ -12,11 +12,13 @@ INC_PR = "r47"
QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} "
QT_GLFLAGS_qemux86 = "-opengl"
QT_GLFLAGS_qemuppc = "-opengl"
-QT_CONFIG_FLAGS += "-no-xinerama -no-xkb"
+QT_X11_FLAGS ?= "-no-xinerama -no-xkb"
+QT_CONFIG_FLAGS += "${QT_X11_FLAGS}"
QT_BASE_LIB ?= "libqt"
# required by kdelibs4
-QT_DISTRO_FLAGS = "-accessibility -sm"
+QT_KDE_FLAGS ?= "-accessibility -sm"
+QT_DISTRO_FLAGS ?= "${QT_KDE_FLAGS}"
inherit qt4x11
--
1.7.12
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] qt4: use extra variable for more QT_CONFIG_FLAGS fragments
2012-10-12 10:48 [PATCH] qt4: use extra variable for more QT_CONFIG_FLAGS fragments Martin Jansa
@ 2012-10-18 20:20 ` Saul Wold
0 siblings, 0 replies; 2+ messages in thread
From: Saul Wold @ 2012-10-18 20:20 UTC (permalink / raw)
To: Martin Jansa; +Cc: openembedded-core
On 10/12/2012 03:48 AM, Martin Jansa wrote:
> * qt4-embedded was forcing -DQT_KEYPAD_NAVIGATION which depends on feature-completer
> * separate variable makes it easier to not enable QT_KEYPAD_NAVIGATION in some upper layer where we have disabled feature-completer
>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
> meta/recipes-qt/qt4/qt4-embedded.inc | 10 ++++++++--
> meta/recipes-qt/qt4/qt4-x11-free.inc | 6 ++++--
> 2 files changed, 12 insertions(+), 4 deletions(-)
>
> diff --git a/meta/recipes-qt/qt4/qt4-embedded.inc b/meta/recipes-qt/qt4/qt4-embedded.inc
> index 4a146f7..afca7f8 100644
> --- a/meta/recipes-qt/qt4/qt4-embedded.inc
> +++ b/meta/recipes-qt/qt4/qt4-embedded.inc
> @@ -10,14 +10,20 @@ QT_BASE_LIB ?= "libqt-embedded"
> # Set necessary variables in the profile
> SRC_URI += "file://qte.sh"
>
> -QT_CONFIG_FLAGS += " \
> +QT_EMBEDDED_FLAGS ?= " \
> -embedded $QT_ARCH \
> -qtlibinfix ${QT_LIBINFIX} \
> +"
> +QT_EMBEDDED_EXTRA_FLAGS ?= " \
> -plugin-gfx-transformed -plugin-gfx-qvfb -plugin-gfx-vnc -plugin-gfx-directfb \
> -plugin-mouse-tslib -qt-mouse-pc -qt-mouse-qvfb -qt-mouse-linuxinput \
> -qt-kbd-tty \
> +"
> +QT_EMBEDDED_KEYPAD_FLAGS ?= " \
> -DQT_KEYPAD_NAVIGATION \
> - "
> +"
> +
> +QT_CONFIG_FLAGS += "${QT_EMBEDDED_FLAGS} ${QT_EMBEDDED_EXTRA_FLAGS} ${QT_EMBEDDED_KEYPAD_FLAGS}"
>
> require qt4.inc
>
> diff --git a/meta/recipes-qt/qt4/qt4-x11-free.inc b/meta/recipes-qt/qt4/qt4-x11-free.inc
> index 404d8b8..20ad30c 100644
> --- a/meta/recipes-qt/qt4/qt4-x11-free.inc
> +++ b/meta/recipes-qt/qt4/qt4-x11-free.inc
> @@ -12,11 +12,13 @@ INC_PR = "r47"
> QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} "
> QT_GLFLAGS_qemux86 = "-opengl"
> QT_GLFLAGS_qemuppc = "-opengl"
> -QT_CONFIG_FLAGS += "-no-xinerama -no-xkb"
> +QT_X11_FLAGS ?= "-no-xinerama -no-xkb"
> +QT_CONFIG_FLAGS += "${QT_X11_FLAGS}"
> QT_BASE_LIB ?= "libqt"
>
> # required by kdelibs4
> -QT_DISTRO_FLAGS = "-accessibility -sm"
> +QT_KDE_FLAGS ?= "-accessibility -sm"
> +QT_DISTRO_FLAGS ?= "${QT_KDE_FLAGS}"
>
> inherit qt4x11
>
>
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-18 20:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12 10:48 [PATCH] qt4: use extra variable for more QT_CONFIG_FLAGS fragments Martin Jansa
2012-10-18 20:20 ` Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox