2021-09-21 18:24:52 +08:00

17 lines
340 B
Python

import rtconfig
from building import *
cwd = GetCurrentDir()
src = Glob('main.c')
CPPPATH = [cwd]
# add for startup script
if rtconfig.CROSS_TOOL == 'gcc':
CPPDEFINES = ['__START=entry']
else:
CPPDEFINES = []
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
Return('group')