Skip to content

Commit

Permalink
ESP32: Add a comment in all-clusters-app Makefile and CMakeLists.txt (#…
Browse files Browse the repository at this point in the history
…5254)

We now support CMake in addition to automake. Add a comment so that
either of the builds do not break.
  • Loading branch information
dhrishi authored Mar 9, 2021
1 parent c06b3f5 commit ae1370b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/all-clusters-app/esp32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)

# The list of extra component dirs must be in sync with that in all-clusters-app/esp32/Makefile
set(EXTRA_COMPONENT_DIRS
"${CMAKE_CURRENT_LIST_DIR}/third_party/connectedhomeip/config/esp32/components"
"${CMAKE_CURRENT_LIST_DIR}/../../common/m5stack-tft/repo/components"
Expand Down
1 change: 1 addition & 0 deletions examples/all-clusters-app/esp32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

PROJECT_NAME := chip-all-clusters-app

# The list of extra component dirs must be in sync with that in all-clusters-app/esp32/CMakeLists.txt
EXTRA_COMPONENT_DIRS += $(PROJECT_PATH)/third_party/connectedhomeip/config/esp32/components \
$(PROJECT_PATH)/../../common/m5stack-tft/repo/components \
$(PROJECT_PATH)/../../common/QRCode \
Expand Down
6 changes: 5 additions & 1 deletion examples/all-clusters-app/esp32/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# Component makefile for the ESP32 demo application.
#
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
# The list of src and include dirs must be in sync with that in all-clusters-app/esp32/main/component.mk
idf_component_register(PRIV_INCLUDE_DIRS
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/util"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app"
Expand All @@ -35,8 +36,11 @@ idf_component_register(PRIV_INCLUDE_DIRS
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/level-control"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/identify"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/barrier-control-server"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/general-commissioning-server"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/groups-server"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/color-control-server"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/content-launch-server"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/media-playback-server"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/temperature-measurement-server"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/scenes"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/basic"
Expand All @@ -48,4 +52,4 @@ idf_component_register(PRIV_INCLUDE_DIRS
PRIV_REQUIRES chip QRCode tft spidriver bt screen-framework)

set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 14)
target_compile_options(${COMPONENT_LIB} PRIVATE "-DLWIP_IPV6_SCOPES=0" "-DCHIP_HAVE_CONFIG_H")
target_compile_options(${COMPONENT_LIB} PRIVATE "-DLWIP_IPV6_SCOPES=0" "-DCHIP_HAVE_CONFIG_H")
1 change: 1 addition & 0 deletions examples/all-clusters-app/esp32/main/component.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

COMPONENT_DEPENDS := chip QRCode tft spidriver

# The list of src and include dirs must be in sync with that in all-clusters-app/esp32/main/CMakeLists.txt
COMPONENT_SRCDIRS := \
. \
../third_party/connectedhomeip/examples/all-clusters-app/all-clusters-common/gen \
Expand Down

0 comments on commit ae1370b

Please sign in to comment.