• 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: "avrcp-target-service",
12    defaults: [
13        "fluoride_defaults",
14        "clang_file_coverage",
15    ],
16    host_supported: true,
17    include_dirs: [
18        "system/bt",
19        "system/bt/btcore/include",
20        "system/bt/internal_include",
21        "system/bt/stack/include",
22        "system/bt/gd/rust/shim",
23    ],
24    export_include_dirs: ["./"],
25    srcs: [
26        "connection_handler.cc",
27        "device.cc",
28    ],
29    static_libs: [
30        "lib-bt-packets",
31        "libbluetooth-types",
32        "libosi",
33    ],
34    shared_libs: [
35        "libchrome",
36    ],
37    apex_available: [
38        "//apex_available:platform",
39        "com.android.bluetooth.updatable",
40    ],
41}
42
43cc_test {
44    name: "net_test_avrcp",
45    test_suites: ["general-tests"],
46    defaults: [
47        "fluoride_defaults",
48        "clang_coverage_bin",
49    ],
50    host_supported: true,
51    test_options: {
52        unit_test: true,
53    },
54    include_dirs: [
55        "system/bt",
56        "system/bt/btcore/include",
57        "system/bt/internal_include",
58        "system/bt/stack/include",
59    ],
60    srcs: [
61        "tests/avrcp_connection_handler_test.cc",
62        "tests/avrcp_device_test.cc",
63    ],
64    static_libs: [
65        "libgmock",
66        "lib-bt-packets",
67        "libosi",
68        "liblog",
69        "libcutils",
70        "libbase",
71        "libbtdevice",
72        "avrcp-target-service",
73    ],
74    shared_libs: [
75        "libchrome",
76    ],
77    sanitize: {
78        cfi: false,
79    },
80
81    cflags: ["-DBUILDCFG"],
82}
83
84cc_fuzz {
85    name: "avrcp_device_fuzz",
86    host_supported: true,
87    defaults: [
88        "fluoride_defaults_fuzzable",
89    ],
90    srcs: [
91        "tests/avrcp_device_fuzz/avrcp_device_fuzz.cc",
92    ],
93    include_dirs: [
94        "system/bt",
95        "system/bt/packet/tests",
96        "system/bt/btcore/include",
97        "system/bt/internal_include",
98        "system/bt/stack/include",
99    ],
100    static_libs: [
101        "avrcp-target-service",
102        "lib-bt-packets",
103        "libbase",
104        "libchrome",
105        "libcutils",
106        "libevent",
107        "liblog",
108        "libstatslog",
109    ],
110    header_libs: ["libbluetooth_headers"],
111    corpus: [
112        "tests/avrcp_device_fuzz/corpus/*",
113    ],
114    target: {
115        darwin: {
116            enabled: false,
117        },
118    },
119}
120