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 = ''
|
|
|
|
|
2010-04-22 17:33:25 +08:00
|
|
|
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')
|
2010-04-18 23:27:13 +08:00
|
|
|
|
2010-04-19 17:38:34 +08:00
|
|
|
if 'RT_USING_FINSH' in dir(rtconfig) and rtconfig.RT_USING_FINSH:
|
2010-04-18 23:27:13 +08:00
|
|
|
objs = objs + SConscript('finsh/SConscript')
|
|
|
|
|
2010-04-19 17:38:34 +08:00
|
|
|
if 'RT_USING_DFS' in dir(rtconfig) and rtconfig.RT_USING_DFS:
|
2010-04-18 23:27:13 +08:00
|
|
|
objs = objs + SConscript('dfs/SConscript')
|
|
|
|
|
2010-04-19 17:38:34 +08:00
|
|
|
if 'RT_USING_LWIP' in dir(rtconfig) and rtconfig.RT_USING_LWIP:
|
2010-04-18 23:27:13 +08:00
|
|
|
objs = objs + SConscript('net/lwip/SConscript')
|
|
|
|
|
2010-04-19 17:38:34 +08:00
|
|
|
if 'RT_USING_MODBUS' in dir(rtconfig) and rtconfig.RT_USING_MODBUS:
|
2010-04-26 18:21:24 +08:00
|
|
|
objs = objs + SConscript('net/freemodbus/SConscript')
|
2010-04-19 12:43:15 +08:00
|
|
|
|
2010-04-19 17:38:34 +08:00
|
|
|
if 'RT_USING_RTGUI' in dir(rtconfig) and rtconfig.RT_USING_RTGUI:
|
2010-04-18 23:27:13 +08:00
|
|
|
objs = objs + SConscript('rtgui/SConscript')
|
2010-04-16 14:19:59 +08:00
|
|
|
|
2010-05-29 22:19:56 +08:00
|
|
|
if 'RT_USING_MODULE' in dir(rtconfig) and rtconfig.RT_USING_MODULE:
|
|
|
|
objs = objs + SConscript('module/interface/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':
|
2010-05-29 22:19:56 +08:00
|
|
|
SConscript('module/examples/application/basicapp/SConscript')
|
2010-04-16 14:19:59 +08:00
|
|
|
|
2010-04-18 23:27:13 +08:00
|
|
|
Return('objs')
|