# RT-Thread building script for componentfrombuildingimport*cwd=GetCurrentDir()src=Split('''board.cdrv_uart.c''')CPPPATH=[cwd]ifGetDepend('RT_USING_PIN'):src+=['drv_gpio.c']ifGetDepend('RT_USING_HWTIMER'):src+=['drv_hw_timer.c']ifGetDepend('RT_USING_CPUTIME'):src+=['drv_cputime.c']ifGetDepend('RT_USING_I2C'):src+=['drv_i2c.c']ifGetDepend('RT_USING_SPI'):src+=['drv_spi.c']ifGetDepend('RT_USING_PWM'):src+=['drv_pwm.c']ifGetDepend('RT_USING_RTC'):src+=['drv_rtc.c']ifGetDepend('RT_USING_WDT'):src+=['drv_wdt.c']group=DefineGroup('Drivers',src,depend=[''],CPPPATH=CPPPATH)Return('group')