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/build.gni")
16 import("//build_overrides/chip.gni")
18 import("${chip_root}/build/chip/tools.gni")
20 assert(chip_build_tools)
23 include_dirs = [ "." ]
26 executable("chip-tool") {
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",
59 cflags = [ "-Wconversion" ]
62 "${chip_root}/src/app/server",
63 "${chip_root}/src/lib",
64 "${chip_root}/src/platform",
65 "${chip_root}/third_party/inipp",
68 public_configs = [ ":includes" ]
70 output_dir = root_out_dir