SConscript 857 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('ES32F065x_ALD_StdPeriph_Driver/Source/*.c')
  9. #add for startup script
  10. if rtconfig.CROSS_TOOL == 'gcc':
  11. src = src + ['CMSIS/Device/EastSoft/ES32F065x/Startup/gcc/startup_es32f065x.s']
  12. elif rtconfig.CROSS_TOOL == 'keil':
  13. src = src + ['CMSIS/Device/EastSoft/ES32F065x/Startup/keil/startup_es32f065x.s']
  14. elif rtconfig.CROSS_TOOL == 'iar':
  15. src = src + ['CMSIS/Device/EastSoft/ES32F065x/Startup/iar/startup_es32f065x.s']
  16. path = [cwd + '/CMSIS/Device/EastSoft/ES32F065x/Include',
  17. cwd + '/CMSIS/Include',
  18. cwd + '/ES32F065x_ALD_StdPeriph_Driver/Include']
  19. group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
  20. Return('group')