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/system/",
20    "//bt/system/stack/include",
21    "//bt/system/profile/avrcp",
22    "//bt/system/packet",
23    "//bt/system/packet/include",
24    "//bt/system/include/hardware/avrcp",
25  ]
26
27  configs = [
28    "//bt/system:target_defaults",
29    "//bt/system/log:log_defaults",
30  ]
31}
32
33static_library("profile_avrcp") {
34  sources = [
35    "avrcp_sdp_records.cc",
36    "avrcp_sdp_service.cc",
37    "connection_handler.cc",
38    "device.cc",
39  ]
40
41  deps = [
42    "//bt/flags:bluetooth_flags_c_lib",
43  ]
44
45  configs += [
46    ":avrcp_config"
47  ]
48}
49
50if (use.test) {
51  executable("net_test_avrcp") {
52    sources = [
53      "tests/avrcp_connection_handler_test.cc",
54      "tests/avrcp_device_test.cc",
55    ]
56
57    deps = [
58      ":profile_avrcp",
59      "//bt/system/device:device",
60      "//bt/system/osi:osi",
61      "//bt/system/packet:packet",
62      "//bt/system/types:types",
63    ]
64
65    configs += [
66      "//bt/system:external_gmock_main",
67      ":avrcp_config",
68    ]
69  }
70}
71