]> code.ossystems Code Review - openembedded-core.git/commitdiff
qmake_base.bbclass: fix lrelease/lupdate binary names
authorOtavio Salvador <otavio@ossystems.com.br>
Wed, 1 Jun 2011 20:09:54 +0000 (20:09 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Jun 2011 17:26:19 +0000 (18:26 +0100)
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>
meta/classes/qmake_base.bbclass

index a054efd249b3c96696f3005a7a6525b3750aef2a..165d6896b144587b7d6fc87e040e56c65548630b 100644 (file)
@@ -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"