1#  Copyright 2021 Google, Inc.
2#
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:
6#
7#  http://www.apache.org/licenses/LICENSE-2.0
8#
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.
14
15source_set("BluetoothOsSources_linux") {
16  sources = [
17    "linux/metrics.cc",
18    "linux/parameter_provider.cc",
19    "linux/system_properties.cc",
20    "linux/wakelock_native.cc",
21  ]
22
23  configs += [ "//bt/gd:gd_defaults" ]
24  deps = [ "//bt:libbt-platform-protos-lite" ]
25}
26
27source_set("BluetoothOsSources_linux_generic") {
28  sources = [
29    "linux_generic/alarm.cc",
30    "linux_generic/files.cc",
31    "linux_generic/handler.cc",
32    "linux_generic/reactive_semaphore.cc",
33    "linux_generic/reactor.cc",
34    "linux_generic/repeating_alarm.cc",
35    "linux_generic/thread.cc",
36    "linux_generic/wakelock_manager.cc",
37  ]
38
39  configs += [ "//bt/gd:gd_defaults" ]
40  deps = [ ":BluetoothOsSources_linux" ]
41}
42