replace : iotivity -> iotivity-sec
[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         '#resource/c_common/octhread/include/',
19         'common/inc/',
20         src_dir + '/resource/csdk/logger/include/',
21         ])
22
23 ######################################################################
24 # Source files and Target(s)
25 ######################################################################
26 ca_common_src = [
27                 ca_common_src_path + 'uarraylist.c',
28                 ca_common_src_path + 'ulinklist.c',
29                 ca_common_src_path + 'uqueue.c',
30                 ca_common_src_path + 'caremotehandler.c'
31         ]
32
33 if env['POSIX_SUPPORTED'] or ca_os in ['windows']:
34         platform_src = [
35                 ca_common_src_path + 'cathreadpool_pthreads.c',
36         ]
37 else:
38         platform_src = []
39
40 env.AppendUnique(CA_SRC = ca_common_src)
41 env.AppendUnique(CA_SRC = platform_src)