SConscript 378 B

1234567891011121314151617
  1. from building import *
  2. import rtconfig
  3. cwd = GetCurrentDir()
  4. src = Glob('*.c')
  5. path = [cwd]
  6. LOCAL_CCFLAGS = ''
  7. if rtconfig.CROSS_TOOL == 'gcc':
  8. LOCAL_CCFLAGS += ' -std=c99'
  9. elif rtconfig.CROSS_TOOL == 'keil':
  10. LOCAL_CCFLAGS += ' --c99'
  11. group = DefineGroup('cm_backtrace', src, depend = [''], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
  12. Return('group')