summaryrefslogtreecommitdiff
path: root/components/finsh/SConscript
blob: be04c566164570dceefd5bccc2754ce0e26ea7dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Import('rtconfig')
from building import *

cwd     = GetCurrentDir()
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')

if GetDepend('RT_USING_DFS'):
    msh_src += ['msh_file.c']

if not GetDepend('FINSH_USING_SYMTAB'):
    src += ['symbol.c']
if GetDepend('FINSH_USING_MSH'):
	src = src + msh_src
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')