1 # Copyright (c) 2020 Project CHIP Authors
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 import("//build_overrides/chip.gni")
17 config("setup_payload_config") {
18 include_dirs = [ "." ]
21 static_library("setup_payload") {
22 output_name = "libSetupPayload"
25 "AdditionalDataPayload.h",
26 "AdditionalDataPayloadGenerator.cpp",
27 "AdditionalDataPayloadGenerator.h",
28 "AdditionalDataPayloadParser.cpp",
29 "AdditionalDataPayloadParser.h",
32 "ManualSetupPayloadGenerator.cpp",
33 "ManualSetupPayloadGenerator.h",
34 "ManualSetupPayloadParser.cpp",
35 "ManualSetupPayloadParser.h",
36 "QRCodeSetupPayloadGenerator.cpp",
37 "QRCodeSetupPayloadGenerator.h",
38 "QRCodeSetupPayloadParser.cpp",
39 "QRCodeSetupPayloadParser.h",
42 "SetupPayloadHelper.cpp",
43 "SetupPayloadHelper.h",
46 cflags = [ "-Wconversion" ]
49 "${chip_root}/src/crypto",
50 "${chip_root}/src/lib/core",
51 "${chip_root}/src/lib/support",
54 public_configs = [ ":setup_payload_config" ]