• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Bluetooth device static library for target
2package {
3    // See: http://go/android-license-faq
4    // A large-scale-change added 'default_applicable_licenses' to import
5    // all of the 'license_kinds' from "system_bt_license"
6    // to get the below license kinds:
7    //   SPDX-license-identifier-Apache-2.0
8    default_applicable_licenses: ["system_bt_license"],
9}
10
11cc_library_static {
12    name: "libbtdevice",
13    defaults: ["fluoride_defaults"],
14    host_supported: true,
15    local_include_dirs: [
16        "include",
17    ],
18    include_dirs: [
19        "packages/modules/Bluetooth/system",
20        "packages/modules/Bluetooth/system/gd",
21        "packages/modules/Bluetooth/system/stack/include",
22    ],
23    srcs: [
24        "src/device_iot_config.cc",
25        "src/device_iot_config_int.cc",
26        "src/esco_parameters.cc",
27        "src/interop.cc",
28    ],
29    apex_available: ["com.android.bt"],
30    min_sdk_version: "Tiramisu",
31    header_libs: ["libbluetooth_headers"],
32    static_libs: [
33        "bluetooth_flags_c_lib",
34        "libaconfig_storage_read_api_cc",
35        "libbluetooth_hci_pdl",
36        "libbluetooth_log",
37        "libflatbuffers-cpp",
38        "server_configurable_flags",
39    ],
40}
41
42// Bluetooth device unit tests for target
43cc_test {
44    name: "net_test_device",
45    test_suites: ["general-tests"],
46    defaults: [
47        "fluoride_defaults",
48        "mts_defaults",
49    ],
50    host_supported: true,
51    include_dirs: ["packages/modules/Bluetooth/system"],
52    srcs: [
53        "test/interop_test.cc",
54    ],
55    shared_libs: [
56        "libbase",
57        "liblog",
58    ],
59    static_libs: [
60        "libbluetooth-types",
61        "libbluetooth_gd",
62        "libbluetooth_log",
63        "libbtcore",
64        "libbtdevice",
65        "libchrome",
66        "libcom.android.sysprop.bluetooth.wrapped",
67        "libosi",
68    ],
69    header_libs: ["libbluetooth_headers"],
70}
71
72// Bluetooth device unit tests for target
73cc_test {
74    name: "net_test_device_iot_config",
75    test_suites: ["general-tests"],
76    defaults: [
77        "fluoride_defaults",
78        "mts_defaults",
79    ],
80    include_dirs: [
81        "packages/modules/Bluetooth/system",
82        "packages/modules/Bluetooth/system/device/src",
83        "packages/modules/Bluetooth/system/gd",
84        "packages/modules/Bluetooth/system/stack/include",
85    ],
86    srcs: [
87        ":TestCommonMockFunctions",
88        ":TestMockOsi",
89        "test/device_iot_config_test.cc",
90    ],
91    shared_libs: [
92        "libaconfig_storage_read_api_cc",
93        "libbase",
94        "libdl",
95        "liblog",
96    ],
97    static_libs: [
98        "libbluetooth-types",
99        "libbluetooth_log",
100        "libbt-platform-protos-lite",
101        "libbtcore",
102        "libbtdevice",
103        "libchrome",
104        "libgmock",
105        "libosi",
106    ],
107    header_libs: ["libbluetooth_headers"],
108}
109