1# SPDX-License-Identifier: Apache-2.0
2
3zephyr_library()
4zephyr_library_property(ALLOW_EMPTY TRUE)
5
6# zephyr-keep-sorted-start
7zephyr_library_sources_ifdef(CONFIG_INPUT_ANALOG_AXIS input_analog_axis.c)
8zephyr_library_sources_ifdef(CONFIG_INPUT_ANALOG_AXIS_SETTINGS input_analog_axis_settings.c)
9zephyr_library_sources_ifdef(CONFIG_INPUT_CAP1203 input_cap1203.c)
10zephyr_library_sources_ifdef(CONFIG_INPUT_CST816S input_cst816s.c)
11zephyr_library_sources_ifdef(CONFIG_INPUT_ESP32_TOUCH_SENSOR input_esp32_touch_sensor.c)
12zephyr_library_sources_ifdef(CONFIG_INPUT_FT5336 input_ft5336.c)
13zephyr_library_sources_ifdef(CONFIG_INPUT_GPIO_KBD_MATRIX input_gpio_kbd_matrix.c)
14zephyr_library_sources_ifdef(CONFIG_INPUT_GPIO_KEYS input_gpio_keys.c)
15zephyr_library_sources_ifdef(CONFIG_INPUT_GPIO_QDEC input_gpio_qdec.c)
16zephyr_library_sources_ifdef(CONFIG_INPUT_GT911 input_gt911.c)
17zephyr_library_sources_ifdef(CONFIG_INPUT_ITE_IT8XXX2_KBD input_ite_it8xxx2_kbd.c)
18zephyr_library_sources_ifdef(CONFIG_INPUT_KBD_MATRIX input_kbd_matrix.c)
19zephyr_library_sources_ifdef(CONFIG_INPUT_NPCX_KBD input_npcx_kbd.c)
20zephyr_library_sources_ifdef(CONFIG_INPUT_STMPE811 input_stmpe811.c)
21zephyr_library_sources_ifdef(CONFIG_INPUT_XPT2046 input_xpt2046.c)
22# zephyr-keep-sorted-stop
23
24if (CONFIG_INPUT_SDL_TOUCH)
25  zephyr_library_sources(input_sdl_touch.c)
26  if (CONFIG_NATIVE_APPLICATION)
27    zephyr_library_sources(input_sdl_touch_bottom.c)
28  else()
29    target_sources(native_simulator INTERFACE input_sdl_touch_bottom.c)
30  endif()
31endif()
32
33if(CONFIG_NATIVE_LINUX_EVDEV)
34  if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Linux)
35    zephyr_library_sources(linux_evdev.c)
36    if (CONFIG_NATIVE_APPLICATION)
37      zephyr_library_sources(linux_evdev_bottom.c)
38    else()
39      target_sources(native_simulator INTERFACE linux_evdev_bottom.c)
40    endif()
41  else()
42    message(FATAL_ERROR "CONFIG_NATIVE_LINUX_EVDEV only available on Linux")
43  endif()
44endif()
45