Skip to content

Commit

Permalink
Add 3 more headers from ember src/app/util to be known to gn (project…
Browse files Browse the repository at this point in the history
…-chip#32622)

* Add 3 more headers from ember to be known to gn

* Restyle

* Fix lint
  • Loading branch information
andy31415 authored Mar 18, 2024
1 parent 4726936 commit 27a478f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,8 @@ jobs:
--known-failure app/reporting/tests/MockReportScheduler.h \
--known-failure app/TestEventTriggerDelegate.h \
--known-failure app/util/af.h \
--known-failure app/util/af-types.h \
--known-failure app/util/attribute-storage.cpp \
--known-failure app/util/attribute-storage.h \
--known-failure app/util/attribute-storage-null-handling.h \
--known-failure app/util/attribute-table.cpp \
--known-failure app/util/attribute-table.h \
--known-failure app/util/binding-table.cpp \
Expand All @@ -118,7 +116,6 @@ jobs:
--known-failure app/util/generic-callback-stubs.cpp \
--known-failure app/util/im-client-callbacks.h \
--known-failure app/util/MatterCallbacks.h \
--known-failure app/util/odd-sized-integers.h \
--known-failure app/util/util.cpp \
--known-failure app/util/util.h \
--known-failure app/WriteHandler.h \
Expand Down
1 change: 1 addition & 0 deletions src/app/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ static_library("interaction-model") {
"${chip_root}/src/app/MessageDef",
"${chip_root}/src/app/icd/server:icd-server-config",
"${chip_root}/src/app/icd/server:observer",
"${chip_root}/src/app/util:af-types",
"${chip_root}/src/lib/address_resolve",
"${chip_root}/src/lib/support",
"${chip_root}/src/lib/support:static-support",
Expand Down
16 changes: 16 additions & 0 deletions src/app/util/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,38 @@
import("//build_overrides/chip.gni")
import("${chip_root}/src/app/common_flags.gni")

# These headers/cpp only depend on core/common
source_set("types") {
sources = [
"att-storage.h",
"attribute-metadata.cpp",
"attribute-metadata.h",
"attribute-storage-null-handling.h",
"basic-types.h",
"ember-strings.cpp",
"ember-strings.h",
"endpoint-config-defines.h",
"odd-sized-integers.h",
"types_stub.h",
]

deps = [
"${chip_root}/src/app/common:attribute-type",
"${chip_root}/src/lib/core",
"${chip_root}/src/lib/core:encoding",
"${chip_root}/src/lib/core:types",
]
public_configs = [ "${chip_root}/src:includes" ]
}

# This source set also depends on data-model
source_set("af-types") {
sources = [ "af-types.h" ]
deps = [
":types",
"${chip_root}/src/app:paths",
"${chip_root}/src/app/data-model",
"${chip_root}/src/messaging",
"${chip_root}/src/protocols/interaction_model",
]
}

0 comments on commit 27a478f

Please sign in to comment.