|
@@ -1,6 +1,7 @@
|
|
|
from building import *
|
|
|
+import os
|
|
|
|
|
|
-cwd = GetCurrentDir()
|
|
|
+cwd = GetCurrentDir()
|
|
|
|
|
|
src = Split('''
|
|
|
main.c
|
|
@@ -12,8 +13,14 @@ if GetDepend(['BSP_USING_SPI_LCD']):
|
|
|
if GetDepend(['PKG_USING_NRF24L01']):
|
|
|
src += ['nrf24l01_init.c']
|
|
|
|
|
|
-CPPPATH = [str(Dir('#')), cwd]
|
|
|
+CPPPATH = [cwd]
|
|
|
|
|
|
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
+list = os.listdir(cwd)
|
|
|
+for d in list:
|
|
|
+ path = os.path.join(cwd, d)
|
|
|
+ if os.path.isfile(os.path.join(path, 'SConscript')):
|
|
|
+ group = group + SConscript(os.path.join(d, 'SConscript'))
|
|
|
+
|
|
|
Return('group')
|