rt-thread/bsp/ck802/applications/SConscript

17 lines
415 B
Python
Raw Normal View History

2018-06-05 14:36:29 +08:00
from building import *
import os
2018-06-05 14:36:29 +08:00
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
2021-12-22 11:03:03 +08:00
CFLAGS = ' -c -mistack -ffunction-sections'
2018-06-05 14:36:29 +08:00
2021-12-22 11:03:03 +08:00
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CFLAGS=CFLAGS)
2018-06-05 14:36:29 +08:00
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'))
2018-06-05 14:36:29 +08:00
Return('group')