SConscript 525 B

123456789101112131415161718192021
  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. # Using ARM Compiler Version 5
  11. LOCAL_CCFLAGS += ' --c99'
  12. LOCAL_CCFLAGS += ' --no-multibyte-chars'
  13. # Using ARM Compiler Version 6
  14. # pass
  15. group = DefineGroup('cm_backtrace', src, depend = ['PKG_USING_CMBACKTRACE'], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
  16. Return('group')