rtt-f030/components/drivers/usb/usbhost/SConscript

35 lines
714 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/core.c
core/driver.c
core/usbhost.c
core/hub.c
""")
if GetDepend('RT_USBH_ADK'):
2013-01-08 22:40:58 +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'):
2013-01-08 22:40:58 +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'):
2013-01-08 22:40:58 +08:00
src += Glob('class/hid.c')
if GetDepend('RT_USBH_HID_MOUSE'):
src += Glob('class/umouse.c')
2013-01-08 22:40:58 +08:00
if GetDepend('RT_USBH_HID_KEYBOARD'):
src += Glob('class/ukbd.c')
2013-01-08 22:40:58 +08:00
CPPPATH = [cwd, cwd + '/class', cwd + '/core', \
cwd + '/include', cwd + '../../../include']
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')