rt-thread-official/bsp/stm32/stm32f072-st-nucleo/applications/SConscript

19 lines
470 B
Python
Raw Normal View History

2019-05-30 18:00:03 +08:00
from building import *
import os
2019-05-30 18:00:03 +08:00
cwd = GetCurrentDir()
2019-06-06 07:43:17 +08:00
CPPPATH = [cwd]
src = ['main.c']
2019-05-30 18:00:03 +08:00
2022-05-20 14:23:46 +08:00
if GetDepend(['PKG_USING_RTDUINO']) and not GetDepend(['RTDUINO_NO_SETUP_LOOP']):
src += ['arduino_main.cpp']
2019-05-30 18:00:03 +08:00
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'))
2019-05-30 18:00:03 +08:00
Return('group')