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
|
|
|
|
2021-12-13 11:36:51 +08:00
|
|
|
src = ['main.c']
|
2019-08-31 13:26:55 +08:00
|
|
|
|
|
|
|
if GetDepend(['PKG_USING_NRF24L01']):
|
2021-12-13 11:36:51 +08:00
|
|
|
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)
|
2021-10-25 01:08:48 +08:00
|
|
|
for item in list:
|
|
|
|
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
|
|
|
group = group + SConscript(os.path.join(item, 'SConscript'))
|
2021-10-16 03:14:30 +08:00
|
|
|
|
2018-12-17 10:44:30 +08:00
|
|
|
Return('group')
|