Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / examples / chip-tool / 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/build.gni")
16 import("//build_overrides/chip.gni")
17
18 import("${chip_root}/build/chip/tools.gni")
19
20 assert(chip_build_tools)
21
22 config("includes") {
23   include_dirs = [ "." ]
24 }
25
26 executable("chip-tool") {
27   sources = [
28     "${chip_root}/src/app/clusters/media-playback-client/media-playback-client.cpp",
29     "${chip_root}/src/app/reporting/reporting-default-configuration.cpp",
30     "${chip_root}/src/app/reporting/reporting.cpp",
31     "${chip_root}/src/app/server/DataModelHandler.cpp",
32     "${chip_root}/src/app/util/af-event.cpp",
33     "${chip_root}/src/app/util/af-main-common.cpp",
34     "${chip_root}/src/app/util/attribute-size.cpp",
35     "${chip_root}/src/app/util/attribute-storage.cpp",
36     "${chip_root}/src/app/util/attribute-table.cpp",
37     "${chip_root}/src/app/util/binding-table.cpp",
38     "${chip_root}/src/app/util/chip-message-send.cpp",
39     "${chip_root}/src/app/util/client-api.cpp",
40     "${chip_root}/src/app/util/ember-print.cpp",
41     "${chip_root}/src/app/util/message.cpp",
42     "${chip_root}/src/app/util/process-cluster-message.cpp",
43     "${chip_root}/src/app/util/process-global-message.cpp",
44     "${chip_root}/src/app/util/util.cpp",
45     "commands/clusters/ModelCommand.cpp",
46     "commands/common/Command.cpp",
47     "commands/common/Commands.cpp",
48     "commands/pairing/PairingCommand.cpp",
49     "commands/payload/AdditionalDataParseCommand.cpp",
50     "commands/payload/SetupPayloadParseCommand.cpp",
51     "commands/reporting/ReportingCommand.cpp",
52     "config/PersistentStorage.cpp",
53     "gen/CHIPClientCallbacks.cpp",
54     "gen/call-command-handler.cpp",
55     "gen/callback-stub.cpp",
56     "main.cpp",
57   ]
58
59   cflags = [ "-Wconversion" ]
60
61   public_deps = [
62     "${chip_root}/src/app/server",
63     "${chip_root}/src/lib",
64     "${chip_root}/src/platform",
65     "${chip_root}/third_party/inipp",
66   ]
67
68   public_configs = [ ":includes" ]
69
70   output_dir = root_out_dir
71 }