2019-06-12 15:01:12 +08:00
|
|
|
import rtconfig
|
2018-10-10 09:26:50 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.c')
|
2019-06-12 15:01:12 +08:00
|
|
|
CPPPATH = [cwd]
|
2018-10-10 09:26:50 +08:00
|
|
|
|
|
|
|
# add for startup script
|
2022-04-20 09:56:04 +08:00
|
|
|
if rtconfig.PLATFORM == 'gcc':
|
2018-10-10 09:26:50 +08:00
|
|
|
CPPDEFINES = ['__START=entry']
|
|
|
|
else:
|
|
|
|
CPPDEFINES = []
|
|
|
|
|
|
|
|
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|