To Integrate logger files
[platform/upstream/iotivity.git] / resource / csdk / connectivity / common / SConscript
1 ##
2 # CA build script
3 ##
4
5 Import('env')
6
7 print "Reading common folder script"
8
9 ca_os = env.get('TARGET_OS')
10 src_dir = env.get('SRC_DIR')
11 root_dir = './../'
12
13
14 ca_common_path = root_dir + 'common/'
15 ca_common_src_path = ca_common_path + 'src/'
16
17 env.AppendUnique(CPPPATH = [
18         'common/inc/',
19         src_dir + '/resource/csdk/logger/include/',
20         ])
21
22 ######################################################################
23 # Source files and Target(s)
24 ######################################################################
25 ca_common_src = [
26                 ca_common_src_path + 'uarraylist.c',
27                 ca_common_src_path + 'ulinklist.c',
28                 ca_common_src_path + 'uqueue.c',
29                 ca_common_src_path + 'caremotehandler.c'
30         ]
31
32 if env['POSIX_SUPPORTED']:
33         platform_src = [
34                 ca_common_src_path + 'cathreadpool_pthreads.c',
35                 ca_common_src_path + 'camutex_pthreads.c'
36         ]
37 else:
38         platform_src = [
39                 ca_common_src_path + 'camutex_noop.c'
40                 ]
41
42
43 env.AppendUnique(CA_SRC = ca_common_src)
44 env.AppendUnique(CA_SRC = platform_src)