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