1#
2#  Copyright 2021 Google, Inc.
3#
4#  Licensed under the Apache License, Version 2.0 (the "License");
5#  you may not use this file except in compliance with the License.
6#  You may obtain a copy of the License at:
7#
8#  http://www.apache.org/licenses/LICENSE-2.0
9#
10#  Unless required by applicable law or agreed to in writing, software
11#  distributed under the License is distributed on an "AS IS" BASIS,
12#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13#  See the License for the specific language governing permissions and
14#  limitations under the License.
15
16import("//bt/system/gd/dumpsys/bundler/bundler.gni")
17
18source_set("BluetoothDumpsysSources") {
19  sources = [
20    "filter.cc",
21    "internal/filter_internal.cc",
22    "reflection_schema.cc",
23  ]
24
25  cflags_cc = [ "-Wno-enum-compare-switch" ]
26
27  configs += [
28    "//bt/system/gd:gd_defaults",
29    "//bt/system/log:log_defaults",
30  ]
31  deps = [ "//bt/system/gd:gd_default_deps" ]
32}
33
34bt_flatc_bundler("libbluetooth-dumpsys") {
35  root_name = "bluetooth.DumpsysData"
36  filename = "generated_dumpsys_bundled_schema"
37  namespace = "bluetooth::dumpsys"
38  deps = [ "//bt/system/gd:BluetoothGeneratedDumpsysBinarySchema_bfbs" ]
39  configs = [
40    "//bt/system/gd:gd_defaults",
41    "//bt/system/log:log_defaults",
42  ]
43}
44