3 SCRIPTDIR=$( cd $(dirname $0) ; pwd -P )
5 source ${SCRIPTDIR}/common.sh
6 trap 'error_report $0 $LINENO' ERR SIGINT SIGTERM SIGQUIT
8 host_arch=$(getHostArch)
10 parseHostBuildScriptParams desktop $@
13 if [ -z "$GN_GENERATOR_OUTPUT" ]; then
14 export GN_GENERATOR_OUTPUT=${TOPDIR}/"out.${host_arch}"
16 JHBUILD_STAMPFILE="${GN_GENERATOR_OUTPUT}/Dependencies/Root/jhbuild.stamp"
18 forceJHBuildIfNeeded() {
19 if [[ $FORCE_JHBUILD == 1 ]]; then
20 rm -f $JHBUILD_STAMPFILE
24 # Check if anything in jhbuild is more recent than stamp file.
25 if [ $(find $SCRIPTDIR/jhbuild -type f -newer $JHBUILD_STAMPFILE -print | wc -l) != "0" ]; then
26 rm -f $JHBUILD_STAMPFILE
33 JHBUILD_DEPS="${GN_GENERATOR_OUTPUT}/Dependencies/Root"
34 if [ "${host_arch}" == "x64" ]; then
36 elif [ "${host_arch}" == "ia32" ]; then
39 export PKG_CONFIG_PATH="${JHBUILD_DEPS}/${_LIBDIR}/pkgconfig"
41 if [ ! -f "$JHBUILD_STAMPFILE" ]; then
42 jhbuild --no-interact -f ${SCRIPTDIR}/jhbuild/jhbuildrc
44 if [[ $? == 0 ]]; then
45 echo "Yay! jhbuild done!" > $JHBUILD_STAMPFILE
49 export __GN_CHROMIUMEFL_TARGET=desktop
51 hostGnChromiumEfl "deps_include_path=\"${JHBUILD_DEPS}/include\" deps_lib_path=\"${JHBUILD_DEPS}/${_LIBDIR}\""
53 export LD_LIBRARY_PATH="${JHBUILD_DEPS}/${_LIBDIR}:$LD_LIBRARY_PATH"
54 export PATH="${JHBUILD_DEPS}/bin:$PATH"