• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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#
16
17source_set("BluetoothMetricsSources_chromeos") {
18  sources = [
19    "chromeos/metrics.cc",
20    "chromeos/metrics_allowlist.cc",
21    "chromeos/metrics_event.cc",
22  ]
23
24  deps = [ "//bt/system/gd:gd_default_deps" ]
25  configs += [ "//bt/system/gd:gd_defaults" ]
26}
27
28source_set("BluetoothMetricsSources_linux") {
29  sources = [ "linux/metrics.cc" ]
30  configs += [ "//bt/system/gd:gd_defaults" ]
31}
32
33source_set("BluetoothMetricsSources") {
34  sources = [
35    "counter_metrics.cc",
36    "utils.cc",
37  ]
38
39  configs += [ "//bt/system/gd:gd_defaults"]
40  deps = [ "//bt/system/gd:gd_default_deps" ]
41
42  if (target_os == "chromeos") {
43    deps += [ ":BluetoothMetricsSources_chromeos" ]
44  } else {
45    deps += [ ":BluetoothMetricsSources_linux" ]
46  }
47}
48