X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=build_common%2Ftizen%2FSConscript;h=aa2c212e6fa27e507162bdd24093aa867de3b087;hb=refs%2Ftags%2Fsubmit%2Ftizen_4.0%2F20171010.021147;hp=fe06f8f357c0420775aed7c32d42e6cc1ddf5eb0;hpb=6ac4daf1c0a01ee54845041025cb7ec845d2502b;p=platform%2Fupstream%2Fiotivity.git diff --git a/build_common/tizen/SConscript b/build_common/tizen/SConscript index fe06f8f..aa2c212 100644 --- a/build_common/tizen/SConscript +++ b/build_common/tizen/SConscript @@ -1,4 +1,3 @@ -# -*- mode: python; python-indent-offset: 4; indent-tabs-mode: nil -*- ## # This script set linux specific flags (GNU GCC) # @@ -15,7 +14,7 @@ if env.get('RELEASE'): env.AppendUnique(CPPDEFINES = ['NDEBUG']) if env.get('LOGGING'): - env.AppendUnique(CPPDEFINES = ['TB_LOG']) + env.AppendUnique(CPPDEFINES = ['-DTB_LOG']) env['CCFLAGS'] = SCons.Util.CLVar(os.environ.get('CFLAGS', "")) env.AppendUnique(CPPDEFINES = ['WITH_POSIX', '__linux__']) @@ -25,5 +24,6 @@ env.AppendUnique(LIBS = ['dl', 'pthread']) env.AppendUnique(CCFLAGS = ['-D__TIZEN__', '-D_GNU_SOURCE', '-DTIZEN_DEBUG_ENABLE']) env.ParseConfig("pkg-config dlog --cflags --libs") - +if env.get('OIC_SUPPORT_TIZEN_TRACE') == 'True': + env.ParseConfig("pkg-config ttrace --cflags --libs") # Set arch flags : It will be handled by Tizen build system.