rt-thread/bsp/gd32vf103v-eval/drivers/SConscript

20 lines
347 B
Python
Raw Normal View History

2019-07-24 17:03:26 +08:00
# RT-Thread building script for component
from building import *
cwd = GetCurrentDir()
src = Split('''
2019-07-24 17:11:16 +08:00
drv_usart.c
2019-07-24 17:03:26 +08:00
''')
CPPPATH = [cwd]
if GetDepend('RT_USING_PIN'):
src += ['drv_gpio.c']
if GetDepend('RT_USING_I2C'):
src += ['drv_i2c.c']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')