Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / setup_payload / BUILD.gn
1 # Copyright (c) 2020 Project CHIP Authors
2 #
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
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14
15 import("//build_overrides/chip.gni")
16
17 config("setup_payload_config") {
18   include_dirs = [ "." ]
19 }
20
21 static_library("setup_payload") {
22   output_name = "libSetupPayload"
23
24   sources = [
25     "AdditionalDataPayload.h",
26     "AdditionalDataPayloadGenerator.cpp",
27     "AdditionalDataPayloadGenerator.h",
28     "AdditionalDataPayloadParser.cpp",
29     "AdditionalDataPayloadParser.h",
30     "Base41.cpp",
31     "Base41.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",
40     "SetupPayload.cpp",
41     "SetupPayload.h",
42     "SetupPayloadHelper.cpp",
43     "SetupPayloadHelper.h",
44   ]
45
46   cflags = [ "-Wconversion" ]
47
48   public_deps = [
49     "${chip_root}/src/crypto",
50     "${chip_root}/src/lib/core",
51     "${chip_root}/src/lib/support",
52   ]
53
54   public_configs = [ ":setup_payload_config" ]
55 }