Fix missing of 'TB_LOG' in SConscript of ocserver
authorSeung-woo Lee <sw0524.lee@samsung.com>
Wed, 11 Feb 2015 07:21:20 +0000 (16:21 +0900)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Thu, 12 Feb 2015 18:56:59 +0000 (18:56 +0000)
The defining of 'TB_LOG' is missing when building ocserver
for debug. It results in no serial output because log macro
functions like OC_LOG_INIT were redefined as nothing

Change-Id: I25881d16a2a7fefb17dd79c4349353c9befede77
Signed-off-by: Seung-woo Lee <sw0524.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/324
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Caiwen Zhang <caiwen.zhang@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/SConscript

index ed5e429..46a859c 100644 (file)
@@ -14,6 +14,9 @@ arduino_simplecs_env.PrependUnique(CPPPATH = [
 arduino_simplecs_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')])
 arduino_simplecs_env.PrependUnique(LIBS = ['octbstack', 'coap'])
 
+if not env.get('RELEASE'):
+       arduino_simplecs_env.AppendUnique(CPPDEFINES = ['TB_LOG'])
+
 arduino_simplecs = arduino_simplecs_env.Program('SimpleClientServer', 'ocserver.cpp')
 env.CreateBin('SimpleClientServer')