2012-09-20 05:07:14 +00:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2014-01-01 23:14:45 +08:00
|
|
|
src = Split('''
|
|
|
|
shell.c
|
2021-08-23 17:30:05 +08:00
|
|
|
msh.c
|
2022-05-30 18:00:26 +08:00
|
|
|
msh_parse.c
|
2014-01-01 23:14:45 +08:00
|
|
|
''')
|
|
|
|
|
2021-08-28 16:48:08 -04:00
|
|
|
if GetDepend('MSH_USING_BUILT_IN_COMMANDS'):
|
2021-08-25 19:10:01 -04:00
|
|
|
src += ['cmd.c']
|
|
|
|
|
2021-11-15 11:22:49 -05:00
|
|
|
if GetDepend('DFS_USING_POSIX'):
|
2021-08-23 17:30:05 +08:00
|
|
|
src += ['msh_file.c']
|
2014-01-01 23:14:45 +08:00
|
|
|
|
2019-09-25 20:08:53 +08:00
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
2021-08-26 10:08:12 -04:00
|
|
|
group = DefineGroup('Finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH)
|
2012-09-20 05:07:14 +00:00
|
|
|
|
|
|
|
Return('group')
|