2018-12-17 10:44:30 +08:00
|
|
|
from building import *
|
2021-10-16 03:14:30 +08:00
|
|
|
import os
|
2018-12-17 10:44:30 +08:00
|
|
|
|
2021-10-16 03:14:30 +08:00
|
|
|
cwd = GetCurrentDir()
|
2019-08-31 13:26:55 +08:00
|
|
|
|
|
|
|
src = Split('''
|
|
|
|
main.c
|
|
|
|
''')
|
|
|
|
|
2021-10-19 02:09:03 +08:00
|
|
|
if GetDepend(['BSP_USING_LCD_SAMPLE']):
|
2019-08-31 13:26:55 +08:00
|
|
|
src += ['lcd_sample.c']
|
|
|
|
|
|
|
|
if GetDepend(['PKG_USING_NRF24L01']):
|
|
|
|
src += ['nrf24l01_init.c']
|
|
|
|
|
2021-10-16 03:14:30 +08:00
|
|
|
CPPPATH = [cwd]
|
2018-12-17 10:44:30 +08:00
|
|
|
|
|
|
|
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
2021-10-16 03:14:30 +08:00
|
|
|
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'))
|
|
|
|
|
2018-12-17 10:44:30 +08:00
|
|
|
Return('group')
|