2014-07-13 14:13:39 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
objs = []
|
|
|
|
|
2015-01-05 11:19:42 +08:00
|
|
|
for d in os.listdir(os.path.join(cwd, '..')):
|
|
|
|
if d not in ('M0', 'M4'):
|
2015-01-07 10:20:50 +08:00
|
|
|
path = os.path.join('..', d, 'SConscript')
|
|
|
|
if os.path.isfile(os.path.join(cwd, path)):
|
|
|
|
objs = objs + SConscript(os.path.join(cwd, path))
|
2015-01-05 11:19:42 +08:00
|
|
|
|
|
|
|
for d in os.listdir(cwd):
|
2015-01-07 10:20:50 +08:00
|
|
|
p = os.path.join(d, 'SConscript');
|
|
|
|
if os.path.isfile(os.path.join(cwd, p)):
|
2015-01-05 11:19:42 +08:00
|
|
|
objs = objs + SConscript(p)
|
2014-07-13 14:13:39 +08:00
|
|
|
|
|
|
|
Return('objs')
|