SConscript 291 字节
Newer Older
1 2
# for module compiling
import os
M
Ming, Bai 已提交
3 4
Import('RTT_ROOT')

5 6 7
cwd = str(Dir('#'))
objs = []
list = os.listdir(cwd)
M
Ming, Bai 已提交
8

9 10 11 12
for d in list:
    path = os.path.join(cwd, d)
    if os.path.isfile(os.path.join(path, 'SConscript')):
        objs = objs + SConscript(os.path.join(d, 'SConscript'))
M
Ming, Bai 已提交
13

14
Return('objs')