tizen: defines platform for logger
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Tue, 19 Jul 2016 16:23:18 +0000 (18:23 +0200)
committerZiran Sun <ziran.sun@samsung.com>
Mon, 25 Jul 2016 12:24:51 +0000 (12:24 +0000)
Fix Fail to build for sources :

  sampleserver_justworks.cpp:(.text+0x234): \
    undefined reference to `OCLog'

Relates to:

  https://gerrit.iotivity.org/gerrit/#/c/9311/

Change-Id: Ib721633c982aa28ec5d72dd1bd84cad7115b179c
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9475
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashwini Kumar <k.ashwini@samsung.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
resource/csdk/security/provisioning/sample/SConscript

index e184494..191713d 100644 (file)
@@ -23,6 +23,7 @@ Import('env')
 import os.path
 
 provisioning_env = env.Clone()
+target_os = provisioning_env.get('TARGET_OS')
 
 ######################################################################
 # Build flags
@@ -74,6 +75,9 @@ if env.get('DTLS_WITH_X509') == '1':
 
 provisioning_env.AppendUnique(CPPDEFINES = ['TB_LOG'])
 
+if target_os == 'tizen':
+    provisioning_env.AppendUnique(CPPDEFINES = ['__TIZEN__'])
+
 ######################################################################
 # Source files and Targets
 ######################################################################