4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-17 05:43:31 +08:00
tanek liang c3ff9772b7 [bsp] fix stm32f429-apollo iar project build error:
- timespec has already been declared
- <sys/socket.h> not found
2017-11-10 18:12:07 +08:00

24 lines
474 B
Python

import rtconfig
from building import *
cwd = GetCurrentDir()
CPPPATH = [cwd, str(Dir('#'))]
src = Split("""
application.c
startup.c
""")
# add for startup script
if rtconfig.CROSS_TOOL == 'iar':
CPPDEFINES = ['_TIMESPEC_DEFINED']
else:
CPPDEFINES = []
# add UI engine demo.
if GetDepend('RT_USING_GUIENGINE'):
src += ['rtgui_demo.c']
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
Return('group')