ad309699d6
* [add]添加bsp/stm32/stm32u575-st-nucleo外设 * [fix]修改源码格式使之符合RT-Thread代码规范 * [fix]修改相关报错问题 * [fix]修改README.md * [fix]删除无效代码及添加相关注释
19 lines
479 B
Python
19 lines
479 B
Python
from building import *
|
|
import os
|
|
|
|
cwd = GetCurrentDir()
|
|
CPPPATH = [cwd]
|
|
src = Glob('*.c')
|
|
|
|
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')
|