rtt-f030/components/finsh/SConscript

29 lines
677 B
Python

Import('env')
Import('projects')
Import('RTT_ROOT')
Import('rtconfig')
# group definitions
group = {}
group['name'] = 'finsh'
group['src'] = Glob('*.c')
group['CCFLAGS'] = ''
group['CPPPATH'] = [RTT_ROOT + '/components/finsh']
group['CPPDEFINES'] = ''
if rtconfig.CROSS_TOOL == 'keil':
group['LINKFLAGS'] = ' --keep __fsym_* --keep __vsym_*'
else:
group['LINKFLAGS'] = ''
# add group to project list
projects.append(group)
env.Append(CCFLAGS = group['CCFLAGS'])
env.Append(CPPPATH = group['CPPPATH'])
env.Append(CPPDEFINES = group['CPPDEFINES'])
env.Append(LINKFLAGS = group['LINKFLAGS'])
objs = env.Object(group['src'])
Return('objs')