OSDN Git Service

Merge "AE: Set secondary adv max skip to zero"
[android-x86/system-bt.git] / btcore / Android.bp
1 // libbtcore static library for target and host
2 // ========================================================
3 cc_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         "src/uuid.cc",
15     ],
16     shared_libs: [
17         "liblog",
18     ],
19     host_supported: true,
20     target: {
21         darwin: {
22             enabled: false,
23         },
24         linux: {
25             cflags: ["-D_GNU_SOURCE"],
26         },
27     },
28 }
29
30 // Note: It's good to get the tests compiled both for the host and the target so
31 // we get to test with both Bionic libc and glibc
32 // libbtcore unit tests for target and host
33 // ========================================================
34 cc_test {
35     name: "net_test_btcore",
36     test_suites: ["device-tests"],
37     defaults: ["fluoride_defaults"],
38     local_include_dirs: ["include"],
39     include_dirs: ["system/bt"],
40     srcs: [
41         "test/device_class_test.cc",
42         "test/property_test.cc",
43         "test/uuid_test.cc",
44     ],
45     shared_libs: [
46         "liblog",
47     ],
48     static_libs: [
49         "libbtcore",
50         "libosi-AllocationTestHarness",
51         "libosi",
52     ],
53     host_supported: true,
54     target: {
55         darwin: {
56             enabled: false,
57         }
58     }
59 }