summaryrefslogtreecommitdiff
path: root/components/SConscript
blob: bd6f6323ad10fd684dbee9fdb53e2d64afa8e0cb (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
30
31
32
33
34
35
36
# for module compile 
Import('env')
Import('rtconfig')

# build each components
objs = ''

if rtconfig.CROSS_TOOL == 'gcc':
	if 'RT_USING_NEWLIB' in dir(rtconfig) and rtconfig.RT_USING_NEWLIB:
		objs = objs + SConscript('libc/newlib/SConscript')
	else:
		rtconfig.RT_USING_MINILIBC = True
		objs = objs + SConscript('libc/minilibc/SConscript')

if 'RT_USING_PTHREAD' in dir(rtconfig) and rtconfig.RT_USING_PTHREAD:
	objs = objs + SConscript('pthreads/SConscript')

if 'RT_USING_FINSH' in dir(rtconfig) and rtconfig.RT_USING_FINSH:
	objs = objs + SConscript('finsh/SConscript')

if 'RT_USING_DFS' in dir(rtconfig) and rtconfig.RT_USING_DFS:
	objs = objs + SConscript('dfs/SConscript')

if 'RT_USING_LWIP' in dir(rtconfig) and rtconfig.RT_USING_LWIP:
	objs = objs + SConscript('net/lwip/SConscript')

if 'RT_USING_MODBUS' in dir(rtconfig) and rtconfig.RT_USING_MODBUS:
	objs = objs + SConscript('net/freemodbus/SConscript')

if 'RT_USING_RTGUI' in dir(rtconfig) and rtconfig.RT_USING_RTGUI:
	objs = objs + SConscript('rtgui/SConscript')

if 'RT_USING_FTK' in dir(rtconfig) and rtconfig.RT_USING_FTK:
	objs = objs + SConscript('external/ftk/ftk/src/os/rt-thread/SConscript')

Return('objs')