• 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/bdaddr.cc",
10        "src/device_class.cc",
11        "src/hal_util.cc",
12        "src/module.cc",
13        "src/osi_module.cc",
14        "src/property.cc",
15        "src/uuid.cc",
16    ],
17    shared_libs: [
18        "liblog",
19    ],
20    host_supported: true,
21    target: {
22        darwin: {
23            enabled: false,
24        },
25        linux: {
26            cflags: ["-D_GNU_SOURCE"],
27        },
28    },
29}
30
31// Note: It's good to get the tests compiled both for the host and the target so
32// we get to test with both Bionic libc and glibc
33// libbtcore unit tests for target and host
34// ========================================================
35cc_test {
36    name: "net_test_btcore",
37    defaults: ["fluoride_defaults"],
38    local_include_dirs: ["include"],
39    include_dirs: ["system/bt"],
40    srcs: [
41        "test/bdaddr_test.cc",
42        "test/device_class_test.cc",
43        "test/property_test.cc",
44        "test/uuid_test.cc",
45    ],
46    shared_libs: [
47        "liblog",
48    ],
49    static_libs: [
50        "libbtcore",
51        "libosi-AllocationTestHarness",
52        "libosi",
53    ],
54    host_supported: true,
55    target: {
56        darwin: {
57            enabled: false,
58        }
59    }
60}
61