rt-thread/components/legacy/usb/usbhost/SConscript

35 lines
746 B
Python
Raw Normal View History

2013-01-08 22:40:58 +08:00
Import('RTT_ROOT')
from building import *
cwd = GetCurrentDir()
src = Split("""
core/usbhost_core.c
2013-01-08 22:40:58 +08:00
core/driver.c
core/usbhost.c
core/hub.c
""")
if GetDepend('RT_USBH_ADK'):
2023-01-09 10:14:23 +08:00
src += Glob('class/adk.c')
src += Glob('class/adkapp.c')
2013-01-08 22:40:58 +08:00
if GetDepend('RT_USBH_MSTORAGE'):
2023-01-09 10:14:23 +08:00
src += Glob('class/mass.c')
src += Glob('class/udisk.c')
2013-01-08 22:40:58 +08:00
if GetDepend('RT_USBH_HID'):
2023-01-09 10:14:23 +08:00
src += Glob('class/hid.c')
2013-01-08 22:40:58 +08:00
if GetDepend('RT_USBH_HID_MOUSE'):
2023-01-09 10:14:23 +08:00
src += Glob('class/umouse.c')
2013-01-08 22:40:58 +08:00
if GetDepend('RT_USBH_HID_KEYBOARD'):
2023-01-09 10:14:23 +08:00
src += Glob('class/ukbd.c')
2013-01-08 22:40:58 +08:00
CPPPATH = [cwd, cwd + '/class', cwd + '/core', \
2023-01-09 10:14:23 +08:00
cwd + '/include', cwd + '../../../include']
2013-01-08 22:40:58 +08:00
2017-12-13 15:58:11 +08:00
group = DefineGroup('rt_usbh', src, depend = ['RT_USING_USB_HOST'], CPPPATH = CPPPATH)
2013-01-08 22:40:58 +08:00
Return('group')