mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-28 18:10:21 +00:00
add raspi4 dsi and xpt2046 touch driver
This commit is contained in:
16
bsp/raspberry-pi/raspi4-32/driver/touch/Sconscript
Normal file
16
bsp/raspberry-pi/raspi4-32/driver/touch/Sconscript
Normal file
@@ -0,0 +1,16 @@
|
||||
# RT-Thread building script for component
|
||||
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = Glob('*.c') + Glob('*.cpp')
|
||||
CPPPATH = [cwd]
|
||||
|
||||
if not GetDepend('BSP_USING_XPT_TOUCH_DEV'):
|
||||
SrcRemove(src, ['drv_xpt2046.c'])
|
||||
if not GetDepend('BSP_USING_DSI_TOUCH_DEV'):
|
||||
SrcRemove(src, ['drv_dsi_touch.c'])
|
||||
|
||||
group = DefineGroup('drv_touch', src, depend = ['BSP_USING_TOUCH'], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
Reference in New Issue
Block a user