From: Martin Jansa Date: Sun, 28 Apr 2013 00:14:16 +0000 (+0200) Subject: qtjsbackend-native: Use separate build directory X-Git-Tag: rev_ivi_2015_02_04~1169 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=504fbec48520b063b193cff9a48d990cb937fe4e;p=scm%2Fbb%2Ftizen-distro.git qtjsbackend-native: Use separate build directory (From meta-qt5 rev: 38de259db85f43008db4bd2133791ee81f29a01c) Signed-off-by: Martin Jansa Signed-off-by: Patrick Ohly --- diff --git a/meta-qt5/recipes-qt/qt5/qtjsbackend-native.inc b/meta-qt5/recipes-qt/qt5/qtjsbackend-native.inc index ea5bd86..25de8e6 100644 --- a/meta-qt5/recipes-qt/qt5/qtjsbackend-native.inc +++ b/meta-qt5/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