You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
514 B
19 lines
514 B
5 months ago
|
# 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')
|