parseHostBuildScriptParams desktop $@
-JHBUILD_STAMPFILE=""
if [ -z "$GN_GENERATOR_OUTPUT" ]; then
if [ $BUILD_CHROME == 1 ]; then
export GN_GENERATOR_OUTPUT=${TOPDIR}/"out.chrome.${host_arch}"
export GN_GENERATOR_OUTPUT=${TOPDIR}/"out.${host_arch}"
fi
fi
-JHBUILD_STAMPFILE="${GN_GENERATOR_OUTPUT}/Dependencies/Root/jhbuild.stamp"
-forceJHBuildIfNeeded() {
+JHBUILD_DEPS=""
+buildLocalDepsWithJhbuild() {
+ JHBUILD_STAMPFILE=""
+ JHBUILD_STAMPFILE="${GN_GENERATOR_OUTPUT}/Dependencies/Root/jhbuild.stamp"
+
+ # forceJHBuildIfNeeded
if [[ $FORCE_JHBUILD == 1 ]]; then
rm -f $JHBUILD_STAMPFILE
- return
- fi
-
# Check if anything in jhbuild is more recent than stamp file.
- if [ $(find $SCRIPTDIR/jhbuild -type f -newer $JHBUILD_STAMPFILE -print | wc -l) != "0" ]; then
+ elif [ $(find $SCRIPTDIR/jhbuild -type f -newer $JHBUILD_STAMPFILE -print | wc -l) != "0" ]; then
rm -f $JHBUILD_STAMPFILE
fi
-}
-
-forceJHBuildIfNeeded
-JHBUILD_DEPS=""
-JHBUILD_DEPS="${GN_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"
+ # Build local Dependencies with jhbuild
+ JHBUILD_DEPS="${GN_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 [ ! -f "$JHBUILD_STAMPFILE" ]; then
+ jhbuild --no-interact -f ${SCRIPTDIR}/jhbuild/jhbuildrc build
- if [[ $? == 0 ]]; then
- echo "Yay! jhbuild done!" > $JHBUILD_STAMPFILE
+ if [[ $? == 0 ]]; then
+ echo "Yay! jhbuild done!" > $JHBUILD_STAMPFILE
+ else
+ echo "jhbuild failed."
+ exit -1
+ fi
fi
-fi
+}
export __GN_CHROMIUMEFL_TARGET=desktop
export C_INCLUDE_PATH="${SCRIPTDIR}/desktop/tizen_include:$C_INCLUDE_PATH"
export CPLUS_INCLUDE_PATH="${SCRIPTDIR}/desktop/tizen_include:$CPLUS_INCLUDE_PATH"
-hostGnChromiumEfl "deps_include_path=\"${JHBUILD_DEPS}/include\" deps_lib_path=\"${JHBUILD_DEPS}/${_LIBDIR}\""
-
-export LD_LIBRARY_PATH="${JHBUILD_DEPS}/${_LIBDIR}:$LD_LIBRARY_PATH"
-export PATH="${JHBUILD_DEPS}/bin:$PATH"
+__HOST_GN_ARG=""
+if [[ $USE_LOCAL_JHBUILD_DEPS == 1 ]]; then
+ buildLocalDepsWithJhbuild
+ export LD_LIBRARY_PATH="${JHBUILD_DEPS}/${_LIBDIR}:$LD_LIBRARY_PATH"
+ export PATH="${JHBUILD_DEPS}/bin:$PATH"
+ __HOST_GN_ARG="deps_include_path=\"${JHBUILD_DEPS}/include\" deps_lib_path=\"${JHBUILD_DEPS}/${_LIBDIR}\""
+fi
+hostGnChromiumEfl $__HOST_GN_ARG
hostNinja desktop
--debug Build debug version of chromium-efl (out.${host_arch}/Debug instead of out.${host_arch}/Release)
-jN Set number of jobs, just like with make or ninja
--skip-ninja Skip ninja step
+ --local-deps Build using local dependency built by jhbuild
examples:
$0 --ccache
trap 'undoReplacedGn $1' SIGINT
export USE_CCACHE=0
export USE_CLANG=1
+ export USE_LOCAL_JHBUILD_DEPS=0
export FORCE_JHBUILD=0
export SKIP_NINJA=0
export BUILD_EWK_UNITTESTS=0
--disable-build-chrome)
export BUILD_CHROME=0
;;
+ --host-deps)
+ export USE_LOCAL_JHBUILD_DEPS=0
+ ;;
+ --local-deps)
+ export USE_LOCAL_JHBUILD_DEPS=1
+ ;;
--force-jhbuild)
export FORCE_JHBUILD=1
;;
<metamodule id="chromeefl-dependencies">
<dependencies>
<dep package="efl"/>
+ <!--
<dep package="elementary"/>
<dep package="glib"/>
<dep package="glib-networking"/>
<dep package="libpng"/>
<dep package="zlib"/>
+ -->
</dependencies>
</metamodule>
<!-- The long and scary "enable-i-really" option is needed to build EFL with disable-pulseaudio and disable-physics options.
Apparently EFL configure script considers such configuration unsupported. Still we don't need audio or physics support
in EFL and building extra libraries just to satisfy dependencies we don't need is pointless. -->
- <autotools id="efl" autogen-sh="configure"
- autogenargs="--with-x11=xlib --with-opengl=es --with-glib=yes --disable-pulseaudio --disable-physics --enable-egl
- --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-abb">
- <branch module="rel/libs/efl/efl-1.17.0.tar.xz" version="1.17.0"
+ <meson id="efl" mesonargs="-Dpulseaudio=false -Dbuild-examples=false -Dglib=true">
+ <branch module="rel/libs/efl/efl-1.25.1.tar.xz" version="1.25.1"
repo="download.enlightenment.org"
- hash="sha256:c13540bad764d014fea2c079fad8fcca62e5c229994d43aa4eb692d2c9b73afe"
- md5sum="c7cf8478edff3f1342e5f664b347c13c">
+ hash="sha256:351ca0211ca000234527a503585f039f985607ec9439e34b49d8b8bbf35a7e6b">
</branch>
- <dependencies>
- <dep package="glib"/>
- </dependencies>
- </autotools>
+ </meson>
<autotools id="elementary" autogen-sh="configure"
autogenargs="--enable-ecore-x --enable-egl --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-abb">