6c969c2a900a7d046d5b784d71e398b788617328
[platform/upstream/iotivity.git] / resource / SConscript
1 ##
2 # 'resource' sub-project main build script
3 #
4 ##
5
6 Import('env')
7
8 target_os = env.get('TARGET_OS')
9
10 # Build libcoap
11 SConscript('csdk/connectivity/lib/libcoap-4.1.1/SConscript')
12 SConscript('csdk/libcoap/SConscript')
13
14 # Build connectivity
15 SConscript('csdk/connectivity/SConscript')
16
17 # Build liboctbstack
18 SConscript('csdk/SConscript')
19
20 if target_os != 'arduino':
21         # Build liboc_logger
22         SConscript('oc_logger/SConscript')
23
24         # Build liboc
25         SConscript('src/SConscript')
26
27         # Build examples
28         SConscript('examples/SConscript')
29
30         SConscript('csdk/stack/samples/linux/SimpleClientServer/SConscript')
31 else:
32         SConscript('csdk/stack/samples/arduino/SimpleClientServer/ocserver/SConscript')