2 # Copyright (c) 2021 Project CHIP Authors
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
18 # (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
19 # The list of src and include dirs must be in sync with that in all-clusters-app/esp32/main/component.mk
20 idf_component_register(PRIV_INCLUDE_DIRS
21 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/util"
22 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app"
23 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/server"
24 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/examples/all-clusters-app/all-clusters-common"
25 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/third_party/nlio/repo/include"
26 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src"
27 "${CMAKE_CURRENT_LIST_DIR}/include"
29 "${CMAKE_CURRENT_LIST_DIR}"
30 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/examples/all-clusters-app/all-clusters-common/gen"
31 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/server"
32 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/util"
33 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/on-off-server"
34 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/level-control"
35 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/identify"
36 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/barrier-control-server"
37 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/general-commissioning-server"
38 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/network-commissioning"
39 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/groups-server"
40 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/color-control-server"
41 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/content-launch-server"
42 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/low-power-server"
43 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/media-playback-server"
44 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/temperature-measurement-server"
45 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/scenes"
46 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/basic"
47 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/bindings"
48 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/reporting"
49 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/door-lock-server"
50 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/ias-zone-server"
51 #${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/ias-zone-client
52 PRIV_REQUIRES chip QRCode tft spidriver bt screen-framework)
54 set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 14)
55 target_compile_options(${COMPONENT_LIB} PRIVATE "-DLWIP_IPV6_SCOPES=0" "-DCHIP_HAVE_CONFIG_H")