Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 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: [ |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 9 | "src/device_class.cc", |
| 10 | "src/hal_util.cc", |
| 11 | "src/module.cc", |
| 12 | "src/osi_module.cc", |
| 13 | "src/property.cc", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 14 | ], |
| 15 | shared_libs: [ |
| 16 | "liblog", |
| 17 | ], |
Jakub Pawlowski | e56fabc | 2017-10-19 00:26:09 -0700 | [diff] [blame] | 18 | header_libs: ["libbluetooth_headers"], |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 19 | host_supported: true, |
| 20 | target: { |
Dan Willemsen | f6b1716 | 2017-10-02 10:41:11 -0700 | [diff] [blame] | 21 | linux_glibc: { |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 22 | 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 | // ======================================================== |
| 31 | cc_test { |
| 32 | name: "net_test_btcore", |
Dan Shi | 15fbcf0 | 2017-03-31 17:12:55 -0700 | [diff] [blame] | 33 | test_suites: ["device-tests"], |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 34 | defaults: ["fluoride_defaults"], |
| 35 | local_include_dirs: ["include"], |
| 36 | include_dirs: ["system/bt"], |
| 37 | srcs: [ |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 38 | "test/device_class_test.cc", |
| 39 | "test/property_test.cc", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 40 | ], |
| 41 | shared_libs: [ |
| 42 | "liblog", |
| 43 | ], |
| 44 | static_libs: [ |
| 45 | "libbtcore", |
| 46 | "libosi-AllocationTestHarness", |
| 47 | "libosi", |
| 48 | ], |
| 49 | host_supported: true, |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 50 | } |