4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-17 00:53:31 +08:00
2018-09-20 23:10:27 +08:00

17 lines
355 B
Python

Import('rtconfig')
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd, str(Dir('#'))]
# 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')