3 SCRIPTDIR=$( cd $(dirname $0) ; pwd -P )
4 TOPDIR=$( cd ${SCRIPTDIR}/.. ; pwd -P )
6 source ${SCRIPTDIR}/common.sh
8 host_arch=$(getHostArch)
10 GYP_GENERATOR_OUTPUT=${TOPDIR}/"out.${host_arch}"
12 JHBUILD_DEPS="${GYP_GENERATOR_OUTPUT}/Dependencies/Root"
14 if [ "${host_arch}" == "x64" ]; then
16 elif [ "${host_arch}" == "ia32" ]; then
24 Build desktop version of chromium-efl
27 -h, --help Show this message
28 --skip-gyp Skip restore_gyp, jhbuild and gyp_chromium steps
29 --ccache configure ccache installed in your system
30 --skip-ninja Skip ninja step
31 --debug build debug version of chromium-efl (in $GYP_GENERATOR_OUTPUT/Debug instead of default $GYP_GENERATOR_OUTPUT/Release)
35 $0 --skip-gyp --ccache
45 BUILD_SUBDIRECTORY=Release
47 if echo "$@" | grep -cq '\(\(\-\-help\)\|\(\-h\)\)'; then
51 if echo "$@" | grep -cq '\-\-skip-gyp'; then
55 if echo "$@" | grep -cq '\-\-skip-ninja'; then
59 if echo "$@" | grep -cq '\-\-ccache'; then
63 if echo "$@" | grep -cq '\-\-debug'; then
64 BUILD_SUBDIRECTORY=Debug
69 if [ "$SKIP_GYP" == "0" ]; then
70 ${TOPDIR}/build/gyp_chromiumefl.sh
73 if [ "$SKIP_NINJA" == "0" ]; then
74 if [ "$USE_CCACHE" == "1" ]; then
77 source $TOPDIR/build/ccache_env.sh desktop
80 export LD_LIBRARY_PATH="${JHBUILD_DEPS}/${_LIBDIR}:$LD_LIBRARY_PATH"
81 export PATH="${JHBUILD_DEPS}/bin:$PATH"
82 ninja -C ${GYP_GENERATOR_OUTPUT}/${BUILD_SUBDIRECTORY}