SConscript 277 字节
Newer Older
1 2
from building import *

D
dzzxzz@gmail.com 已提交
3 4 5
cwd  = GetCurrentDir()
objs = []
list = os.listdir(cwd)
6

D
dzzxzz@gmail.com 已提交
7 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'))

Return('objs')