rsoc/Day1/SConscript

19 lines
479 B
Python
Raw Permalink Normal View History

2024-07-22 20:00:29 +08:00
from building import *
import os
2024-07-23 18:05:33 +08:00
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
2024-07-22 20:00:29 +08:00
2024-07-23 18:05:33 +08:00
if GetDepend(['PKG_USING_RTDUINO']) and not GetDepend(['RTDUINO_NO_SETUP_LOOP']):
src += ['arduino_main.cpp']
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
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')