SConscript 532 B

12345678910111213141516171819202122232425
  1. # RT-Thread building script for component
  2. from building import *
  3. cwd = GetCurrentDir()
  4. src = Split('''
  5. src/hal_atomic.c
  6. src/hal_cache.c
  7. src/hal_interrupt.c
  8. src/hal_mem.c
  9. src/hal_mutex.c
  10. src/hal_queue.c
  11. src/hal_sem.c
  12. src/hal_thread.c
  13. src/hal_timer.c
  14. src/hal_cfg.c
  15. ''')
  16. CPPPATH = [cwd, cwd + '/../hal']
  17. LOCAL_CPPDEFINES = []
  18. LOCAL_CCFLAGS = ' -include %s/../hal/kconfig.h' % cwd
  19. group = DefineGroup('hal', src, depend = [''], CPPPATH = CPPPATH, LOCAL_CPPDEFINES = LOCAL_CPPDEFINES, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
  20. Return('group')