Fix Android SetPropertyValue function call
[platform/upstream/iotivity.git] / gbsbuild.sh
index 7cb7285..c90d7b3 100755 (executable)
@@ -59,6 +59,7 @@ withtcp=0
 withcloud=0
 withproxy=0
 withmq=OFF
+rdmode=CLIENT
 secured=0
 for ARGUMENT_VALUE in $*
 do
@@ -79,6 +80,10 @@ do
        withmq=PUB,SUB,BROKER
    fi
 
+   if [ "RD_MODE" = $ARGUMENT_VALUE ];then
+       rdmode=CLIENT,SERVER
+   fi
+
    if [ "SECURED" = $ARGUMENT_VALUE ];then
        secured=1
    fi
@@ -90,7 +95,8 @@ if [ $secured -eq 1 ];then
   $SHELL ./extlibs/mbedtls/prep.sh
 fi
 
-rm -rf ./extlibs/tinycbor/tinycbor/.git*
+# Prepare TinyCBOR dependency
+$SHELL ./extlibs/tinycbor/prep.sh
 
 # Initialize Git repositoryㅣ
 if [ ! -d .git ]; then
@@ -102,7 +108,7 @@ if [ ! -d .git ]; then
 fi
 
 echo "Calling core gbs build command"
-gbscommand="gbs build -A armv7l --define 'WITH_TCP $withtcp' --define 'WITH_CLOUD $withcloud' --define 'WITH_PROXY $withproxy' --define 'WITH_MQ $withmq' --define 'SECURED $secured' -B ~/GBS-ROOT-OIC --include-all --repository ./"
+gbscommand="gbs build -A armv7l --define 'WITH_TCP $withtcp' --define 'WITH_CLOUD $withcloud' --define 'WITH_PROXY $withproxy' --define 'WITH_MQ $withmq' --define 'RD_MODE $rdmode' --define 'SECURED $secured' -B ~/GBS-ROOT-OIC --include-all --repository ./"
 echo $gbscommand
 if eval $gbscommand; then
     echo "Build is successful"