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_ADC_KEYS input_adc_keys.c) 8zephyr_library_sources_ifdef(CONFIG_INPUT_ANALOG_AXIS input_analog_axis.c) 9zephyr_library_sources_ifdef(CONFIG_INPUT_ANALOG_AXIS_SETTINGS input_analog_axis_settings.c) 10zephyr_library_sources_ifdef(CONFIG_INPUT_CAP12XX input_cap12xx.c) 11zephyr_library_sources_ifdef(CONFIG_INPUT_CF1133 input_cf1133.c) 12zephyr_library_sources_ifdef(CONFIG_INPUT_CHSC6X input_chsc6x.c) 13zephyr_library_sources_ifdef(CONFIG_INPUT_CST816S input_cst816s.c) 14zephyr_library_sources_ifdef(CONFIG_INPUT_ESP32_TOUCH_SENSOR input_esp32_touch_sensor.c) 15zephyr_library_sources_ifdef(CONFIG_INPUT_FT5336 input_ft5336.c) 16zephyr_library_sources_ifdef(CONFIG_INPUT_GPIO_KBD_MATRIX input_gpio_kbd_matrix.c) 17zephyr_library_sources_ifdef(CONFIG_INPUT_GPIO_KEYS input_gpio_keys.c) 18zephyr_library_sources_ifdef(CONFIG_INPUT_GPIO_QDEC input_gpio_qdec.c) 19zephyr_library_sources_ifdef(CONFIG_INPUT_GT911 input_gt911.c) 20zephyr_library_sources_ifdef(CONFIG_INPUT_ILI2132A input_ili2132a.c) 21zephyr_library_sources_ifdef(CONFIG_INPUT_ITE_IT8801_KBD input_ite_it8801_kbd.c) 22zephyr_library_sources_ifdef(CONFIG_INPUT_ITE_IT8XXX2_KBD input_ite_it8xxx2_kbd.c) 23zephyr_library_sources_ifdef(CONFIG_INPUT_KBD_MATRIX input_kbd_matrix.c) 24zephyr_library_sources_ifdef(CONFIG_INPUT_NPCX_KBD input_npcx_kbd.c) 25zephyr_library_sources_ifdef(CONFIG_INPUT_NUNCHUK input_nunchuk.c) 26zephyr_library_sources_ifdef(CONFIG_INPUT_PAT912X input_pat912x.c) 27zephyr_library_sources_ifdef(CONFIG_INPUT_PAW32XX input_paw32xx.c) 28zephyr_library_sources_ifdef(CONFIG_INPUT_PINNACLE input_pinnacle.c) 29zephyr_library_sources_ifdef(CONFIG_INPUT_PMW3610 input_pmw3610.c) 30zephyr_library_sources_ifdef(CONFIG_INPUT_SBUS input_sbus.c) 31zephyr_library_sources_ifdef(CONFIG_INPUT_STMPE811 input_stmpe811.c) 32zephyr_library_sources_ifdef(CONFIG_INPUT_TOUCH input_touch.c) 33zephyr_library_sources_ifdef(CONFIG_INPUT_XEC_KBD input_xec_kbd.c) 34zephyr_library_sources_ifdef(CONFIG_INPUT_XPT2046 input_xpt2046.c) 35# zephyr-keep-sorted-stop 36 37if (CONFIG_INPUT_SDL_TOUCH) 38 zephyr_library_sources(input_sdl_touch.c) 39 if (CONFIG_NATIVE_APPLICATION) 40 zephyr_library_sources(input_sdl_touch_bottom.c) 41 else() 42 target_sources(native_simulator INTERFACE input_sdl_touch_bottom.c) 43 endif() 44endif() 45 46if(CONFIG_NATIVE_LINUX_EVDEV) 47 if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Linux) 48 zephyr_library_sources(linux_evdev.c) 49 if (CONFIG_NATIVE_APPLICATION) 50 zephyr_library_sources(linux_evdev_bottom.c) 51 else() 52 target_sources(native_simulator INTERFACE linux_evdev_bottom.c) 53 endif() 54 else() 55 message(FATAL_ERROR "CONFIG_NATIVE_LINUX_EVDEV only available on Linux") 56 endif() 57endif() 58