IOT-1804 Add option to build without MOT in run.bat
authorAlex Kelley <alexke@microsoft.com>
Tue, 7 Feb 2017 22:12:17 +0000 (14:12 -0800)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Fri, 10 Feb 2017 14:05:02 +0000 (14:05 +0000)
Change-Id: Ie1e1a6d15acfbc02d3b6446b0ca1d700376260a7
Signed-off-by: Alex Kelley <alexke@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17095
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
run.bat

diff --git a/run.bat b/run.bat
index 0852720..cee534b 100644 (file)
--- 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.