summaryrefslogtreecommitdiff
path: root/resource/SConscript
blob: e1ad14e21e687978e1fd0b22222dc086649aba5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
##
# 'resource' sub-project main build script
#
##

Import('env')

target_os = env.get('TARGET_OS')

# Build libcoap
SConscript('csdk/libcoap/SConscript')

# Build liboctbstack
SConscript('csdk/SConscript')

if target_os == 'android':
	SConscript('android/SConscript')

if target_os != 'arduino':
	# Build liboc_logger
	SConscript('oc_logger/SConscript')

	# Build liboc
	SConscript('src/SConscript')

	# Build examples
	SConscript('examples/SConscript')
else:
	SConscript('csdk/stack/samples/arduino/SimpleClientServer/ocserver/SConscript')