SConscript 694 B

12345678910111213141516171819202122
  1. from building import *
  2. import os
  3. # The set of source files associated with this SConscript file.
  4. src = Glob('src/*.c') + Glob('src/*.cpp')
  5. cwd = GetCurrentDir()
  6. CPPPATH = [cwd + "/include"]
  7. if not GetDepend('RT_USING_SMART'):
  8. SrcRemove(src, ['src/dfs_file_mmap.c'])
  9. group = DefineGroup('Filesystem', src, depend = ['RT_USING_DFS', 'RT_USING_DFS_V2'], CPPPATH = CPPPATH)
  10. if GetDepend('RT_USING_DFS') and GetDepend('RT_USING_DFS_V2'):
  11. # search in the file system implementation
  12. list = os.listdir(cwd)
  13. for item in list:
  14. if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
  15. group = group + SConscript(os.path.join(item, 'SConscript'))
  16. Return('group')