From 1178992b26db4848926692dfcd57a9bc77689950 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. --- .../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 ++ examples/all-clusters-app/p6/BUILD.gn | 1 + 6 files changed, 7 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 ae62ddc32acf0c..978a07b3af1c7e 100644 --- a/examples/all-clusters-app/esp32/main/CMakeLists.txt +++ b/examples/all-clusters-app/esp32/main/CMakeLists.txt @@ -68,6 +68,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 12cdd6bf6e6615..7b00c798210582 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 diff --git a/examples/all-clusters-app/p6/BUILD.gn b/examples/all-clusters-app/p6/BUILD.gn index 3a15688140a316..d34ad7bf427d55 100644 --- a/examples/all-clusters-app/p6/BUILD.gn +++ b/examples/all-clusters-app/p6/BUILD.gn @@ -60,6 +60,7 @@ p6_executable("clusters_app") { output_name = "chip-p6-clusters-example.out" sources = [ + "${chip_root}/examples/all-clusters-app/all-clusters-common/src/bridged-actions-stub.cpp", "${examples_plat_dir}/LEDWidget.cpp", "${examples_plat_dir}/init_p6Platform.cpp", "src/AppTask.cpp",