Skip to contentSkip to conversation

qt-mobility: improved recipe

PATCH In review [email protected] 4 participants 10 messages Mar 19, 2013 – Mar 20, 2013

lore
Share & tools
lore
#0 lore raw

v3 cover qt-mobility: improved recipe

From: "Felipe F. Tonello" <[email protected]>

Removed bluez and pulseaudio forced dependency.
Also extended functionality by enabling the user to choose which qt mobility module to build. By default, all modules supported will be build.

Felipe F. Tonello (3):
qt-mobility: Add bluez dependency if DISTRO_FEATURES has bluetooth
qt-mobility: Add pulseaudio dependency if DISTRO_FEATURES has
pulseaudio
qt-mobility: added list of modules to be compiled

 meta/recipes-qt/qt4/qt-mobility_1.2.0.inc |   13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v3 1/3 qt-mobility: Add bluez dependency if DISTRO_FEATURES has bluetooth

From: "Felipe F. Tonello" <[email protected]>

Some modules doesn't requires bluez4 to compile. So it's unnecessary to have it as dependency.

---
 meta/recipes-qt/qt4/qt-mobility_1.2.0.inc |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta/recipes-qt/qt4/qt-mobility_1.2.0.inc +5 -2
index 7778630..e5e671e 100644
@@ -1,5 +1,6 @@
 HOMEPAGE = "http://qt.nokia.com"
-DEPENDS += "pulseaudio bluez4"
+DEPENDS += "pulseaudio"
+DEPENDS += "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluez4', '', d)}"
 
 LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \
@@ -30,6 +31,8 @@ qtm_plugins	:= "/usr/lib/${qtm_dir}/plugins/QtMobility"
 qtm_data	:= "/usr/share/${qtm_dir}"
 qtm_imports	:= "/usr/lib/${qtm_dir}/imports"
 
+qtm_bluezflag ?= "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'yes', 'no', d)}"
+
 do_configure_prepend() {
 	cp qtmobility.pro qtmobility.pro.old
 	sed -e '[email protected]_INSTALL_DATA.@${qtm_data}@' <qtmobility.pro.old >qtmobility.pro
@@ -49,7 +52,7 @@ do_configure_prepend() {
 	echo QT_MOBILITY_EXAMPLES = ${qtm_examples} >>./config.pri
 	echo QT_MOBILITY_DEMOS = ${qtm_demos} >>./config.pri
 	echo QT_CONFIG ${qtm_glflags} >>./config.pri
-	echo bluez_enabled = yes >>./config.pri
+	echo bluez_enabled = ${qtm_bluezflag} >>./config.pri
 	echo ${qtm_extra_config} >>./config.pri
 	echo CONFIG += ${qtm_embedded} >>./config.pri
 }
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH v3 2/3 qt-mobility: Add pulseaudio dependency if DISTRO_FEATURES has pulseaudio

In reply to [email protected]

From: "Felipe F. Tonello" <[email protected]>

---
 meta/recipes-qt/qt4/qt-mobility_1.2.0.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-qt/qt4/qt-mobility_1.2.0.inc +1 -1
index e5e671e..fca4cb0 100644
@@ -1,5 +1,5 @@
 HOMEPAGE = "http://qt.nokia.com"
-DEPENDS += "pulseaudio"
+DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}"
 DEPENDS += "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluez4', '', d)}"
 
 LICENSE = "LGPLv2.1"
Signature · 1 line
1.7.9.5
#3 lore raw

Re: [PATCH v3 2/3] qt-mobility: Add pulseaudio dependency if DISTRO_FEATURES has pulseaudio

Quoted 12 lines · On Tue, Mar 19, 2013 at 6:54 PM, <[email protected]> wrote:

From: "Felipe F. Tonello" <[email protected]>

---
 meta/recipes-qt/qt4/qt-mobility_1.2.0.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-qt/qt4/qt-mobility_1.2.0.inc +0 -0
index e5e671e..fca4cb0 100644

meta/recipes-qt/qt4/qt-mobility_1.2.0.inc line 3

Quoted 4 lines
meta/recipes-qt/qt4/qt-mobility_1.2.0.inc +1 -1
@@ -1,5 +1,5 @@
 HOMEPAGE = "http://qt.nokia.com"
-DEPENDS += "pulseaudio"
+DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}"
 DEPENDS += "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluez4', '', d)}"

Is it possible to explicitly enable/disable pulseaudio support?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#4 lore raw

Re: [PATCH v3 2/3] qt-mobility: Add pulseaudio dependency if DISTRO_FEATURES has pulseaudio

Quoted 1 line · Otavio Salvador

Is it possible to explicitly enable/disable pulseaudio support?

Isn't PA one of those "all or nothing" options? If your system is using PA then you want support for it everywhere, if it's not then you don't want it present at all.

Ross

#5 lore raw

Re: [PATCH v3 2/3] qt-mobility: Add pulseaudio dependency if DISTRO_FEATURES has pulseaudio

Quoted 6 lines · Ross
Quoted 1 line · Otavio Salvador

Is it possible to explicitly enable/disable pulseaudio support?

Isn't PA one of those "all or nothing" options? If your system is using PA then you want support for it everywhere, if it's not then you don't want it present at all.

Yes but if we don't explicitly disable/enable it we risk to do a host contamination (for example building for same host arch)

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#6 lore raw

Re: [PATCH v3 2/3] qt-mobility: Add pulseaudio dependency if DISTRO_FEATURES has pulseaudio

Quoted 2 lines · Otavio Salvador

Yes but if we don't explicitly disable/enable it we risk to do a host contamination (for example building for same host arch)

Oh, right, your context wasn't clear.

Yes, totally agreed, and this is exactly why PACKAGECONFIG is so great.

Ross

#7 lore raw

PATCH v3 3/3 qt-mobility: added list of modules to be compiled

In reply to [email protected]

From: "Felipe F. Tonello" <[email protected]>

This is useful for users that want to .bbappend this recipe to select specific modules to be compiled.

---
 meta/recipes-qt/qt4/qt-mobility_1.2.0.inc |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-qt/qt4/qt-mobility_1.2.0.inc +4 -2
index fca4cb0..b0ab613 100644
@@ -18,7 +18,7 @@ SRC_URI = "http://get.qt.nokia.com/qt/add-ons/qt-mobility-opensource-src-${PV}.t
 SRC_URI[md5sum]="ea5db5a8d3dd4709c2926dceda646bd8"
 SRC_URI[sha256sum]="ee3c88975e04139ac9589f76d4be646d44fcbc4c8c1cf2db621abc154cf0ba44"
 
-PR = "r7"
+PR = "r8"
 
 S = "${WORKDIR}/qt-mobility-opensource-src-${PV}"
 
@@ -31,6 +31,8 @@ qtm_plugins	:= "/usr/lib/${qtm_dir}/plugins/QtMobility"
 qtm_data	:= "/usr/share/${qtm_dir}"
 qtm_imports	:= "/usr/lib/${qtm_dir}/imports"
 
+qtm_modules_list ?= "bearer contacts gallery location publishsubscribe messaging multimedia \
+systeminfo serviceframework sensors versit organizer feedback connectivity"
 qtm_bluezflag ?= "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'yes', 'no', d)}"
 
 do_configure_prepend() {
@@ -44,7 +46,7 @@ do_configure_prepend() {
 	cp staticconfig.pri staticconfig.pri.old
 	echo "include(${STAGING_DATADIR}/${qtm_dir}/mkspecs/qconfig.pri)" >staticconfig.pri
 	cat staticconfig.pri.old >>staticconfig.pri
-	./configure -qmake-exec qmake2 -prefix /usr -examples -demos
+	./configure -qmake-exec qmake2 -prefix /usr -examples -demos -modules "${qtm_modules_list}"
 	echo QT_MOBILITY_BIN = ${qtm_bin} >>./config.pri
 	echo QT_MOBILITY_LIB = ${qtm_lib} >>./config.pri
 	echo QT_MOBILITY_INCLUDE = ${qtm_include} >>./config.pri
Signature · 1 line
1.7.9.5
#8 lore raw

Re: [PATCH v3 3/3] qt-mobility: added list of modules to be compiled

Hi Felipe,

Quoted 30 lines · On Tuesday 19 March 2013 14:54:13 [email protected] wrote:

From: "Felipe F. Tonello" <[email protected]>

This is useful for users that want to .bbappend this recipe to select specific modules to be compiled.

---
 meta/recipes-qt/qt4/qt-mobility_1.2.0.inc |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/meta/recipes-qt/qt4/qt-mobility_1.2.0.inc index fca4cb0..b0ab613 100644

meta/recipes-qt/qt4/qt-mobility_1.2.0.inc +0 -0
@@ -18,7 +18,7 @@ SRC_URI =

"http://get.qt.nokia.com/qt/add-ons/qt-mobility-opensource-src-${PV}.t SRC_URI[md5sum]="ea5db5a8d3dd4709c2926dceda646bd8"
SRC_URI[sha256sum]="ee3c88975e04139ac9589f76d4be646d44fcbc4c8c1cf2db621abc1
54cf0ba44"

meta/recipes-qt/qt4/qt-mobility_1.2.0.inc +2 -1
-PR = "r7"
+PR = "r8"
 
 S = "${WORKDIR}/qt-mobility-opensource-src-${PV}"
@@ -31,6 +31,8 @@ qtm_plugins	:= "/usr/lib/${qtm_dir}/plugins/QtMobility"
 qtm_data	:= "/usr/share/${qtm_dir}"
 qtm_imports	:= "/usr/lib/${qtm_dir}/imports"
 
+qtm_modules_list ?= "bearer contacts gallery location publishsubscribe
Quoted 3 lines

messaging multimedia \ +systeminfo serviceframework sensors versit organizer feedback connectivity" qtm_bluezflag ?= "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'yes', 'no', d)}"

Typically variable names like this should be upper case; I know we've got some lower case ones in here already but let's not introduce any more that we'll have difficulty changing later.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#9 lore raw

Re: [PATCH v3 3/3] qt-mobility: added list of modules to be compiled

Hi Paul,

Quoted 32 lines · Paul Eggleton

Hi Felipe,

Quoted 29 lines · On Tuesday 19 March 2013 14:54:13 [email protected] wrote:

From: "Felipe F. Tonello" <[email protected]>

This is useful for users that want to .bbappend this recipe to select specific modules to be compiled.

---
  meta/recipes-qt/qt4/qt-mobility_1.2.0.inc |    6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/meta/recipes-qt/qt4/qt-mobility_1.2.0.inc index fca4cb0..b0ab613 100644

meta/recipes-qt/qt4/qt-mobility_1.2.0.inc +0 -0
@@ -18,7 +18,7 @@ SRC_URI =

"http://get.qt.nokia.com/qt/add-ons/qt-mobility-opensource-src-${PV}.t SRC_URI[md5sum]="ea5db5a8d3dd4709c2926dceda646bd8"
SRC_URI[sha256sum]="ee3c88975e04139ac9589f76d4be646d44fcbc4c8c1cf2db621abc1
54cf0ba44"

meta/recipes-qt/qt4/qt-mobility_1.2.0.inc +1 -1
-PR = "r7"
+PR = "r8"
 
  S = "${WORKDIR}/qt-mobility-opensource-src-${PV}"
@@ -31,6 +31,8 @@ qtm_plugins	:= "/usr/lib/${qtm_dir}/plugins/QtMobility"
  qtm_data	:= "/usr/share/${qtm_dir}"
  qtm_imports	:= "/usr/lib/${qtm_dir}/imports"
 
Quoted 8 lines
Quoted 4 lines
meta/recipes-qt/qt4/qt-mobility_1.2.0.inc +1 -0
+qtm_modules_list ?= "bearer contacts gallery location publishsubscribe

messaging multimedia \ +systeminfo serviceframework sensors versit organizer feedback connectivity" qtm_bluezflag ?= "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'yes', 'no', d)}"

Typically variable names like this should be upper case; I know we've got some lower case ones in here already but let's not introduce any more that we'll have difficulty changing later.

Alright. I just sent a v4.

Felipe