rt-thread/bsp/imxrt/imxrt1064-nxp-evk/applications/SConscript

23 lines
515 B
Python
Raw Normal View History

2019-06-17 18:04:50 +08:00
import rtconfig
from building import *
import os
2019-06-17 18:04:50 +08:00
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
# add for startup script
if rtconfig.PLATFORM in ['gcc']:
2019-06-17 18:04:50 +08:00
CPPDEFINES = ['__START=entry']
else:
CPPDEFINES = []
2019-06-17 18:04:50 +08:00
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
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-06-17 18:04:50 +08:00
Return('group')