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-10-14 16:06:26 +08:00
|
|
|
if 'RT_USING_PTHREAD' in dir(rtconfig) and rtconfig.RT_USING_PTHREAD:
|
|
|
|
objs = objs + SConscript('pthreads/SConscript')
|
|
|
|
|
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-10-02 20:15:48 +08:00
|
|
|
if 'RT_USING_FTK' in dir(rtconfig) and rtconfig.RT_USING_FTK:
|
2010-10-08 19:23:47 +08:00
|
|
|
objs = objs + SConscript('external/ftk/ftk/src/os/rt-thread/SConscript')
|
2010-10-02 20:15:48 +08:00
|
|
|
|
2010-04-18 23:27:13 +08:00
|
|
|
Return('objs')
|