# RT-Thread building script for component from building import * cwd = GetCurrentDir() src = Glob('*.c') + Glob('*.cpp') CPPPATH = [cwd] if not (GetDepend('BSP_USING_HDMI_DISPLAY') or GetDepend('BSP_USING_DSI_DISPLAY')): SrcRemove(src, ['drv_hdmi.c']) if not GetDepend('BSP_USING_ILI9486'): SrcRemove(src, ['drv_ili9486.c']) if not GetDepend('USING_LCD_CONSOLE'): SrcRemove(src, ['lcd_console.c']) group = DefineGroup('drv_lcd', src, depend = ['BSP_USING_LCD'], CPPPATH = CPPPATH) Return('group')