* [PATCH 0/3] qt4: add support for lconvert and xmlpatterns tools
@ 2013-06-07 5:15 Jonathan Liu
2013-06-07 5:15 ` [PATCH 1/3] qt4-native: build lconvert and xmlpatterns Jonathan Liu
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jonathan Liu @ 2013-06-07 5:15 UTC (permalink / raw)
To: openembedded-core
This patchset adds support for lconvert and xmlpatterns tools for Qt
projects that require them (e.g. Qt Creator).
Jonathan Liu (3):
qt4-native: build lconvert and xmlpatterns
classes/qmake2: export OE_QMAKE_LCONVERT and OE_QMAKE_XMLPATTERNS
classes/qmake_base: update .pro hack
meta/classes/qmake2.bbclass | 2 ++
meta/classes/qmake_base.bbclass | 15 +++++++++++++--
meta/recipes-qt/qt4/qt4-native.inc | 4 +++-
3 files changed, 18 insertions(+), 3 deletions(-)
--
1.8.2.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] qt4-native: build lconvert and xmlpatterns
2013-06-07 5:15 [PATCH 0/3] qt4: add support for lconvert and xmlpatterns tools Jonathan Liu
@ 2013-06-07 5:15 ` Jonathan Liu
2013-06-07 5:15 ` [PATCH 2/3] classes/qmake2: export OE_QMAKE_LCONVERT and OE_QMAKE_XMLPATTERNS Jonathan Liu
2013-06-07 5:15 ` [PATCH 3/3] classes/qmake_base: update .pro hack Jonathan Liu
2 siblings, 0 replies; 4+ messages in thread
From: Jonathan Liu @ 2013-06-07 5:15 UTC (permalink / raw)
To: openembedded-core
These tools are needed by some Qt projects (e.g. Qt Creator).
Signed-off-by: Jonathan Liu <net147@gmail.com>
---
meta/recipes-qt/qt4/qt4-native.inc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-qt/qt4/qt4-native.inc b/meta/recipes-qt/qt4/qt4-native.inc
index cd6092a..895d690 100644
--- a/meta/recipes-qt/qt4/qt4-native.inc
+++ b/meta/recipes-qt/qt4/qt4-native.inc
@@ -75,10 +75,12 @@ TOBUILD = "\
src/testlib \
src/qt3support \
src/tools/uic3 \
+ tools/linguist/lconvert \
tools/linguist/lrelease \
tools/linguist/lupdate \
tools/qdbus/qdbuscpp2xml \
tools/qdbus/qdbusxml2cpp \
+ tools/xmlpatterns \
"
do_compile() {
@@ -90,7 +92,7 @@ do_compile() {
do_install() {
install -d ${D}${bindir}/
install -m 0755 bin/qmake ${D}${bindir}/qmake2
- for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do
+ for i in moc uic uic3 rcc lconvert lrelease lupdate qdbuscpp2xml qdbusxml2cpp xmlpatterns; do
install -m 0755 bin/${i} ${D}${bindir}/${i}4
done
--
1.8.2.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] classes/qmake2: export OE_QMAKE_LCONVERT and OE_QMAKE_XMLPATTERNS
2013-06-07 5:15 [PATCH 0/3] qt4: add support for lconvert and xmlpatterns tools Jonathan Liu
2013-06-07 5:15 ` [PATCH 1/3] qt4-native: build lconvert and xmlpatterns Jonathan Liu
@ 2013-06-07 5:15 ` Jonathan Liu
2013-06-07 5:15 ` [PATCH 3/3] classes/qmake_base: update .pro hack Jonathan Liu
2 siblings, 0 replies; 4+ messages in thread
From: Jonathan Liu @ 2013-06-07 5:15 UTC (permalink / raw)
To: openembedded-core
These will be used by qmake_base.bbclass.
Signed-off-by: Jonathan Liu <net147@gmail.com>
---
meta/classes/qmake2.bbclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/classes/qmake2.bbclass b/meta/classes/qmake2.bbclass
index 8b9861c..6e73ad2 100644
--- a/meta/classes/qmake2.bbclass
+++ b/meta/classes/qmake2.bbclass
@@ -21,5 +21,7 @@ export OE_QMAKE_LIBDIR_QT = "${STAGING_LIBDIR}"
export OE_QMAKE_LIBS_QT = "qt"
export OE_QMAKE_LIBS_X11 = "-lXext -lX11 -lm"
export OE_QMAKE_LIBS_X11SM = "-lSM -lICE"
+export OE_QMAKE_LCONVERT = "${STAGING_BINDIR_NATIVE}/lconvert4"
export OE_QMAKE_LRELEASE = "${STAGING_BINDIR_NATIVE}/lrelease4"
export OE_QMAKE_LUPDATE = "${STAGING_BINDIR_NATIVE}/lupdate4"
+export OE_QMAKE_XMLPATTERNS = "${STAGING_BINDIR_NATIVE}/xmlpatterns4"
--
1.8.2.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] classes/qmake_base: update .pro hack
2013-06-07 5:15 [PATCH 0/3] qt4: add support for lconvert and xmlpatterns tools Jonathan Liu
2013-06-07 5:15 ` [PATCH 1/3] qt4-native: build lconvert and xmlpatterns Jonathan Liu
2013-06-07 5:15 ` [PATCH 2/3] classes/qmake2: export OE_QMAKE_LCONVERT and OE_QMAKE_XMLPATTERNS Jonathan Liu
@ 2013-06-07 5:15 ` Jonathan Liu
2 siblings, 0 replies; 4+ messages in thread
From: Jonathan Liu @ 2013-06-07 5:15 UTC (permalink / raw)
To: openembedded-core
This adds support for lconvert and xmlpatterns tools and tweaks the
sed expressions to handle more complex assignments in .pro files like:
LRELEASE = $$targetPath($$[QT_INSTALL_BINS]/lrelease)
Signed-off-by: Jonathan Liu <net147@gmail.com>
---
meta/classes/qmake_base.bbclass | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/meta/classes/qmake_base.bbclass b/meta/classes/qmake_base.bbclass
index 3762887..86bbede 100644
--- a/meta/classes/qmake_base.bbclass
+++ b/meta/classes/qmake_base.bbclass
@@ -94,9 +94,20 @@ qmake_base_do_configure() {
fi
# Hack .pro files to use OE utilities
+ LCONVERT_NAME=$(basename ${OE_QMAKE_LCONVERT})
+ LRELEASE_NAME=$(basename ${OE_QMAKE_LRELEASE})
+ LUPDATE_NAME=$(basename ${OE_QMAKE_LUPDATE})
+ XMLPATTERNS_NAME=$(basename ${OE_QMAKE_XMLPATTERNS})
find -name '*.pro' \
- -exec sed -i -e 's,=\s*.*/lrelease,= ${OE_QMAKE_LRELEASE},g' \
- -e 's,=\s*.*/lupdate,= ${OE_QMAKE_LUPDATE},g' '{}' ';'
+ -exec sed -i -e "s|\(=\s*.*\)/$LCONVERT_NAME|\1/lconvert|g" \
+ -e "s|\(=\s*.*\)/$LRELEASE_NAME|\1/lrelease|g" \
+ -e "s|\(=\s*.*\)/$LUPDATE_NAME|\1/lupdate|g" \
+ -e "s|\(=\s*.*\)/$XMLPATTERNS_NAME|\1/xmlpatterns|g" \
+ -e "s|\(=\s*.*\)/lconvert|\1/$LCONVERT_NAME|g" \
+ -e "s|\(=\s*.*\)/lrelease|\1/$LRELEASE_NAME|g" \
+ -e "s|\(=\s*.*\)/lupdate|\1/$LUPDATE_NAME|g" \
+ -e "s|\(=\s*.*\)/xmlpatterns|\1/$XMLPATTERNS_NAME|g" \
+ '{}' ';'
#bbnote "Calling '${OE_QMAKE_QMAKE} -makefile -spec ${QMAKESPEC} -o Makefile $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST'"
unset QMAKESPEC || true
--
1.8.2.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-06-07 5:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-07 5:15 [PATCH 0/3] qt4: add support for lconvert and xmlpatterns tools Jonathan Liu
2013-06-07 5:15 ` [PATCH 1/3] qt4-native: build lconvert and xmlpatterns Jonathan Liu
2013-06-07 5:15 ` [PATCH 2/3] classes/qmake2: export OE_QMAKE_LCONVERT and OE_QMAKE_XMLPATTERNS Jonathan Liu
2013-06-07 5:15 ` [PATCH 3/3] classes/qmake_base: update .pro hack Jonathan Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox