SConscript 640 B

12345678910111213141516171819202122232425
  1. import rtconfig
  2. from building import *
  3. # get current directory
  4. cwd = GetCurrentDir()
  5. # The set of source files associated with this SConscript file.
  6. src = Split('''
  7. GD/GD32E50x/Source/system_gd32e50x.c
  8. ''')
  9. path = [
  10. cwd + '/GD/GD32E50x/Include',
  11. cwd,]
  12. if rtconfig.PLATFORM in ['armcc', 'armclang']:
  13. src += ['GD/GD32E50x/Source/ARM/startup_gd32e50x_hd.s']
  14. elif rtconfig.PLATFORM in ['iccarm']:
  15. src += ['GD/GD32E50x/Source/IAR/startup_gd32e50x_hd.s']
  16. CPPDEFINES = ['USE_STDPERIPH_DRIVER']
  17. group = DefineGroup('Libraries', src, depend = ['SOC_SERIES_GD32E50x'], CPPPATH = path, CPPDEFINES = CPPDEFINES)
  18. Return('group')