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/gd/dumpsys/bundler/bundler.gni")
17
18source_set("BluetoothDumpsysSources") {
19  sources = [
20    "filter.cc",
21    "init_flags.cc",
22    "internal/filter_internal.cc",
23    "reflection_schema.cc",
24  ]
25
26  cflags_cc = [ "-Wno-enum-compare-switch" ]
27
28  configs += [ "//bt/gd:gd_defaults" ]
29  deps = [ "//bt/gd:gd_default_deps" ]
30}
31
32bt_flatc_bundler("BluetoothGeneratedDumpsysBundledSchema_h") {
33  root_name = "bluetooth.DumpsysData"
34  filename = "generated_dumpsys_bundled_schema"
35  namespace = "bluetooth::dumpsys"
36  deps = [ "//bt/gd:BluetoothGeneratedDumpsysBinarySchema_bfbs" ]
37}
38