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.

(From OE-Core rev: 2a52f806f3789f717219651b97dc64fec3881f7f)

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>
This commit is contained in:
Otavio Salvador 2011-06-01 20:09:54 +00:00 committed by Richard Purdie
parent b0ed5af344
commit 18011c1a06
1 changed files with 5 additions and 0 deletions

View 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"