SConscript 462 字节
Newer Older
N
nongxiaoming 已提交
1 2 3 4 5
from building import *

cwd  = GetCurrentDir()
objs = []

6 7
for d in os.listdir(os.path.join(cwd, '..')):
    if d not in ('M0', 'M4'):
G
Grissiom 已提交
8 9 10
        path = os.path.join('..', d, 'SConscript')
        if os.path.isfile(os.path.join(cwd, path)):
            objs = objs + SConscript(os.path.join(cwd, path))
11 12

for d in os.listdir(cwd):
G
Grissiom 已提交
13 14
    p = os.path.join(d, 'SConscript');
    if os.path.isfile(os.path.join(cwd, p)):
15
        objs = objs + SConscript(p)
N
nongxiaoming 已提交
16 17

Return('objs')