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 = [ 25 "//bt/system/gd:gd_default_deps", 26 "//bt/floss/android-base:android-base", 27 ] 28 configs += [ 29 "//bt/system/gd:gd_defaults", 30 "//bt/system/log:log_defaults", 31 ] 32} 33 34source_set("BluetoothMetricsSources_linux") { 35 sources = [ "linux/metrics.cc" ] 36 configs += [ 37 "//bt/system/gd:gd_defaults", 38 "//bt/system/log:log_defaults", 39 ] 40} 41 42source_set("BluetoothMetricsSources") { 43 sources = [ 44 "counter_metrics.cc", 45 "utils.cc", 46 "bluetooth_event.cc" 47 ] 48 49 configs += [ 50 "//bt/system/gd:gd_defaults", 51 "//bt/system/log:log_defaults", 52 ] 53 deps = [ "//bt/system/gd:gd_default_deps" ] 54 55 if (target_os == "chromeos") { 56 deps += [ ":BluetoothMetricsSources_chromeos" ] 57 } else { 58 deps += [ ":BluetoothMetricsSources_linux" ] 59 } 60} 61