SConscript 599 B

123456789101112131415161718192021222324252627
  1. import rtconfig
  2. Import('RTT_ROOT')
  3. from building import *
  4. # get current directory
  5. cwd = GetCurrentDir()
  6. # The set of source files associated with this SConscript file.
  7. src = []
  8. src += Glob('Library/Source/*.c')
  9. src += ['CMSIS/system_ES8P508x.c']
  10. #add for startup script
  11. if rtconfig.CROSS_TOOL == 'gcc':
  12. src = src
  13. elif rtconfig.CROSS_TOOL == 'keil':
  14. src = src + ['CMSIS/startup_ES8P508x.s']
  15. elif rtconfig.CROSS_TOOL == 'iar':
  16. src = src
  17. path = [cwd + '/CMSIS',
  18. cwd + '/Library/Include',]
  19. group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
  20. Return('group')