build: Add linux_full for MOT, RA and SECURED 85/23185/4
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Wed, 19 Jul 2017 09:34:09 +0000 (11:34 +0200)
committerC.J. Collier <cjcollier@linuxfoundation.org>
Tue, 14 Nov 2017 17:39:12 +0000 (17:39 +0000)
More features could be turned on later

Bug: https://jira.iotivity.org/browse/IOT-2241
Change-Id: Ie58e4f4f54ab08e2f0a7f7273e4e9943f9389534
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21539
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Alex Kelley <alexke@microsoft.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Mats Wichmann <mats@linux.com>
auto_build.py

index 66d15a5..56e54f8 100755 (executable)
@@ -12,7 +12,7 @@ def helpmsg(script):
 Usage:
     build:
         python %s <targetbuild>
-        Allowed values for <target_build>: all, linux_unsecured, linux_secured, linux_unsecured_with_rd, linux_secured_with_rd,
+        Allowed values for <target_build>: all, linux_unsecured, linux_secured, linux_full, linux_unsecured_with_rd, linux_secured_with_rd,
         android, android_unsecured, android_secured, arduino, tizen, tizen_unsecured, tizen_secured, simulator, darwin, windows, msys
         Note: \"linux\" will build \"linux_unsecured\", \"linux_secured\", \"linux_secured_with_rd\", \"linux_unsecured_with_mq\", \"linux_secured_with_tcp\" & \"linux_unsecured_with_tcp\" & \"linux_unsecured_with_rd\".
         Any selection will build both debug and release versions of all available targets in the scope you've selected.
@@ -136,6 +136,19 @@ def build_linux_secured(flag, extra_option_str):
                     }
     call_scons(build_options, extra_option_str)
 
+def build_linux_full(flag, extra_option_str):
+    print ("*********** Build for linux with full features *************")
+    build_options = {
+                        'MULTIPLE_OWNER':1,
+                        'RELEASE':flag,
+                        'SECURED':1,
+                        'WITH_CLOUD':1,
+                        'WITH_RA':1,
+                        'WITH_RA_IBB':1,
+                        'WITH_TCP':1,
+                    }
+    call_scons(build_options, extra_option_str)
+
 def build_linux_unsecured_with_rd(flag, extra_option_str):
     print ("*********** Build for linux With Resource Directory *************")
     build_options = {
@@ -556,6 +569,10 @@ elif arg_num == 2:
         build_linux_secured("true", "")
         build_linux_secured("false", "")
 
+    elif str(sys.argv[1]) == "linux_full":
+        build_linux_full("true", "")
+        build_linux_full("false", "")
+
     elif str(sys.argv[1]) == "linux_unsecured_with_rd":
         build_linux_unsecured_with_rd("true", "")
         build_linux_unsecured_with_rd("false", "")