20 lines
346 B
Python
20 lines
346 B
Python
|
# RT-Thread building script for component
|
||
|
|
||
|
from building import *
|
||
|
|
||
|
cwd = GetCurrentDir()
|
||
|
src = Split('''
|
||
|
drv_uart.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')
|