SConscript 499 B

1234567891011121314151617181920212223
  1. import os
  2. import rtconfig
  3. Import('RTT_ROOT')
  4. from building import *
  5. CPPDEFINES = []
  6. # get current directory
  7. cwd = GetCurrentDir()
  8. # The set of source files associated with this SConscript file.
  9. src = Glob('src/*.c')
  10. # Remove retarget.c As there is a HardFaultHandler in it
  11. for src_f in src:
  12. if 'retarget.c' in src_f.path:
  13. src.remove(src_f)
  14. path = [cwd + '/inc']
  15. group = DefineGroup('StdDriver', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
  16. Return('group')