2010-04-16 14:19:59 +08:00
|
|
|
# for module compile
|
|
|
|
Import('env')
|
|
|
|
Import('rtconfig')
|
|
|
|
|
|
|
|
# build each components
|
2010-04-18 23:27:13 +08:00
|
|
|
objs = ''
|
|
|
|
|
|
|
|
if rtconfig.RT_USING_MINILIBC:
|
|
|
|
objs = objs + SConscript('libc/minilibc/SConscript')
|
|
|
|
|
|
|
|
if rtconfig.RT_USING_FINSH:
|
|
|
|
objs = objs + SConscript('finsh/SConscript')
|
|
|
|
|
|
|
|
if rtconfig.RT_USING_DFS:
|
|
|
|
objs = objs + SConscript('dfs/SConscript')
|
|
|
|
|
|
|
|
if rtconfig.RT_USING_LWIP:
|
|
|
|
objs = objs + SConscript('net/lwip/SConscript')
|
|
|
|
|
|
|
|
if rtconfig.RT_USING_RTGUI:
|
|
|
|
objs = objs + SConscript('rtgui/SConscript')
|
2010-04-16 14:19:59 +08:00
|
|
|
|
|
|
|
# build each modules
|
2010-04-18 23:27:13 +08:00
|
|
|
if rtconfig.CROSS_TOOL == 'gcc':
|
|
|
|
SConscript('hello/SConscript')
|
|
|
|
SConscript('thread/SConscript')
|
2010-04-16 14:19:59 +08:00
|
|
|
|
2010-04-18 23:27:13 +08:00
|
|
|
Return('objs')
|