summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-06-01 20:09:54 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-02 18:26:19 +0100
commit2a52f806f3789f717219651b97dc64fec3881f7f (patch)
treec42e8ea2d7276457c060818a82c7e9b0470ff384 /meta/classes
parent239bf1973099f938663b2f5c7c68410a3582f06a (diff)
downloadopenembedded-core-2a52f806f3789f717219651b97dc64fec3881f7f.tar.gz
openembedded-core-2a52f806f3789f717219651b97dc64fec3881f7f.tar.bz2
openembedded-core-2a52f806f3789f717219651b97dc64fec3881f7f.tar.xz
openembedded-core-2a52f806f3789f717219651b97dc64fec3881f7f.zip
qmake_base.bbclass: fix lrelease/lupdate binary names
To support translation, qmake based projects usually call lrelease and lupdate however OE changes the binary names so this needs some mangle to work out of box. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Acked-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/qmake_base.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/qmake_base.bbclass b/meta/classes/qmake_base.bbclass
index a054efd24..165d6896b 100644
--- a/meta/classes/qmake_base.bbclass
+++ b/meta/classes/qmake_base.bbclass
@@ -92,6 +92,11 @@ qmake_base_do_configure() {
bbnote "qmake prevar substitution: ${EXTRA_QMAKEVARS_PRE}"
fi
+ # Hack .pro files to use OE utilities
+ find -name '*.pro' \
+ -exec sed -i -e 's,=\s*.*/lrelease,= ${OE_QMAKE_LRELEASE},g' \
+ -e 's,=\s*.*/lupdate,= ${OE_QMAKE_LUPDATE},g' '{}' ';'
+
#bbnote "Calling '${OE_QMAKE_QMAKE} -makefile -spec ${QMAKESPEC} -o Makefile $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST'"
unset QMAKESPEC || true
${OE_QMAKE_QMAKE} -makefile -spec ${QMAKESPEC} -o Makefile $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST || die "Error calling ${OE_QMAKE_QMAKE} on $PROFILES"