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    ],
15    host_supported: true,
16    include_dirs: [
17        "packages/modules/Bluetooth/system",
18        "packages/modules/Bluetooth/system/gd",
19        "packages/modules/Bluetooth/system/stack/include",
20    ],
21    export_include_dirs: ["./"],
22    srcs: [
23        "avrcp_sdp_records.cc",
24        "avrcp_sdp_service.cc",
25        "connection_handler.cc",
26        "device.cc",
27    ],
28    static_libs: [
29        "bluetooth_flags_c_lib",
30        "lib-bt-packets",
31        "libbluetooth-types",
32        "libbluetooth_log",
33        "libosi",
34    ],
35    whole_static_libs: [
36        "libcom.android.sysprop.bluetooth.wrapped",
37    ],
38    shared_libs: [
39        "liblog",
40    ],
41    apex_available: [
42        "com.android.btservices",
43    ],
44    min_sdk_version: "Tiramisu",
45    header_libs: ["libbluetooth_headers"],
46}
47
48cc_test {
49    name: "net_test_avrcp",
50    test_suites: ["general-tests"],
51    defaults: [
52        "fluoride_defaults",
53        "mts_defaults",
54    ],
55    host_supported: true,
56    test_options: {
57        unit_test: true,
58    },
59    include_dirs: [
60        "packages/modules/Bluetooth/system",
61        "packages/modules/Bluetooth/system/gd",
62        "packages/modules/Bluetooth/system/stack/include",
63    ],
64    srcs: [
65        "tests/avrcp_connection_handler_test.cc",
66        "tests/avrcp_device_test.cc",
67    ],
68    shared_libs: [
69        "libaconfig_storage_read_api_cc",
70        "server_configurable_flags",
71    ],
72    static_libs: [
73        "avrcp-target-service",
74        "bluetooth_flags_c_lib_for_test",
75        "lib-bt-packets",
76        "lib-bt-packets-avrcp",
77        "lib-bt-packets-base",
78        "libbase",
79        "libbluetooth-types",
80        "libbluetooth_gd",
81        "libbluetooth_log",
82        "libbtdevice",
83        "libchrome",
84        "libcom.android.sysprop.bluetooth.wrapped",
85        "libcutils",
86        "libevent",
87        "libgmock",
88        "liblog",
89        "libosi",
90    ],
91    sanitize: {
92        cfi: false,
93    },
94    header_libs: ["libbluetooth_headers"],
95}
96
97cc_fuzz {
98    name: "avrcp_device_fuzz",
99    host_supported: true,
100    defaults: [
101        "fluoride_defaults",
102    ],
103    srcs: [
104        "tests/avrcp_device_fuzz/avrcp_device_fuzz.cc",
105    ],
106    include_dirs: [
107        "packages/modules/Bluetooth/system",
108        "packages/modules/Bluetooth/system/gd",
109        "packages/modules/Bluetooth/system/packet/tests",
110        "packages/modules/Bluetooth/system/stack/include",
111    ],
112    shared_libs: [
113        "libaconfig_storage_read_api_cc",
114        "server_configurable_flags",
115    ],
116    static_libs: [
117        "avrcp-target-service",
118        "bluetooth_flags_c_lib",
119        "lib-bt-packets",
120        "lib-bt-packets-avrcp",
121        "lib-bt-packets-base",
122        "libbase",
123        "libbluetooth-types",
124        "libbluetooth_gd",
125        "libbluetooth_log",
126        "libchrome",
127        "libcutils",
128        "libevent",
129        "liblog",
130        "libstatslog_bt",
131        "libutils",
132    ],
133    header_libs: ["libbluetooth_headers"],
134    corpus: [
135        "tests/avrcp_device_fuzz/corpus/*",
136    ],
137    target: {
138        darwin: {
139            enabled: false,
140        },
141    },
142}
143