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