2020-10-16 11:31:17 +08:00
|
|
|
from building import *
|
2021-10-16 03:14:30 +08:00
|
|
|
import os
|
2020-10-16 11:31:17 +08:00
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.c')
|
2021-10-16 03:14:30 +08:00
|
|
|
CPPPATH = [cwd]
|
2020-10-16 11:31:17 +08:00
|
|
|
|
2022-08-05 23:51:40 +08:00
|
|
|
if GetDepend(['PKG_USING_RTDUINO']) and not GetDepend(['RTDUINO_NO_SETUP_LOOP']):
|
|
|
|
src += ['arduino_main.cpp']
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2020-10-16 11:31:17 +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
|
|
|
|
2020-10-16 11:31:17 +08:00
|
|
|
Return('group')
|