From cfd15516053ca5b548d8d5f2b8d71b3178670128 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 1 Feb 2024 03:57:55 -0500 Subject: [PATCH] Correct dependencies of GlobalAttributes (#31798) * Correct dependencies of GlobalAttributes * Fix comment --- src/app/BUILD.gn | 8 ++++++-- src/app/GlobalAttributes.h | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/BUILD.gn b/src/app/BUILD.gn index 73e9d643abf81e..6b800a2213a2fb 100644 --- a/src/app/BUILD.gn +++ b/src/app/BUILD.gn @@ -97,8 +97,12 @@ source_set("paths") { source_set("global-attributes") { sources = [ "GlobalAttributes.h" ] - # This also depends on zap-generated code which is currently impossible to split outs - public_deps = [ "${chip_root}/src/lib/support" ] + # This also depends on zap-generated code which is currently impossible to split out + # as a dependency + public_deps = [ + ":app_config", + "${chip_root}/src/lib/support", + ] } source_set("pre-encoded-value") { diff --git a/src/app/GlobalAttributes.h b/src/app/GlobalAttributes.h index d0b2a05a53f259..5096792309a880 100644 --- a/src/app/GlobalAttributes.h +++ b/src/app/GlobalAttributes.h @@ -18,6 +18,7 @@ #pragma once #include +#include #include namespace chip {