host_arch=$(getHostArch)
-GYP_GENERATOR_OUTPUT=${TOPDIR}/"out.${host_arch}"
-
-JHBUILD_DEPS="${GYP_GENERATOR_OUTPUT}/Dependencies/Root"
-
-if [ "${host_arch}" == "x64" ]; then
- _LIBDIR=lib64
-elif [ "${host_arch}" == "ia32" ]; then
- _LIBDIR=lib
-fi
+export GYP_GENERATOR_OUTPUT=${TOPDIR}/"out.${host_arch}"
usage() {
cat << EOF
USE_CCACHE=1
fi
+JHBUILD_STAMPFILE="${GYP_GENERATOR_OUTPUT}/Dependencies/jhbuild.stamp"
+
+if echo "$@" | grep -cq '\-\-force-jhbuild'; then
+ rm -f $JHBUILD_STAMPFILE
+fi
+
if echo "$@" | grep -cq '\-\-debug'; then
BUILD_SUBDIRECTORY=Debug
fi
set -e
+JHBUILD_DEPS="${GYP_GENERATOR_OUTPUT}/Dependencies/Root"
+if [ "${host_arch}" == "x64" ]; then
+ _LIBDIR=lib64
+elif [ "${host_arch}" == "ia32" ]; then
+ _LIBDIR=lib
+fi
+export PKG_CONFIG_PATH="${JHBUILD_DEPS}/${_LIBDIR}/pkgconfig"
+
+if [ ! -f "$JHBUILD_STAMPFILE" ]; then
+ jhbuild --no-interact -f ${SCRIPTDIR}/jhbuild/jhbuildrc
+
+ if [ "$?" == "0" ]; then
+ echo "Yay! jhbuild done!" > $JHBUILD_STAMPFILE
+ fi
+fi
+
if [ "$SKIP_GYP" == "0" ]; then
${TOPDIR}/build/gyp_chromiumefl.sh
fi
host_arch=$(getHostArch)
target=desktop
-#need to be exported because it is used by jhbuild
-export GYP_GENERATOR_OUTPUT=${TOPDIR}/"out.${host_arch}"
+GYP_GENERATOR_OUTPUT=${TOPDIR}/"out.${host_arch}"
if echo "$@" | grep -cq '\-\Dbuilding_for_tizen_mobile=1'; then
GYP_GENERATOR_OUTPUT=${TOPDIR}/"out.mobile.${host_arch}"
target=tv
fi
-if [ "$target" == "desktop" ]; then
- JHBUILD_DEPS="${GYP_GENERATOR_OUTPUT}/Dependencies/Root"
-
- if [ "${host_arch}" == "x64" ]; then
- _LIBDIR=lib64
- elif [ "${host_arch}" == "ia32" ]; then
- _LIBDIR=lib
- fi
-
- export PKG_CONFIG_PATH="${JHBUILD_DEPS}/${_LIBDIR}/pkgconfig"
-fi
-
set -e
if [ ! -e ${TOPDIR}/src/build/util/LASTCHANGE.blink ]; then
fi
-
-if [ "$target" == "desktop" ]; then
- jhbuild --no-interact -f ${SCRIPTDIR}/jhbuild/jhbuildrc
-fi
-
set -x
${TOPDIR}/build/gyp_chromiumefl \
$COMMON_GYP_PARAMETERS \