2022-11-10 22:22:48 +08:00
|
|
|
# RT-Thread building script for bridge
|
|
|
|
|
|
|
|
import os
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
objs = []
|
2023-11-21 17:42:23 +08:00
|
|
|
folder_list = os.listdir(cwd)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
2023-11-21 17:42:23 +08:00
|
|
|
for folder in folder_list:
|
|
|
|
path = os.path.join(cwd, folder)
|
2022-11-10 22:22:48 +08:00
|
|
|
if os.path.isfile(os.path.join(path, 'SConscript')):
|
2023-11-21 17:42:23 +08:00
|
|
|
objs = objs + SConscript(os.path.join(folder, 'SConscript'))
|
2022-11-10 22:22:48 +08:00
|
|
|
|
|
|
|
Return('objs')
|