SConscript 297 字节
Newer Older
Y
yanmowudi 已提交
1 2
# for module compiling
import os
Z
zohar123 已提交
3 4 5 6 7
from building import *

cwd = GetCurrentDir()
objs = []
list = os.listdir(cwd)
Y
yanmowudi 已提交
8

Z
zohar123 已提交
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'))
Y
yanmowudi 已提交
13

Z
zohar123 已提交
14
Return('objs')