rt-thread-official/components/finsh/SConscript

27 lines
615 B
Python
Raw Normal View History

from building import *
from gcc import GetGCCLikePLATFORM
cwd = GetCurrentDir()
2014-01-01 23:14:45 +08:00
src = Split('''
shell.c
2021-08-23 17:30:05 +08:00
msh.c
msh_parse.c
2014-01-01 23:14:45 +08:00
''')
CPPPATH = [cwd]
LOCAL_CFLAGS = ''
2024-03-16 10:48:53 +08:00
if rtconfig.PLATFORM in ['gcc']: # only for GCC
LOCAL_CFLAGS += ' -Wstack-usage=' + str(GetConfigValue('FINSH_THREAD_STACK_SIZE')) # check finsh thread stack size
if GetDepend('MSH_USING_BUILT_IN_COMMANDS'):
src += ['cmd.c']
2021-11-16 00:22:49 +08: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
group = DefineGroup('Finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH,
LOCAL_CFLAGS = LOCAL_CFLAGS)
Return('group')