SConscript 713 B

12345678910111213141516171819202122232425262728
  1. from building import *
  2. cwd = GetCurrentDir()
  3. src = []
  4. inc = [cwd + '/inc']
  5. if GetDepend(['RT_USING_CLOCK_TIME']):
  6. # Core clock_time device implementation
  7. src += ['src/clock_time.c']
  8. # High-resolution timer support
  9. if GetDepend(['RT_USING_CLOCK_HRTIMER']):
  10. src += ['src/hrtimer.c']
  11. # CPU time APIs
  12. if GetDepend(['RT_USING_CLOCK_CPUTIME']):
  13. src += ['src/clock_time_cputime.c']
  14. # Boottime APIs
  15. if GetDepend(['RT_USING_CLOCK_BOOTTIME']):
  16. src += ['src/clock_time_boottime.c']
  17. # Tick-based fallback implementation
  18. src += ['src/clock_time_tick.c']
  19. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = inc)
  20. Return('group')