summaryrefslogtreecommitdiff
path: root/components/dfs/SConscript
blob: e13ed292dc7c3602ba9d1f33cae03bd22afe108c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from building import *

# The set of source files associated with this SConscript file.
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'))

Return('group')