APP_Framework/Applications/:add list function base on rt-thread.

This commit is contained in:
chunyexixiaoyu
2021-09-24 16:01:00 +08:00
parent 2e209ef174
commit d008cbf09f
3 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
import os
Import('RTT_ROOT')
from building import *
cwd = GetCurrentDir()
objs = []
list = os.listdir(cwd)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + SConscript(os.path.join(path, 'SConscript'))
Return('objs')