From 4e39747e82f41eefc0ade951049097503403128f Mon Sep 17 00:00:00 2001 From: Vilem Zavodny Date: Tue, 6 Jun 2023 12:03:50 +0200 Subject: [PATCH] esp_lvgl_port: Removed touch dependency from LVGL port. --- components/esp_lvgl_port/CMakeLists.txt | 9 +++++++++ components/esp_lvgl_port/idf_component.yml | 4 +--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/components/esp_lvgl_port/CMakeLists.txt b/components/esp_lvgl_port/CMakeLists.txt index 6f24e0c9..3247aa60 100644 --- a/components/esp_lvgl_port/CMakeLists.txt +++ b/components/esp_lvgl_port/CMakeLists.txt @@ -3,4 +3,13 @@ idf_component_register(SRCS "esp_lvgl_port.c" INCLUDE_DIRS "include" REQUIRES "e idf_build_get_property(build_components BUILD_COMPONENTS) if("espressif__button" IN_LIST build_components) target_link_libraries(${COMPONENT_LIB} PRIVATE idf::espressif__button) +endif() +if("button" IN_LIST build_components) + target_link_libraries(${COMPONENT_LIB} PRIVATE idf::button) +endif() +if("espressif__esp_lcd_touch" IN_LIST build_components) + target_link_libraries(${COMPONENT_LIB} PRIVATE idf::espressif__esp_lcd_touch) +endif() +if("esp_lcd_touch" IN_LIST build_components) + target_link_libraries(${COMPONENT_LIB} PRIVATE idf::esp_lcd_touch) endif() \ No newline at end of file diff --git a/components/esp_lvgl_port/idf_component.yml b/components/esp_lvgl_port/idf_component.yml index c4f88ea8..6340a014 100644 --- a/components/esp_lvgl_port/idf_component.yml +++ b/components/esp_lvgl_port/idf_component.yml @@ -1,4 +1,4 @@ -version: "1.1.0" +version: "1.1.1" description: ESP LVGL port url: https://github.com/espressif/esp-bsp/tree/master/components/esp_lvgl_port dependencies: @@ -6,5 +6,3 @@ dependencies: lvgl/lvgl: version: "^8" public: true - esp_lcd_touch: - version: "^1.0"