qtjsbackend-native: Use separate build directory

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Martin Jansa 2013-04-28 02:14:16 +02:00
parent 09516373c0
commit 38de259db8
1 changed files with 9 additions and 0 deletions

View File

@ -17,7 +17,16 @@ SRC_URI += "\
# parts of the source tree with out the 'mkv8snapshot' tool if it is enabled and that will fail
#PARALLEL_MAKE = ""
SEPB = "${WORKDIR}/build"
B = "${SEPB}"
do_configure() {
# Similar logic is in autotools.bbclass
if [ -d ${B} -a "${S}" != "${B}" ] ; then
# Existing separate build directory, exists, remove
rm -rf "${B}/*"
fi
# Avoid setting QMAKE_LINK from LD (since we want the linker to be g++)
unset LD