blob: 6c6d22ebd5a92c6597301b7985a7ee4e5cd011b6 [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: [
Jack Hee2eeff42016-12-07 18:25:17 -08009 "src/device_class.cc",
10 "src/hal_util.cc",
11 "src/module.cc",
12 "src/osi_module.cc",
13 "src/property.cc",
Jack Hee2eeff42016-12-07 18:25:17 -080014 ],
15 shared_libs: [
16 "liblog",
17 ],
Jakub Pawlowskie56fabc2017-10-19 00:26:09 -070018 header_libs: ["libbluetooth_headers"],
Jack Hee2eeff42016-12-07 18:25:17 -080019 host_supported: true,
20 target: {
21 darwin: {
22 enabled: false,
23 },
Dan Willemsenf6b17162017-10-02 10:41:11 -070024 linux_glibc: {
Jack Hee2eeff42016-12-07 18:25:17 -080025 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// ========================================================
34cc_test {
35 name: "net_test_btcore",
Dan Shi15fbcf02017-03-31 17:12:55 -070036 test_suites: ["device-tests"],
Jack Hee2eeff42016-12-07 18:25:17 -080037 defaults: ["fluoride_defaults"],
38 local_include_dirs: ["include"],
39 include_dirs: ["system/bt"],
40 srcs: [
Jack Hee2eeff42016-12-07 18:25:17 -080041 "test/device_class_test.cc",
42 "test/property_test.cc",
Jack Hee2eeff42016-12-07 18:25:17 -080043 ],
44 shared_libs: [
45 "liblog",
46 ],
47 static_libs: [
48 "libbtcore",
49 "libosi-AllocationTestHarness",
50 "libosi",
51 ],
52 host_supported: true,
53 target: {
54 darwin: {
55 enabled: false,
56 }
57 }
58}