aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtjsbackend-native.inc
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2013-04-28 02:14:16 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2013-04-28 13:39:57 +0200
commit38de259db85f43008db4bd2133791ee81f29a01c (patch)
tree28ae05f8bf204c736dbf69cf4edb1ef376cdd646 /recipes-qt/qt5/qtjsbackend-native.inc
parent09516373c0940b60c797a922b3b3206b82e01182 (diff)
qtjsbackend-native: Use separate build directory
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtjsbackend-native.inc')
-rw-r--r--recipes-qt/qt5/qtjsbackend-native.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtjsbackend-native.inc b/recipes-qt/qt5/qtjsbackend-native.inc
index ea5bd86d..25de8e60 100644
--- a/recipes-qt/qt5/qtjsbackend-native.inc
+++ b/recipes-qt/qt5/qtjsbackend-native.inc
@@ -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