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