3 ###### Please specify below ######
5 BUILD_CMD="scons TARGET_OS=ios TARGET_ARCH=arm64 TARGET_TRANSPORT=IP WITH_TCP=yes WITH_CLOUD=yes MULTIPLE_OWNER=0 SECURED=1 LOGGING=1 RELEASE=1"
6 REMOVE_CMD="rm -rf out"
7 REMOVE_THIRDPARTY_CMD="rm service/third_party_libs.scons"
10 BOOST_BUILD_CMD="chmod 755 extlibs/boost/boost_ios.sh; extlibs/boost/boost_ios.sh"
13 CLONE_CMD="git clone http://suprem.sec.samsung.net/gerrit/IoTivity samsung_iotivity"
14 FETCH_CMD="git fetch -p"
15 CHECKOUT_CMD="git checkout -f "
16 CHERRYPICK_PREFIX="git fetch http://suprem.sec.samsung.net/gerrit/IoTivity"
17 CHERRYPICK_CMD="git cherry-pick FETCH_HEAD"
21 echo "***********************************************************************"
23 echo "* IoTivity Build Start. *"
25 echo "***********************************************************************"
30 echo ---------------------------------------------------------------------
31 echo "Fail to Build, Check Last Step. [$_STEP]"
32 echo ---------------------------------------------------------------------
49 COMMIT_ID=$(awk '/^commit_id:/{print $2}' "$1")
50 echo COMMIT ID is $COMMIT_ID
52 if [ 0 == ${#COMMIT_ID} ];then
58 CHERRYPICK_ID=$(awk '/^cherrypick_cmd_id:/{print $5}' "$1")
59 for cherry_pic_arr in $CHERRYPICK_ID
61 echo CHERRY_PICK_ID is $cherry_pic_arr
68 if [ ! -d resource/csdk ];then
69 if [ ! -d samsung_iotivity ];then
85 echo $REMOVE_THIRDPARTY_CMD
86 $REMOVE_THIRDPARTY_CMD
96 echo $CHECKOUT_CMD $COMMIT_ID
97 $CHECKOUT_CMD $COMMIT_ID
101 for arr_cherry_pick_cmd in $CHERRYPICK_ID; do
102 echo $CHERRYPICK_PREFIX $arr_cherry_pick_cmd
103 $CHERRYPICK_PREFIX $arr_cherry_pick_cmd
119 echo $BOOST_BUILD_CMD
120 eval $BOOST_BUILD_CMD