add with_tcp in auto build
authorjihwan.seo <jihwan.seo@samsung.com>
Thu, 11 Aug 2016 07:07:13 +0000 (16:07 +0900)
committerJon A. Cruz <jon@joncruz.org>
Tue, 30 Aug 2016 20:25:56 +0000 (20:25 +0000)
Change-Id: I1aa7dfebe8d971f6ea45ddeb362f25d0e3a66d5f
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10251
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
auto_build.py

index 96c4e76..d17e800 100644 (file)
@@ -13,7 +13,7 @@ Usage:
     build:
         python %s <targetbuild>
         Allowed values for <target_build>: all, linux_unsecured, linux_secured, linux_unsecured_with_ra, linux_secured_with_ra, linux_unsecured_with_rd, linux_secured_with_rd, android, arduino, tizen, simulator, darwin, windows, msys
-        Note: \"linux\" will build \"linux_unsecured\", \"linux_secured\", \"linux_unsecured_with_ra\", \"linux_secured_with_ra\", \"linux_secured_with_rd\", \"linux_unsecured_with_mq\" & \"linux_unsecured_with_rd\".
+        Note: \"linux\" will build \"linux_unsecured\", \"linux_secured\", \"linux_unsecured_with_ra\", \"linux_secured_with_ra\", \"linux_secured_with_rd\", \"linux_unsecured_with_mq\", \"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.
         To choose any specific command, please use the SCons commandline directly. Please refer to [IOTIVITY_REPO]/Readme.scons.txt.
     clean:
@@ -48,6 +48,7 @@ def build_all(flag, extra_option_str):
         build_linux_unsecured_with_rd(flag, extra_option_str)
         build_linux_secured_with_rd(flag, extra_option_str)
         build_linux_unsecured_with_mq(flag, extra_option_str)
+        build_linux_unsecured_with_tcp(flag, extra_option_str)
         build_simulator(flag, extra_option_str)
 
     build_android(flag, extra_option_str)
@@ -140,6 +141,14 @@ def build_linux_unsecured_with_mq(flag, extra_option_str):
                     }
     call_scons(build_options, extra_option_str)
 
+def build_linux_unsecured_with_tcp(flag, extra_option_str):
+    print ("*********** Build for linux With tcp ************")
+    build_options = {
+                        'RELEASE':flag,
+                        'WITH_TCP':'1',
+                    }
+    call_scons(build_options, extra_option_str)
+
 def build_android(flag, extra_option_str):
     # Note: for android, as oic-resource uses C++11 feature stoi and to_string,
     # it requires gcc-4.9, currently only android-ndk-r10(for linux)
@@ -438,6 +447,10 @@ elif arg_num == 2:
         build_linux_unsecured_with_mq("true", "")
         build_linux_unsecured_with_mq("false", "")
 
+    elif str(sys.argv[1]) == "linux_unsecured_with_tcp":
+        build_linux_unsecured_with_tcp("true", "")
+        build_linux_unsecured_with_tcp("false", "")
+
     elif str(sys.argv[1]) == "android":
         build_android("true", "")
         build_android("false", "")