1 # -*- mode: python; python-indent-offset: 4; indent-tabs-mode: nil -*-
3 # 'resource' sub-project main build script
9 target_os = env.get('TARGET_OS')
10 transport = env.get('TARGET_TRANSPORT')
12 print "Given Transport is %s" % transport
14 if env.get('RELEASE'):
15 env.AppendUnique(CFLAGS = ['-std=c99', '-fPIC', '-D__TIZEN__','-DWITH_POSIX', '-Wall','-D_GNU_SOURCE','-DTIZEN_DEBUG_ENABLE'])
17 env.AppendUnique(CFLAGS = ['-std=c99', '-fPIC', '-D__TIZEN__','-DWITH_POSIX', '-Wall', '-DSLP_SDK_LOG', '-g','-D_GNU_SOURCE','-DTIZEN_DEBUG_ENABLE'])
19 if env.get('LOGGING'):
20 env.AppendUnique(CPPDEFINES = ['TB_LOG'])
22 env.ParseConfig("pkg-config --cflags --libs capi-network-wifi dlog glib-2.0")
23 if 'ALL' in transport:
24 env.AppendUnique(CPPDEFINES = ['WIFI_ADAPTER', 'NO_ETHERNET_ADAPTER','EDR_ADAPTER','LE_ADAPTER'])
25 print "CA Transport is ALL"
28 env.AppendUnique(CPPDEFINES = ['EDR_ADAPTER'])
29 print "CA Transport is BT"
31 env.AppendUnique(CPPDEFINES = ['NO_EDR_ADAPTER'])
33 if 'BLE' in transport:
34 env.AppendUnique(CPPDEFINES = ['LE_ADAPTER'])
35 print "CA Transport is BLE"
37 env.AppendUnique(CPPDEFINES = ['NO_LE_ADAPTER'])
40 env.AppendUnique(CPPDEFINES = ['WIFI_ADAPTER'])
41 print "CA Transport is WIFI"
43 env.AppendUnique(CPPDEFINES = ['NO_WIFI_ADAPTER'])
45 env.SConscript(['../resource/SConscript'])