- in case of building using gbsscript, can get RD_MODE option
Change-Id: I88a027e2ba050ce9eb622eabf3d988eba8db9c64
Signed-off-by: YounghyunJoo <yh_.joo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14281
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
withcloud=0
withproxy=0
withmq=OFF
+rdmode=CLIENT
secured=0
for ARGUMENT_VALUE in $*
do
withmq=PUB,SUB,BROKER
fi
+ if [ "RD_MODE" = $ARGUMENT_VALUE ];then
+ rdmode=CLIENT,SERVER
+ fi
+
if [ "SECURED" = $ARGUMENT_VALUE ];then
secured=1
fi
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"
# Default values to be eventually overiden BEFORE or as gbs params:
%{!?ES_TARGET_ENROLLEE: %define ES_TARGET_ENROLLEE tizen}
%{!?LOGGING: %define LOGGING 1}
+%{!?RD_MODE: %define RD_MODE CLIENT}
%{!?ROUTING: %define ROUTING EP}
%{!?SECURED: %define SECURED 0}
%{!?TARGET_ARCH: %define TARGET_ARCH %{_arch}}
ES_TARGET_ENROLLEE=%{ES_TARGET_ENROLLEE} \
LIB_INSTALL_DIR=%{_libdir} \
LOGGING=%{LOGGING} \
+ RD_MODE=%{RD_MODE} \
RELEASE=%{RELEASE} \
ROUTING=%{ROUTING} \
SECURED=%{SECURED} \
ES_TARGET_ENROLLEE=%{ES_TARGET_ENROLLEE} \
LIB_INSTALL_DIR=%{_libdir} \
LOGGING=%{LOGGING} \
+ RD_MODE=%{RD_MODE} \
RELEASE=%{RELEASE} \
ROUTING=%{ROUTING} \
SECURED=%{SECURED} \