1#
2#  Copyright 2018 Android Open Source Project
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
17config("avrcp_config") {
18  include_dirs = [
19    "//bt/",
20    "//bt/btcore/include",
21    "//bt/internal_include",
22    "//bt/stack/include",
23    "//bt/profile/avrcp",
24    "//bt/packet",
25    "//bt/packet/include",
26    "//bt/include/hardware/avrcp",
27  ]
28
29  configs = ["//bt:target_defaults"]
30}
31
32static_library("profile_avrcp") {
33  sources = [
34    "connection_handler.cc",
35    "device.cc",
36  ]
37
38  deps = [
39    "//bt/gd/rust/shim:message_loop_thread_bridge_header",
40  ]
41
42  configs += [
43    ":avrcp_config"
44  ]
45}
46
47if (use.test) {
48  executable("net_test_avrcp") {
49    sources = [
50      "tests/avrcp_connection_handler_test.cc",
51      "tests/avrcp_device_test.cc",
52    ]
53
54    deps = [
55      ":profile_avrcp",
56      "//bt/device:device",
57      "//bt/osi:osi",
58      "//bt/packet:packet",
59      "//bt/types:types",
60    ]
61
62    configs += [
63      "//bt:external_gmock_main",
64      ":avrcp_config",
65    ]
66  }
67}
68