[M120 Migration][MM] Handle live stream duration and currenttime
[platform/framework/web/chromium-efl.git] / tizen_src / build / build_tv.sh
index eea0338..5074bcd 100755 (executable)
@@ -1,29 +1,5 @@
 #!/bin/bash
 
-# source common functions and vars
 . `dirname $0`/common.sh
-trap '${SCRIPTDIR}/apply_patches.sh -r ${SCRIPTDIR}/patches;\
-      error_report $0 $LINENO' ERR SIGINT SIGTERM SIGQUIT
-
-${SCRIPTDIR}/apply_patches.sh ${SCRIPTDIR}/patches
-
-# "|| :" means "or always succeeding built-in command"
-PROFILE_NAME=$(echo "$@" | grep -Po "(?<=\-P\s)[^\s]*" || :)
-
-if [ "$PROFILE_NAME" == "" ]; then
-  PROFILE_NAME=tztv_v2.2.1_prehawk
-  PROFILE_FLAG="-P $PROFILE_NAME"
-fi
-
-TIZEN_VERSION="chromium_efl_tizen_version 2.2.1"
-
-if [ "$USE_GLOBAL_GBS_CONF" == "" ]; then
-  CONF_FLAG="--conf ${SCRIPTDIR}/gbs.conf"
-fi
-
-gbs $CONF_FLAG build $PROFILE_FLAG -A armv7l --incremental \
-    --extra-packs python-base-x86-arm,python-x86-arm,python-xml-x86-arm \
-    --define "${TIZEN_VERSION}" "$@"
-
-${SCRIPTDIR}/apply_patches.sh -r ${SCRIPTDIR}/patches
 
+setupAndExecuteTargetBuild tv "$@"