Skip to content

Commit

Permalink
Extracted additional data payload files from the setup payload
Browse files Browse the repository at this point in the history
  • Loading branch information
kkasperczyk-no committed Jan 11, 2022
1 parent 1bfcf76 commit f74049d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/platform/nrfconnect/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static_library("nrfconnect") {
"SystemPlatformConfig.h",
]

deps = [ "${chip_root}/src/setup_payload" ]
deps = [ "${chip_root}/src/setup_payload:additional_data_payload" ]

public_deps = [ "${chip_root}/src/platform:platform_base" ]

Expand Down
5 changes: 3 additions & 2 deletions src/platform/telink/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ static_library("telink") {
}
}

public_deps += [
public_deps += [
"${chip_root}/src/crypto",
"${chip_root}/src/setup_payload" ]
"${chip_root}/src/setup_payload:additional_data_payload",
]
}
18 changes: 15 additions & 3 deletions src/setup_payload/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,26 @@

import("//build_overrides/chip.gni")

static_library("setup_payload") {
output_name = "libSetupPayload"

source_set("additional_data_payload") {
sources = [
"AdditionalDataPayload.h",
"AdditionalDataPayloadGenerator.cpp",
"AdditionalDataPayloadGenerator.h",
"AdditionalDataPayloadParser.cpp",
"AdditionalDataPayloadParser.h",
]

public_deps = [
"${chip_root}/src/crypto",
"${chip_root}/src/lib/core",
"${chip_root}/src/lib/support",
]
}

static_library("setup_payload") {
output_name = "libSetupPayload"

sources = [
"Base38.h",
"Base38Decode.cpp",
"Base38Decode.h",
Expand All @@ -45,6 +56,7 @@ static_library("setup_payload") {
cflags = [ "-Wconversion" ]

public_deps = [
":additional_data_payload",
"${chip_root}/src/crypto",
"${chip_root}/src/lib/core",
"${chip_root}/src/lib/support",
Expand Down

0 comments on commit f74049d

Please sign in to comment.