SConscript 388 B

123456789101112131415161718
  1. from building import *
  2. cwd = GetCurrentDir()
  3. CPPPATH = [cwd + '/../include']
  4. src = Split('''
  5. cputime.c
  6. cputimer.c
  7. ''')
  8. if GetDepend('RT_USING_CPUTIME_CORTEXM'):
  9. src += ['cputime_cortexm.c']
  10. if GetDepend('RT_USING_CPUTIME_RISCV'):
  11. src += ['cputime_riscv.c']
  12. group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_CPUTIME'], CPPPATH = CPPPATH)
  13. Return('group')