[Service] Fix DeviceApiRouter with "new Service"
[platform/framework/web/wrtjs.git] / tizen / build / common.sh
index aa48b4e..c62935a 100755 (executable)
@@ -4,7 +4,7 @@ export SCRIPTDIR=$(readlink -e $(dirname $0))
 export TOPDIR=$(readlink -f "${SCRIPTDIR}/../..")
 export CHROME_SRC="${TOPDIR}"
 
-export LATEST_TIZEN_VERSION=6.0
+export LATEST_TIZEN_VERSION=6.5
 export DEFAULT_TIZEN_VERSION=$LATEST_TIZEN_VERSION
 
 if [ "$(echo "$@" | grep -e "--tizen")" != "" ]; then
@@ -24,10 +24,12 @@ function setupAndExecuteTargetBuild() {
   local platform="$1"
   shift
 
-  local PROFILE
   local ARCHITECTURE
   local CONF_FLAG
   local LOCAL_BUILD=1
+  local PROFILE
+  local USE_D2D
+  local USE_TPK
   local -a ARGS
 
   # "|| :" means "or always succeeding built-in command"
@@ -37,6 +39,9 @@ function setupAndExecuteTargetBuild() {
 
   while [[ $# > 0 ]]; do
     case "$1" in
+    --d2d)
+      USE_D2D=1
+    ;;
     --standard*)
       PROFILE=tz_$(echo $1 | sed 's/--//g')
     ;;
@@ -48,6 +53,13 @@ function setupAndExecuteTargetBuild() {
     ;;
     --tizen*)
     ;;
+    --use-tpk)
+      USE_TPK=1
+    ;;
+    --use-tpk-upgrade)
+      USE_TPK=1
+      USE_TPK_UPGRADE=1
+    ;;
     *)
       ARGS+=("$1")
     ;;
@@ -58,12 +70,23 @@ function setupAndExecuteTargetBuild() {
   if [ "$LOCAL_BUILD" == "1" ]; then
     ARGS+=(--define "_local_build 1")
   fi
+  if [ "$USE_D2D" == "1" ]; then
+    ARGS+=(--define "_use_d2d 1")
+  fi
+  if [ "$USE_TPK" == "1" ]; then
+    ARGS+=(--define "_use_tpk 1")
+    if [ "$USE_TPK_UPGRADE" == "1" ] && [ $platform == "tv" ]; then
+      ARGS+=(--define "tpktype upgrade")
+    fi
+  fi
 
   if [ "$PROFILE" == "" ]; then
     if [[ $platform == "tv" ]]; then
       PROFILE=tztv_${DEFAULT_TIZEN_VERSION}_arm-nikem
     elif [[ $platform == "da" ]]; then
-      PROFILE=tzda_${DEFAULT_TIZEN_VERSION}_arm-kantm
+      #TODO: Once 6.5 fhub repo is ready, uncomment following line
+      #PROFILE=tzda_${DEFAULT_TIZEN_VERSION}_arm-kantm
+      PROFILE=tzda_6.0_arm-kantm
     elif [[ $platform == "wearable" ]]; then
       PROFILE=tzwr_5.5_arm-spin
     else