mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-15 06:19:22 +08:00
16 lines
279 B
Python
16 lines
279 B
Python
# for module compiling
|
|
import os
|
|
from building import *
|
|
|
|
objs = []
|
|
cwd = GetCurrentDir()
|
|
list = os.listdir(cwd)
|
|
|
|
for item in list:
|
|
|
|
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
|
objs = objs + SConscript(os.path.join(item, 'SConscript'))
|
|
|
|
Return('objs')
|
|
|