Skip to content

Commit

Permalink
cleanup removed components
Browse files Browse the repository at this point in the history
  • Loading branch information
ogghst committed Aug 28, 2022
1 parent 5ad1ffe commit cf411a4
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 374 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ set(ENV{IDF_LIB_PATH} "ext/esp-idf-lib/components")
#uncomment if you don't want to use sparkplug-b protocol
set(ENV{TAHU_LIB_PATH} "ext/tahu_components")

#uncomment if you are using ESP_CRON. makes the build process slower
set(ENV{CRON_LIB_PATH} "ext/esp_cron_components")

#uncomment if you are using LVGL. makes the build process slower
#set(ENV{LVGL_PATH} "ext/lvgl/lvgl ext/lvgl/lvgl_esp32_drivers")

set(EXTRA_COMPONENT_DIRS $ENV{IDF_LIB_PATH} $ENV{LVGL_PATH} $ENV{COLLECTIONS_C_PATH} $ENV{CRON_LIB_PATH} $ENV{TAHU_LIB_PATH})
set(EXTRA_COMPONENT_DIRS $ENV{IDF_LIB_PATH} $ENV{LVGL_PATH} $ENV{COLLECTIONS_C_PATH})

include($ENV{IDF_PATH}/tools/cmake/project.cmake)

Expand Down
15 changes: 1 addition & 14 deletions components/grownode/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,26 +122,13 @@ else()
"lvgl" "lvgl_esp32_drivers"
)
endif()

if(DEFINED ENV{CRON_LIB_PATH})
list(APPEND components_required
"esp_cron"
)
endif()


if(DEFINED ENV{TAHU_LIB_PATH})
list(APPEND components_required
"tahu"
)
endif()

idf_component_register(SRCS
"gn_commons.c"
"gn_display.c"
"grownode.c"
"gn_mqtt_protocol.c"
"gn_sparkplugb_protocol.c"
#"gn_mqtt_homie_protocol.c"
"gn_network.c"
"gn_leaf_context.c"
"leaves/gn_bh1750.c"
Expand Down
311 changes: 0 additions & 311 deletions components/grownode/gn_sparkplugb_protocol.c

This file was deleted.

30 changes: 0 additions & 30 deletions components/grownode/gn_sparkplugb_protocol.h

This file was deleted.

11 changes: 0 additions & 11 deletions ext/tahu_components/tahu/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit cf411a4

Please sign in to comment.