blob: 6f5b0adae5bafb7f6c1d00d3667a4cde19504ca8 [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: {
Dan Willemsenf6b17162017-10-02 10:41:11 -070021 linux_glibc: {
Jack Hee2eeff42016-12-07 18:25:17 -080022 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",
Dan Shi15fbcf02017-03-31 17:12:55 -070033 test_suites: ["device-tests"],
Jack Hee2eeff42016-12-07 18:25:17 -080034 defaults: ["fluoride_defaults"],
35 local_include_dirs: ["include"],
36 include_dirs: ["system/bt"],
37 srcs: [
Jack Hee2eeff42016-12-07 18:25:17 -080038 "test/device_class_test.cc",
39 "test/property_test.cc",
Jack Hee2eeff42016-12-07 18:25:17 -080040 ],
41 shared_libs: [
42 "liblog",
43 ],
44 static_libs: [
45 "libbtcore",
46 "libosi-AllocationTestHarness",
47 "libosi",
48 ],
49 host_supported: true,
Jack Hee2eeff42016-12-07 18:25:17 -080050}