From 9c511bf5c708453043294247495dd2b84554f057 Mon Sep 17 00:00:00 2001 From: Nivedita Sarkar Date: Fri, 26 Jul 2024 14:49:30 -0700 Subject: [PATCH] BUILD.gn fixes for CI --- examples/thermostat/linux/BUILD.gn | 1 - src/app/chip_data_model.gni | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/thermostat/linux/BUILD.gn b/examples/thermostat/linux/BUILD.gn index 7530a878da6c11..71c0eccfcfae50 100644 --- a/examples/thermostat/linux/BUILD.gn +++ b/examples/thermostat/linux/BUILD.gn @@ -17,7 +17,6 @@ import("//build_overrides/chip.gni") executable("thermostat-app") { sources = [ - "${chip_root}/src/app/clusters/thermostat-server/PresetStructWithOwnedMembers.cpp", "include/low-power/LowPowerManager.cpp", "include/low-power/LowPowerManager.h", "main.cpp", diff --git a/src/app/chip_data_model.gni b/src/app/chip_data_model.gni index 90b5bd1cfec3f3..e5ac7d0d1b48cd 100644 --- a/src/app/chip_data_model.gni +++ b/src/app/chip_data_model.gni @@ -400,6 +400,14 @@ template("chip_data_model") { "${_app_root}/clusters/${cluster}/DefaultThreadNetworkDirectoryStorage.h", "${_app_root}/clusters/${cluster}/ThreadNetworkDirectoryStorage.h", ] + } else if (cluster == "thermostat-server") { + sources += [ + "${_app_root}/clusters/${cluster}/${cluster}.cpp", + "${_app_root}/clusters/${cluster}/${cluster}.h", + "${_app_root}/clusters/${cluster}/PresetStructWithOwnedMembers.cpp", + "${_app_root}/clusters/${cluster}/PresetStructWithOwnedMembers.h", + "${_app_root}/clusters/${cluster}/thermostat-delegate.h", + ] } else { sources += [ "${_app_root}/clusters/${cluster}/${cluster}.cpp" ] }