2023-08-28 02:02:08 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
|
|
if(${target} STREQUAL "linux")
|
|
|
|
return() # This component is not supported by the POSIX/Linux simulator
|
|
|
|
endif()
|
|
|
|
|
2022-07-28 00:19:07 -04:00
|
|
|
set(TOUCH_ELEMENT_COMPATIBLE_TARGETS "esp32s2" "esp32s3")
|
|
|
|
|
|
|
|
if(IDF_TARGET IN_LIST TOUCH_ELEMENT_COMPATIBLE_TARGETS)
|
2020-12-29 22:57:59 -05:00
|
|
|
idf_component_register(SRCS "touch_element.c"
|
|
|
|
"touch_button.c"
|
|
|
|
"touch_slider.c"
|
|
|
|
"touch_matrix.c"
|
|
|
|
INCLUDE_DIRS include
|
2022-04-16 05:32:22 -04:00
|
|
|
REQUIRES driver
|
|
|
|
PRIV_REQUIRES esp_timer)
|
2020-12-29 22:57:59 -05:00
|
|
|
endif()
|