SConscript 971 B

123456789101112131415161718192021222324252627282930
  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. src += [cwd + '/CMSIS/Vango/V85xx/Source/lib_CodeRAM.c']
  9. src += [cwd + '/CMSIS/Vango/V85xx/Source/lib_cortex.c']
  10. src += [cwd + '/CMSIS/Vango/V85xx/Source/lib_LoadNVR.c']
  11. #add for startup script
  12. if rtconfig.CROSS_TOOL == 'gcc':
  13. src += [cwd + '/CMSIS/Vango/V85xx/Source/GCC/startup_target.S']
  14. if rtconfig.CROSS_TOOL == 'keil':
  15. src += [cwd + '/CMSIS/Vango/V85xx/Source/Keil5/startup_target.S']
  16. path = [
  17. cwd + '/CMSIS/Vango/V85xx/Include',
  18. cwd + '/CMSIS',
  19. cwd + '/VangoV85xx_standard_peripheral/Include',]
  20. CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'V85xx','USE_TARGET_DRIVER']
  21. group = DefineGroup('Vango_Lib', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
  22. Return('group')