2012-09-20 13:07:14 +08:00
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2014-01-01 23:14:45 +08:00
|
|
|
src = Split('''
|
|
|
|
shell.c
|
|
|
|
symbol.c
|
|
|
|
cmd.c
|
|
|
|
''')
|
|
|
|
|
|
|
|
fsh_src = Split('''
|
|
|
|
finsh_compiler.c
|
|
|
|
finsh_error.c
|
|
|
|
finsh_heap.c
|
|
|
|
finsh_init.c
|
|
|
|
finsh_node.c
|
|
|
|
finsh_ops.c
|
|
|
|
finsh_parser.c
|
|
|
|
finsh_var.c
|
|
|
|
finsh_vm.c
|
|
|
|
finsh_token.c
|
|
|
|
''')
|
|
|
|
|
|
|
|
msh_src = Split('''
|
|
|
|
msh.c
|
2015-10-11 15:38:08 +08:00
|
|
|
msh_cmd.c
|
|
|
|
msh_file.c
|
2014-01-01 23:14:45 +08:00
|
|
|
''')
|
|
|
|
|
2012-09-20 13:07:14 +08:00
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
2014-01-05 14:57:58 +08:00
|
|
|
if GetDepend('FINSH_USING_MSH'):
|
|
|
|
src = src + msh_src
|
2014-01-01 23:14:45 +08:00
|
|
|
if not GetDepend('FINSH_USING_MSH_ONLY'):
|
|
|
|
src = src + fsh_src
|
|
|
|
|
2019-03-12 11:40:53 +08:00
|
|
|
group = DefineGroup('finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH)
|
2012-09-20 13:07:14 +08:00
|
|
|
|
|
|
|
Return('group')
|