mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-28 10:00:24 +00:00
22 lines
482 B
Python
22 lines
482 B
Python
# for module compiling
|
|
import os
|
|
Import('remove_components')
|
|
from building import *
|
|
|
|
objs = []
|
|
cwd = GetCurrentDir()
|
|
entries = os.listdir(cwd)
|
|
|
|
for item in entries:
|
|
if item in remove_components:
|
|
continue
|
|
|
|
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
|
result = SConscript(os.path.join(item, 'SConscript'))
|
|
if isinstance(result, (list, tuple)):
|
|
objs.extend(result)
|
|
else:
|
|
objs.append(result)
|
|
|
|
Return('objs')
|