Skip to content

Commit

Permalink
Add a target for span
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille committed Sep 27, 2023
1 parent 3256c21 commit d31c8cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/credentials/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ source_set("test_paa_store") {
"attestation_verifier/CHIPAttCert_test_paa_store.h",
]

public_deps = [
"${chip_root}/src/lib/core:chip_config_header", # for lib/support/Span.h
"${nlassert_root}:nlassert", # for lib/support/Span.h
]
public_deps = [ "${chip_root}/src/lib/support:span" ]
}

static_library("default_attestation_verifier") {
Expand Down
10 changes: 10 additions & 0 deletions src/lib/support/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ source_set("chip_version_header") {
deps = [ ":gen_chip_version" ]
}

source_set("span") {
sources = [ "Span.h" ]

deps = [ "${nlassert_root}:nlassert" ]
if (chip_pw_tokenizer_logging) {
deps += [ "${dir_pw_tokenizer}" ]
}
}

static_library("support") {
output_name = "libSupportLayer"

Expand Down Expand Up @@ -171,6 +180,7 @@ static_library("support") {
":attributes",
":chip_version_header",
":logging_constants",
":span",
"${chip_root}/src/lib/core:chip_config_header",
"${chip_root}/src/platform:platform_buildconfig",
"${chip_root}/src/platform/logging:headers",
Expand Down

0 comments on commit d31c8cd

Please sign in to comment.