1 # -*- mode: python; python-indent-offset: 4; indent-tabs-mode: nil -*-
3 # This script set linux specific flags (GNU GCC)
11 print "Reading linux configuration script"
13 # Set release/debug flags
14 if env.get('RELEASE'):
15 env.AppendUnique(CPPDEFINES = ['NDEBUG'])
17 if env.get('LOGGING'):
18 env.AppendUnique(CPPDEFINES = ['TB_LOG'])
20 env['CCFLAGS'] = SCons.Util.CLVar(os.environ.get('CFLAGS', ""))
21 env.AppendUnique(CPPDEFINES = ['WITH_POSIX', '__linux__'])
22 env.AppendUnique(CFLAGS = ['-std=gnu99'])
23 env.AppendUnique(CCFLAGS = ['-Wextra', '-fPIC'])
24 env.AppendUnique(LIBS = ['dl', 'pthread'])
26 env.AppendUnique(CCFLAGS = ['-D__TIZEN__', '-D_GNU_SOURCE', '-DTIZEN_DEBUG_ENABLE'])
27 env.ParseConfig("pkg-config dlog --cflags --libs")
29 # Set arch flags : It will be handled by Tizen build system.