From: Seung-woo Lee Date: Wed, 11 Feb 2015 07:21:20 +0000 (+0900) Subject: Fix missing of 'TB_LOG' in SConscript of ocserver X-Git-Tag: 1.2.0+RC1~1936 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13cbe22d4835963896d4bd4714084489644c7151;p=platform%2Fupstream%2Fiotivity.git Fix missing of 'TB_LOG' in SConscript of ocserver 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 Reviewed-on: https://gerrit.iotivity.org/gerrit/324 Tested-by: jenkins-iotivity Reviewed-by: Caiwen Zhang Reviewed-by: Patrick Lankswert --- diff --git a/resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/SConscript b/resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/SConscript index ed5e429..46a859c 100644 --- a/resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/SConscript +++ b/resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/SConscript @@ -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')