SConscript 901 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('ES32F36xx_ALD_StdPeriph_Driver/Source/*.c')
  9. #add for startup script
  10. if rtconfig.PLATFORM in ['gcc']:
  11. src = src + ['CMSIS/Device/EastSoft/ES32F36xx/Startup/gcc/startup_es32f36xx.S']
  12. elif rtconfig.PLATFORM in ['armcc', 'armclang']:
  13. src = src + ['CMSIS/Device/EastSoft/ES32F36xx/Startup/keil/startup_es32f36xx.s']
  14. elif rtconfig.PLATFORM in ['iccarm']:
  15. src = src + ['CMSIS/Device/EastSoft/ES32F36xx/Startup/iar/startup_es32f36xx.s']
  16. path = [cwd + '/CMSIS/Device/EastSoft/ES32F36xx/Include',
  17. cwd + '/CMSIS/Include',
  18. cwd + '/ES32F36xx_ALD_StdPeriph_Driver/Include']
  19. group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = ['ES32F36xx'])
  20. Return('group')