qtjsbackend-native: Use separate build directory
authorMartin Jansa <Martin.Jansa@gmail.com>
Sun, 28 Apr 2013 00:14:16 +0000 (02:14 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:43:55 +0000 (08:43 -0800)
(From meta-qt5 rev: 38de259db85f43008db4bd2133791ee81f29a01c)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-qt5/recipes-qt/qt5/qtjsbackend-native.inc

index ea5bd86..25de8e6 100644 (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