blob: 442cc60aca2e38985f260ce0173d577c0f3683b5 [file] [log] [blame]
Jack Hee2eeff42016-12-07 18:25:17 -08001// 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",
Dan Shi15fbcf02017-03-31 17:12:55 -070037 test_suites: ["device-tests"],
Jack Hee2eeff42016-12-07 18:25:17 -080038 defaults: ["fluoride_defaults"],
39 local_include_dirs: ["include"],
40 include_dirs: ["system/bt"],
41 srcs: [
42 "test/bdaddr_test.cc",
43 "test/device_class_test.cc",
44 "test/property_test.cc",
45 "test/uuid_test.cc",
46 ],
47 shared_libs: [
48 "liblog",
49 ],
50 static_libs: [
51 "libbtcore",
52 "libosi-AllocationTestHarness",
53 "libosi",
54 ],
55 host_supported: true,
56 target: {
57 darwin: {
58 enabled: false,
59 }
60 }
61}