3 SCRIPTDIR=$( cd $(dirname $0) ; pwd -P )
4 TOPDIR=$( cd ${SCRIPTDIR}/.. ; pwd -P )
6 source ${SCRIPTDIR}/common.sh
8 host_arch=$(getHostArch)
11 #need to be exported because it is used by jhbuild
12 export GYP_GENERATOR_OUTPUT=${TOPDIR}/"out.${host_arch}"
14 if echo "$@" | grep -cq '\-\Dbuilding_for_tizen_mobile=1'; then
15 GYP_GENERATOR_OUTPUT=${TOPDIR}/"out.mobile.${host_arch}"
18 if echo "$@" | grep -cq '\-\Dbuilding_for_tizen_tv=1'; then
19 GYP_GENERATOR_OUTPUT=${TOPDIR}/"out.tv.${host_arch}"
23 if [ "$target" == "desktop" ]; then
24 JHBUILD_DEPS="${GYP_GENERATOR_OUTPUT}/Dependencies/Root"
26 if [ "${host_arch}" == "x64" ]; then
28 elif [ "${host_arch}" == "ia32" ]; then
32 export PKG_CONFIG_PATH="${JHBUILD_DEPS}/${_LIBDIR}/pkgconfig"
37 if [ ! -e ${TOPDIR}/src/build/util/LASTCHANGE.blink ]; then
38 ${TOPDIR}/src/build/util/lastchange.py -s ${TOPDIR}/src/third_party/WebKit -o ${TOPDIR}/src/build/util/LASTCHANGE.blink
41 COMMON_GYP_PARAMETERS="--depth=${TOPDIR}/src
42 -I${TOPDIR}/impl/chromium-efl.gypi
43 --generator-output ${GYP_GENERATOR_OUTPUT}
46 -Goutput_dir=${GYP_GENERATOR_OUTPUT}
47 -Dchrome_src_dir=${TOPDIR}/src
48 -Defl_impl_dir=${TOPDIR}/impl
50 -Dproprietary_codecs=1
55 #reverting back origin files
56 ${SCRIPTDIR}/restore_gyp.sh
58 if [ "$target" == "desktop" ]; then
59 ADDITIONAL_GYP_PARAMETERS+="-Dbuilding_for_tizen=0
62 ADDITIONAL_GYP_PARAMETERS+="-Dbuilding_for_tizen=1
67 -Dpython_ver=$(getPythonVersion)
68 -Dtarget_arch=$host_arch
69 -Dhost_arch=$host_arch
74 if [ "${GBS_ARCH}" == "arm" ]; then
75 ADDITIONAL_GYP_PARAMETERS+="-Darmv7=1
81 SYSTEM_DEPS="-Duse_alsa=0
85 -Duse_system_libjpeg=1
89 -Duse_system_libxslt=1
90 -Duse_system_minizip=1
94 if [ "$target" == "mobile" ]; then
95 SYSTEM_DEPS+=" -Duse_system_bzip2=1
96 -Duse_system_libexif=1
101 #and replacing original files with correct ones according to $SYSTEM_DEPS
102 $TOPDIR/src/build/linux/unbundle/replace_gyp_files.py $SYSTEM_DEPS
107 if [ "$target" == "desktop" ]; then
108 jhbuild --no-interact -f ${SCRIPTDIR}/jhbuild/jhbuildrc
112 ${TOPDIR}/build/gyp_chromiumefl \
113 $COMMON_GYP_PARAMETERS \
115 $ADDITIONAL_GYP_PARAMETERS \
117 ${TOPDIR}/impl/chromium-efl.gyp