mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 12:34:33 +00:00
20 lines
435 B
Python
20 lines
435 B
Python
# for module compiling
|
|
import os
|
|
Import('RTT_ROOT')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
objs = []
|
|
list = os.listdir(cwd)
|
|
|
|
for item in list:
|
|
path = os.path.join(cwd, item)
|
|
if item == 'libraries' or not os.path.isdir(path):
|
|
continue
|
|
|
|
sconscript_path = os.path.join(path, 'SConscript')
|
|
if os.path.isfile(sconscript_path):
|
|
objs.extend(SConscript(os.path.join(item, 'SConscript')))
|
|
|
|
Return('objs')
|