rt-thread-official/bsp/tkm32F499/drivers/SConscript

31 lines
555 B
Python
Raw Permalink Normal View History

2021-10-14 18:50:35 +08:00
# RT-Thread building script for component
from building import *
cwd = GetCurrentDir()
# add the general drivers.
src = Split("""
board.c
""")
# add serial driver code
if GetDepend('RT_USING_SERIAL'):
src += ['drv_uart.c']
# add gpio driver code
if GetDepend(['RT_USING_PIN']):
src += ['drv_gpio.c']
2021-10-15 00:49:17 +08:00
# add lcd driver code
if GetDepend(['BSP_USING_LCD']):
src += Glob('./lcd/*.c')
src += ['drv_lcd.c']
2021-10-14 18:50:35 +08:00
CPPPATH = [cwd]
2021-10-15 00:49:17 +08:00
CPPPATH += [cwd+'/lcd']
2021-10-14 18:50:35 +08:00
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')