rt-thread/components/finsh/SConscript

40 lines
656 B
Python
Raw Normal View History

Import('rtconfig')
from building import *
cwd = GetCurrentDir()
2014-01-01 23:14:45 +08:00
src = Split('''
shell.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 = Glob('msh.c')
2014-01-01 23:14:45 +08:00
if GetDepend('RT_USING_DFS'):
msh_src += ['msh_file.c']
if not GetDepend('FINSH_USING_SYMTAB'):
src += ['symbol.c']
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
CPPPATH = [cwd]
group = DefineGroup('finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH)
Return('group')