SConscript 319 B

12345678910111213141516
  1. from building import *
  2. Import('rtconfig')
  3. src = []
  4. cwd = GetCurrentDir()
  5. if GetDepend('PKG_USING_RAMDISK'):
  6. src += Glob('src/*.c')
  7. # add include path.
  8. path = [cwd + '/inc']
  9. # add src and include to group.
  10. group = DefineGroup('ramdisk', src, depend = ['PKG_USING_RAMDISK'], CPPPATH = path)
  11. Return('group')