Skip to content

Commit

Permalink
Merge pull request #193 from lvgl/check_for_esp_platform
Browse files Browse the repository at this point in the history
Check for ESP_PLATFORM on CMakeLists.txt files
  • Loading branch information
C47D authored Sep 2, 2020
2 parents 0c434c0 + bec7974 commit cf6bc90
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/lv_examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
if(ESP_PLATFORM)

file(GLOB_RECURSE SOURCES lv_examples/*.c)

idf_component_register(SRCS ${SOURCES}
INCLUDE_DIRS .
REQUIRES lvgl)

endif()
4 changes: 4 additions & 0 deletions components/lvgl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if(ESP_PLATFORM)

file(GLOB_RECURSE SOURCES lvgl/src/*.c)
idf_component_register(SRCS ${SOURCES}
INCLUDE_DIRS . lvgl)

target_compile_definitions(${COMPONENT_LIB} INTERFACE LV_CONF_INCLUDE_SIMPLE=1)

endif()
4 changes: 4 additions & 0 deletions components/lvgl_esp32_drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if(ESP_PLATFORM)

file(GLOB SOURCES *.c)

idf_component_register(SRCS ${SOURCES}
INCLUDE_DIRS .
REQUIRES lvgl)

endif()
4 changes: 4 additions & 0 deletions components/lvgl_esp32_drivers/lvgl_tft/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
if(ESP_PLATFORM)

set(SOURCES "disp_driver.c")

# Include only the source file of the selected
Expand Down Expand Up @@ -45,3 +47,5 @@ message("SOURCES contents: " "${SOURCES}")
idf_component_register(SRCS ${SOURCES}
INCLUDE_DIRS .
REQUIRES lvgl)

endif()
4 changes: 4 additions & 0 deletions components/lvgl_esp32_drivers/lvgl_touch/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
if(ESP_PLATFORM)

set(SOURCES "touch_driver.c")

# Include only the source file of the selected
Expand Down Expand Up @@ -28,3 +30,5 @@ message("SOURCES contents: " "${SOURCES}")
idf_component_register(SRCS ${SOURCES}
INCLUDE_DIRS .
REQUIRES lvgl)

endif()

0 comments on commit cf6bc90

Please sign in to comment.