blob: 11c24849bce45f65c3175b75bcd48f0468292f36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# RT-Thread building script for component
Import('RTT_ROOT')
Import('rtconfig')
from building import *
# get current directory
cwd = GetCurrentDir()
# add the general drivers.
src = Split("""
""")
# The set of source files associated with this SConscript file.
if GetDepend('BSP_USING_USBOTG'):
src += ['src/usb_core.c']
if GetDepend('RT_USING_USB_DEVICE'):
src += ['src/usbd_core.c', 'src/usbd_int.c', 'src/usbd_sdr.c']
if GetDepend('RT_USING_USB_HOST'):
src += ['src/usbh_core.c', 'src/usbh_int.c', 'src/usbh_ctrl.c']
CPPPATH = [cwd + '/inc']
group = DefineGroup('usbotg_library', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
|