1set(srcs) 2set(include) 3set(priv_include) 4set(priv_require) 5 6if(CONFIG_USB_OTG_SUPPORTED) 7 list(APPEND srcs "hcd.c" 8 "hub.c" 9 "usb_helpers.c" 10 "usb_host.c" 11 "usb_private.c" 12 "usbh.c" 13 "usb_phy.c") 14 list(APPEND include "include") 15 list(APPEND priv_include "private_include") 16 list(APPEND priv_require "hal" "driver") 17endif() 18 19idf_component_register(SRCS ${srcs} 20 INCLUDE_DIRS ${include} 21 PRIV_INCLUDE_DIRS ${priv_include} 22 PRIV_REQUIRES ${priv_require} 23 ) 24