build: Fix to also support SECURED=0
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Mon, 5 Dec 2016 16:07:21 +0000 (17:07 +0100)
committerPhil Coval <philippe.coval@osg.samsung.com>
Thu, 8 Dec 2016 16:10:13 +0000 (16:10 +0000)
Note, for later it would be nice to test booleans instead of strings.

Change-Id: I069d865c6e2cc6a80a812e60ab278af15b7eaa85
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15163
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
(cherry picked from commit f50bc6c417731a023d5bb1774ee2ecf84a7b5dca)
Reviewed-on: https://gerrit.iotivity.org/gerrit/15225

build_common/SConscript

index 5776fd9..61e45df 100644 (file)
@@ -343,10 +343,10 @@ elif env.get('ROUTING') == 'EP':
 libs = []
 if env.get('WITH_TCP'):
     defines.append('-DTCP_ADAPTER=1')
-    if env.get('SECURED'):
+    if env.get('SECURED') == '1':
         defines.append('-D__WITH_TLS__=1')
 
-if env.get('SECURED'):
+if env.get('SECURED') == '1':
     libs.append('-locpmapi')
     defines.append('-D_WITH_DTLS_=1')