|
|
@@ -1,13 +1,15 @@
|
|
|
-Import('RTT_ROOT')
|
|
|
-Import('rtconfig')
|
|
|
from building import *
|
|
|
+import os
|
|
|
|
|
|
-cwd = os.path.join(str(Dir('#')), 'applications')
|
|
|
-src = Glob('*.c')
|
|
|
-CPPPATH = [cwd, str(Dir('#'))]
|
|
|
+cwd = GetCurrentDir()
|
|
|
+src = Glob('*.c')
|
|
|
+CPPPATH = [cwd]
|
|
|
|
|
|
-group = DefineGroup('Applications', src,
|
|
|
- depend = [''], CPPPATH = CPPPATH,
|
|
|
- CPPDEFINES = ['BOOT_PROCESSOR'])
|
|
|
+group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = ['BOOT_PROCESSOR'])
|
|
|
+
|
|
|
+list = os.listdir(cwd)
|
|
|
+for item in list:
|
|
|
+ if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
|
|
+ group = group + SConscript(os.path.join(item, 'SConscript'))
|
|
|
|
|
|
Return('group')
|