SConscript 1.0 KB

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