2010-11-20 20:31:00 +08:00
|
|
|
# for module compiling
|
|
|
|
import os
|
2012-07-22 19:17:04 +08:00
|
|
|
Import('remove_components')
|
2012-08-25 10:05:56 +08:00
|
|
|
from building import *
|
2010-04-16 14:19:59 +08:00
|
|
|
|
2010-11-20 20:31:00 +08:00
|
|
|
objs = []
|
2012-08-25 10:05:56 +08:00
|
|
|
cwd = GetCurrentDir()
|
|
|
|
list = os.listdir(cwd)
|
2010-04-18 23:27:13 +08:00
|
|
|
|
2012-08-25 10:05:56 +08:00
|
|
|
for item in list:
|
|
|
|
if item in remove_components:
|
2012-07-22 19:17:04 +08:00
|
|
|
continue
|
2012-08-25 10:05:56 +08:00
|
|
|
|
|
|
|
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
|
|
|
objs = objs + SConscript(os.path.join(item, 'SConscript'))
|
2010-10-02 20:15:48 +08:00
|
|
|
|
2010-04-18 23:27:13 +08:00
|
|
|
Return('objs')
|