From 333d4d17462e44748ebf35eefe778fc9be8b8929 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Thu, 4 Nov 2021 18:06:35 -0400 Subject: [PATCH] Include the bridged actions stub in all-clusters-app on all platforms. (#11452) Otherwise these attributes are broken on non-Linux/Darwin. (cherry picked from commit 50aae87504b5b211a77e441783891f38487d93a5) --- .../src}/bridged-actions-stub.cpp | 0 examples/all-clusters-app/ameba/chip_main.cmake | 2 ++ examples/all-clusters-app/esp32/main/CMakeLists.txt | 1 + examples/all-clusters-app/linux/BUILD.gn | 2 +- examples/all-clusters-app/mbed/CMakeLists.txt | 2 ++ 5 files changed, 6 insertions(+), 1 deletion(-) rename examples/all-clusters-app/{linux/include => all-clusters-common/src}/bridged-actions-stub.cpp (100%) diff --git a/examples/all-clusters-app/linux/include/bridged-actions-stub.cpp b/examples/all-clusters-app/all-clusters-common/src/bridged-actions-stub.cpp similarity index 100% rename from examples/all-clusters-app/linux/include/bridged-actions-stub.cpp rename to examples/all-clusters-app/all-clusters-common/src/bridged-actions-stub.cpp diff --git a/examples/all-clusters-app/ameba/chip_main.cmake b/examples/all-clusters-app/ameba/chip_main.cmake index 2e080b3e7055fd..7104367e829820 100755 --- a/examples/all-clusters-app/ameba/chip_main.cmake +++ b/examples/all-clusters-app/ameba/chip_main.cmake @@ -35,6 +35,8 @@ list( ${chip_dir}/zzz_generated/all-clusters-app/zap-generated/IMClusterCommandHandler.cpp ${chip_dir}/zzz_generated/all-clusters-app/zap-generated/CHIPClusters.cpp + ${chip_dir}/examples/all-clusters-app/all-clusters-common/src/bridged-actions-stub.cpp + ${chip_dir}/examples/all-clusters-app/ameba/main/chipinterface.cpp ${chip_dir}/examples/all-clusters-app/ameba/main/DeviceCallbacks.cpp ${chip_dir}/examples/all-clusters-app/ameba/main/CHIPDeviceManager.cpp diff --git a/examples/all-clusters-app/esp32/main/CMakeLists.txt b/examples/all-clusters-app/esp32/main/CMakeLists.txt index d47225b8f57e8a..58d478bd2c9614 100644 --- a/examples/all-clusters-app/esp32/main/CMakeLists.txt +++ b/examples/all-clusters-app/esp32/main/CMakeLists.txt @@ -76,6 +76,7 @@ set(SRC_DIRS_LIST "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/ethernet_network_diagnostics_server" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/wifi_network_diagnostics_server" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/pump-configuration-and-control-server" + "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/examples/all-clusters-app/all-clusters-common/src" #${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/ias-zone-client ) diff --git a/examples/all-clusters-app/linux/BUILD.gn b/examples/all-clusters-app/linux/BUILD.gn index 02230355d7beb8..f7b180f4461187 100644 --- a/examples/all-clusters-app/linux/BUILD.gn +++ b/examples/all-clusters-app/linux/BUILD.gn @@ -17,7 +17,7 @@ import("//build_overrides/chip.gni") executable("chip-all-clusters-app") { sources = [ - "include/bridged-actions-stub.cpp", + "${chip_root}/examples/all-clusters-app/all-clusters-common/src/bridged-actions-stub.cpp", "include/tv-callbacks.cpp", "main.cpp", ] diff --git a/examples/all-clusters-app/mbed/CMakeLists.txt b/examples/all-clusters-app/mbed/CMakeLists.txt index 4f768f3b498f3c..d07a23d24eff02 100644 --- a/examples/all-clusters-app/mbed/CMakeLists.txt +++ b/examples/all-clusters-app/mbed/CMakeLists.txt @@ -66,6 +66,8 @@ target_sources(${APP_TARGET} PRIVATE ${CHIP_ROOT}/src/app/server/Server.cpp ${CHIP_ROOT}/src/app/server/CommissioningWindowManager.cpp + ${CHIP_ROOT}/examples/all-clusters-app/all-clusters-common/src/bridged-actions-stub.cpp + ${APP_UTIL}/DataModelHandler.cpp ${APP_UTIL}/af-event.cpp ${APP_UTIL}/af-main-common.cpp