• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// libbtcore static library for target and host
2// ========================================================
3cc_library_static {
4    name: "libbtcore",
5    defaults: ["fluoride_defaults"],
6    local_include_dirs: ["include"],
7    include_dirs: ["system/bt"],
8    srcs: [
9        "src/device_class.cc",
10        "src/hal_util.cc",
11        "src/module.cc",
12        "src/osi_module.cc",
13        "src/property.cc",
14    ],
15    shared_libs: [
16        "liblog",
17    ],
18    header_libs: ["libbluetooth_headers"],
19    host_supported: true,
20    target: {
21        linux_glibc: {
22            cflags: ["-D_GNU_SOURCE"],
23        },
24    },
25}
26
27// Note: It's good to get the tests compiled both for the host and the target so
28// we get to test with both Bionic libc and glibc
29// libbtcore unit tests for target and host
30// ========================================================
31cc_test {
32    name: "net_test_btcore",
33    test_suites: ["device-tests"],
34    defaults: ["fluoride_defaults"],
35    local_include_dirs: ["include"],
36    include_dirs: ["system/bt"],
37    srcs: [
38        "test/device_class_test.cc",
39        "test/property_test.cc",
40    ],
41    shared_libs: [
42        "liblog",
43    ],
44    static_libs: [
45        "libbtcore",
46        "libosi-AllocationTestHarness",
47        "libosi",
48    ],
49    host_supported: true,
50}
51