• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "system_bt_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["system_bt_license"],
8}
9
10cc_library_static {
11    name: "lib-bt-packets",
12    defaults: ["libchrome_support_defaults"],
13    host_supported: true,
14    export_include_dirs: [
15        "./include",
16        "./",
17    ],
18    whole_static_libs: [
19        "lib-bt-packets-base",
20        "lib-bt-packets-avrcp",
21    ],
22    apex_available: [
23        "//apex_available:platform",
24        "com.android.bluetooth.updatable",
25    ],
26}
27
28cc_test {
29    name: "net_test_btpackets",
30    defaults: ["fluoride_defaults"],
31    test_suites: ["device-tests"],
32    host_supported: true,
33    test_options: {
34        unit_test: true,
35    },
36    local_include_dirs: ["tests"],
37    include_dirs: [
38        "system/bt/",
39        "system/bt/include",
40    ],
41    srcs: [
42        "tests/avrcp/avrcp_browse_packet_test.cc",
43        "tests/avrcp/avrcp_packet_test.cc",
44        "tests/avrcp/avrcp_reject_packet_test.cc",
45        "tests/avrcp/change_path_packet_test.cc",
46        "tests/avrcp/general_reject_packet_test.cc",
47        "tests/avrcp/get_capabilities_packet_test.cc",
48        "tests/avrcp/get_element_attributes_packet_test.cc",
49        "tests/avrcp/get_folder_items_packet_test.cc",
50        "tests/avrcp/get_item_attributes_packet_test.cc",
51        "tests/avrcp/get_play_status_packet_test.cc",
52        "tests/avrcp/get_total_number_of_items_packet_test.cc",
53        "tests/avrcp/pass_through_packet_test.cc",
54        "tests/avrcp/play_item_packet_test.cc",
55        "tests/avrcp/register_notification_packet_test.cc",
56        "tests/avrcp/set_absolute_volume_packet_test.cc",
57        "tests/avrcp/set_addressed_player_packet_test.cc",
58        "tests/avrcp/set_browsed_player_packet_test.cc",
59        "tests/avrcp/vendor_packet_test.cc",
60        "tests/base/iterator_test.cc",
61        "tests/base/packet_builder_test.cc",
62        "tests/base/packet_test.cc",
63    ],
64    static_libs: [
65        "libgmock",
66        "lib-bt-packets",
67    ],
68    cflags: [
69        "-DBUILDCFG",
70    ],
71}
72