1set(srcs "src/esp_hidd.c"
2         "src/esp_hidh.c"
3         "src/esp_hid_common.c")
4
5set(include_dirs "include")
6set(priv_include_dirs "private")
7
8if(CONFIG_BT_ENABLED)
9    if(CONFIG_BT_BLUEDROID_ENABLED)
10        list(APPEND srcs
11             "src/ble_hidd.c"
12             "src/ble_hidh.c"
13             "src/bt_hidh.c"
14             "src/bt_hidd.c")
15    endif()
16endif()
17
18idf_component_register(SRCS "${srcs}"
19                       INCLUDE_DIRS "${include_dirs}"
20                       PRIV_INCLUDE_DIRS "${priv_include_dirs}"
21                       REQUIRES esp_event bt)
22