4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-16 18:43:31 +08:00
2019-07-24 17:31:26 +08:00

20 lines
347 B
Python

# RT-Thread building script for component
from building import *
cwd = GetCurrentDir()
src = Split('''
drv_usart.c
''')
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')