SConscript 697 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 = Glob('VangoV85xx_standard_peripheral/Source/*.c')
  7. src += [cwd + '/CMSIS/Vango/V85xx/Source/system_target.c']
  8. #add for startup script
  9. if rtconfig.CROSS_TOOL == 'gcc':
  10. src += [cwd + '/CMSIS/Vango/V85xx/Source/GCC/startup_target.S']
  11. path = [
  12. cwd + '/CMSIS/Vango/V85xx/Include',
  13. cwd + '/CMSIS',
  14. cwd + '/VangoV85xx_standard_peripheral/Include',]
  15. CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'V85xx','USE_TARGET_DRIVER']
  16. group = DefineGroup('Vango_Lib', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
  17. Return('group')