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