rt-thread-official/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/applications/SConscript

17 lines
332 B
Python
Raw Normal View History

2019-10-24 17:56:09 +08:00
import rtconfig
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
2023-01-09 10:14:23 +08:00
# add for startup script
if rtconfig.PLATFORM in ['gcc']:
2019-10-24 17:56:09 +08:00
CPPDEFINES = ['__START=entry']
else:
CPPDEFINES = []
2023-01-09 10:14:23 +08:00
2019-10-24 17:56:09 +08:00
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
Return('group')