From 2a52f806f3789f717219651b97dc64fec3881f7f Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Wed, 1 Jun 2011 20:09:54 +0000 Subject: 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 Acked-by: Paul Eggleton Signed-off-by: Richard Purdie --- meta/classes/qmake_base.bbclass | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta/classes') 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" -- cgit v1.2.3