2013-01-08 22:40:58 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
# The set of source files associated with this SConscript file.
|
2015-04-03 22:26:18 +08:00
|
|
|
src = Glob('src/*.c')
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
CPPPATH = [cwd + "/include"]
|
|
|
|
|
|
|
|
group = DefineGroup('Filesystem', src, depend = ['RT_USING_DFS'], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
if GetDepend('RT_USING_DFS'):
|
|
|
|
# search in the file system implementation
|
|
|
|
list = os.listdir(cwd)
|
|
|
|
|
|
|
|
for item in list:
|
|
|
|
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
|
|
|
group = group + SConscript(os.path.join(item, 'SConscript'))
|
2013-01-08 22:40:58 +08:00
|
|
|
|
|
|
|
Return('group')
|