Merge branch 'connectivity-abstraction' to master
[platform/upstream/iotivity.git] / resource / csdk / connectivity / src / bt_edr_adapter / SConscript
1 #######################################################
2 #       Building BT adapter
3 #######################################################
4
5 Import('env')
6
7 print"Reading bt adapter script"
8
9 target_os = env.get('TARGET_OS')
10 src_dir = './bt_edr_adapter/'
11
12 #Source files to build common for all platforms
13 if target_os != 'arduino':
14         env.AppendUnique(CA_SRC=[src_dir+'caedradapter.c'])
15
16 #Source files to build in Linux platform
17 if target_os == 'linux':
18         env.AppendUnique(CA_SRC=[src_dir+'linux/caedradapter.c',
19                         ])
20
21 #Source files to build in Tizen platform
22 if target_os == 'tizen':
23         env.PrependUnique(CPPPATH = [src_dir + 'tizen'])
24         env.AppendUnique(CA_SRC=[src_dir+'tizen/caedrclient.c',
25                         src_dir+'tizen/caedrdevicelist.c',
26                         src_dir+'tizen/caedrendpoint.c',
27                         src_dir+'tizen/caedrnwmonitor.c',
28                         src_dir+'tizen/caedrserver.c',
29                         src_dir+'tizen/caedrutils.c',
30                         ])
31
32 #Source files to build in Android platform
33 if target_os == 'android':
34         env.AppendUnique(CA_SRC=[src_dir+'caedradapter.c',
35                         src_dir+'android/caedrclient.c',
36                         src_dir+'android/caedrutils.c',
37                         src_dir+'android/caedrnwmonitor.c',
38                         src_dir+'android/caedrserver.c',
39                         ])
40