SConscript 913 B

1234567891011121314151617181920212223
  1. import os
  2. from building import *
  3. cwd = GetCurrentDir()
  4. src = Glob('*.c')
  5. src += Glob(os.path.join("portable", "rt-thread", "*.c"))
  6. CPPPATH = [os.path.join(cwd, "include", "freertos"), os.path.join(cwd, "include"), os.path.join(cwd, "portable", "rt-thread")]
  7. if GetDepend('PKG_FREERTOS_USING_MEMMANG_HEAP1'):
  8. src += [os.path.join("portable", "MemMang", "heap_1.c")]
  9. elif GetDepend('PKG_FREERTOS_USING_MEMMANG_HEAP2'):
  10. src += [os.path.join("portable", "MemMang", "heap_2.c")]
  11. elif GetDepend('PKG_FREERTOS_USING_MEMMANG_HEAP3'):
  12. src += [os.path.join("portable", "MemMang", "heap_3.c")]
  13. elif GetDepend('PKG_FREERTOS_USING_MEMMANG_HEAP4'):
  14. src += [os.path.join("portable", "MemMang", "heap_4.c")]
  15. elif GetDepend('PKG_FREERTOS_USING_MEMMANG_HEAP5'):
  16. src += [os.path.join("portable", "MemMang", "heap_5.c")]
  17. group = DefineGroup('FreeRTOS', src, depend = [''], CPPPATH = CPPPATH)
  18. Return('group')