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("packet_config") { 18 include_dirs = [ 19 "//bt/system/", 20 "//bt/system/include", 21 "//bt/system/stack/include", 22 "//bt/system/profile/avrcp", 23 ] 24 25 configs = [ 26 "//bt/system:target_defaults", 27 "//bt/system/log:log_defaults", 28 ] 29} 30 31static_library("packet") { 32 sources = [ 33 "avrcp/get_folder_items.cc", 34 "avrcp/register_notification_packet.cc", 35 "avrcp/change_path.cc", 36 "avrcp/get_total_number_of_items.cc", 37 "avrcp/capabilities_packet.cc", 38 "avrcp/pass_through_packet.cc", 39 "avrcp/set_browsed_player.cc", 40 "avrcp/avrcp_reject_packet.cc", 41 "avrcp/set_absolute_volume.cc", 42 "avrcp/avrcp_packet.cc", 43 "avrcp/get_current_player_application_setting_value.cc", 44 "avrcp/get_element_attributes_packet.cc", 45 "avrcp/get_play_status_packet.cc", 46 "avrcp/general_reject_packet.cc", 47 "avrcp/avrcp_browse_packet.cc", 48 "avrcp/get_item_attributes.cc", 49 "avrcp/list_player_application_setting_attributes.cc", 50 "avrcp/list_player_application_setting_values.cc", 51 "avrcp/play_item.cc", 52 "avrcp/vendor_packet.cc", 53 "avrcp/set_addressed_player.cc", 54 "avrcp/set_player_application_setting_value.cc", 55 "base/iterator.cc", 56 "base/packet.cc", 57 "base/packet_builder.cc", 58 ] 59 60 configs += [":packet_config"] 61} 62 63if (use.test) { 64 executable("net_test_btpackets") { 65 sources = [ 66 "tests/avrcp/avrcp_browse_packet_test.cc", 67 "tests/avrcp/avrcp_packet_test.cc", 68 "tests/avrcp/avrcp_reject_packet_test.cc", 69 "tests/avrcp/change_path_packet_test.cc", 70 "tests/avrcp/general_reject_packet_test.cc", 71 "tests/avrcp/get_capabilities_packet_test.cc", 72 "tests/avrcp/get_element_attributes_packet_test.cc", 73 "tests/avrcp/get_folder_items_packet_test.cc", 74 "tests/avrcp/get_item_attributes_packet_test.cc", 75 "tests/avrcp/get_play_status_packet_test.cc", 76 "tests/avrcp/get_total_number_of_items_packet_test.cc", 77 "tests/avrcp/pass_through_packet_test.cc", 78 "tests/avrcp/play_item_packet_test.cc", 79 "tests/avrcp/register_notification_packet_test.cc", 80 "tests/avrcp/set_absolute_volume_packet_test.cc", 81 "tests/avrcp/set_addressed_player_packet_test.cc", 82 "tests/avrcp/set_browsed_player_packet_test.cc", 83 "tests/avrcp/vendor_packet_test.cc", 84 "tests/base/iterator_test.cc", 85 "tests/base/packet_builder_test.cc", 86 "tests/base/packet_test.cc", 87 ] 88 89 include_dirs = [ 90 "//bt/system/packet/avrcp", 91 "//bt/system/packet/base", 92 "//bt/system/packet/include", 93 "//bt/system/packet/tests", 94 "//bt/system/packet/tests/avrcp", 95 "//bt/system/packet/tests/base", 96 ] 97 98 deps = [ 99 ":packet", 100 ] 101 102 configs += [ 103 ":packet_config", 104 "//bt/system:external_gmock_main", 105 ] 106 } 107} 108