• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Bluetooth device static library for target
2// ========================================================
3package {
4    // See: http://go/android-license-faq
5    // A large-scale-change added 'default_applicable_licenses' to import
6    // all of the 'license_kinds' from "system_bt_license"
7    // to get the below license kinds:
8    //   SPDX-license-identifier-Apache-2.0
9    default_applicable_licenses: ["system_bt_license"],
10}
11
12cc_library_static {
13    name: "libbtdevice",
14    defaults: ["fluoride_defaults"],
15    host_supported: true,
16    local_include_dirs: [
17        "include",
18    ],
19    include_dirs: [
20        "system/bt",
21        "system/bt/btcore/include",
22        "system/bt/hci/include",
23        "system/bt/internal_include",
24        "system/bt/stack/include",
25    ],
26    srcs: [
27        "src/controller.cc",
28        "src/esco_parameters.cc",
29        "src/interop.cc",
30    ],
31    shared_libs: [
32        "liblog",
33    ],
34}
35
36// Bluetooth device unit tests for target
37// ========================================================
38cc_test {
39    name: "net_test_device",
40    test_suites: ["device-tests"],
41    defaults: ["fluoride_defaults"],
42    include_dirs: ["system/bt"],
43    srcs: [
44        "test/interop_test.cc",
45    ],
46    shared_libs: [
47        "liblog",
48        "libdl",
49    ],
50    static_libs: [
51        "libbtdevice",
52        "libbtcore",
53        "libosi",
54        "libosi-AllocationTestHarness",
55        "libcutils",
56        "libbluetooth-types",
57    ],
58}
59