From 38ae8ef998bd4dc88768ee599f090d675aadcf0f Mon Sep 17 00:00:00 2001 From: Alex Kelley Date: Tue, 7 Feb 2017 14:12:17 -0800 Subject: [PATCH] IOT-1804 Add option to build without MOT in run.bat Change-Id: Ie1e1a6d15acfbc02d3b6446b0ca1d700376260a7 Signed-off-by: Alex Kelley Reviewed-on: https://gerrit.iotivity.org/gerrit/17095 Tested-by: jenkins-iotivity Reviewed-by: Dave Thaler Reviewed-by: Dan Mihai --- run.bat | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/run.bat b/run.bat index 0852720..cee534b 100644 --- a/run.bat +++ b/run.bat @@ -41,11 +41,14 @@ if "%SECURED%" == "" ( set SECURED=1 ) +if "%MULTIPLE_OWNER%" == "" ( + set MULTIPLE_OWNER=1 +) + set THREAD_COUNT=%NUMBER_OF_PROCESSORS% set ROUTING=EP set WITH_UPSTREAM_LIBCOAP=1 set BINDIR=debug -set MULTIPLE_OWNER=1 set RUN_ARG=%1 SHIFT @@ -80,6 +83,9 @@ IF NOT "%1"=="" ( IF /I "%1"=="-noSecurity" ( set SECURED=0 ) + IF /I "%1"=="-noMOT" ( + set MULTIPLE_OWNER=0 + ) SHIFT GOTO :processArgs @@ -221,6 +227,8 @@ echo -noTCP - Build with the TCP adapter disabled echo. echo -noSecurity - Remove security support (results in code that cannot be certified by OCF) echo. +echo -noMOT - Remove Multiple Ownership Transfer support. +echo. echo. Usage examples: echo. echo Launch SimpleClient with debugger: @@ -253,6 +261,9 @@ echo. echo Build without security support and run unit tests: echo %0 build -noSecurity echo. +echo Build without Multiple Ownership Transfer support and run unit tests: +echo %0 build -noMOT +echo. echo Run all tests: echo %0 test echo. -- 2.7.4