Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 1 | cc_defaults { |
| 2 | name: "libbt-hci_defaults", |
| 3 | defaults: ["fluoride_defaults"], |
| 4 | shared_libs: [ |
| 5 | "android.hardware.bluetooth@1.0", |
| 6 | "libhidlbase", |
| 7 | "libhidltransport", |
| 8 | "libhwbinder", |
| 9 | ], |
| 10 | } |
| 11 | |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 12 | // HCI static library for target |
| 13 | // ======================================================== |
| 14 | cc_library_static { |
| 15 | name: "libbt-hci", |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 16 | defaults: ["libbt-hci_defaults"], |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 17 | srcs: [ |
| 18 | "src/btsnoop.cc", |
| 19 | "src/btsnoop_mem.cc", |
| 20 | "src/btsnoop_net.cc", |
| 21 | "src/buffer_allocator.cc", |
| 22 | "src/hci_audio.cc", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 23 | "src/hci_inject.cc", |
| 24 | "src/hci_layer.cc", |
Jakub Pawlowski | 32fbec6 | 2017-02-21 13:28:10 -0800 | [diff] [blame^] | 25 | "src/hci_layer_android.cc", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 26 | "src/hci_packet_factory.cc", |
| 27 | "src/hci_packet_parser.cc", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 28 | "src/packet_fragmenter.cc", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 29 | ], |
| 30 | local_include_dirs: [ |
| 31 | "include", |
| 32 | ], |
| 33 | include_dirs: [ |
| 34 | "system/bt", |
| 35 | "system/bt/include", |
| 36 | "system/bt/btcore/include", |
| 37 | "system/bt/stack/include", |
| 38 | "system/bt/utils/include", |
| 39 | "system/bt/bta/include", |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 40 | "system/libhwbinder/include", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 41 | ], |
| 42 | } |
| 43 | |
| 44 | // HCI unit tests for target |
| 45 | // ======================================================== |
| 46 | cc_test { |
| 47 | name: "net_test_hci", |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 48 | defaults: ["libbt-hci_defaults"], |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 49 | local_include_dirs: [ |
| 50 | "include", |
| 51 | ], |
| 52 | include_dirs: [ |
| 53 | "system/bt", |
| 54 | "system/bt/include", |
| 55 | "system/bt/btcore/include", |
| 56 | "system/bt/osi/test", |
| 57 | "system/bt/stack/include", |
| 58 | "system/bt/utils/include", |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 59 | "system/libhwbinder/include", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 60 | ], |
| 61 | srcs: [ |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 62 | "test/packet_fragmenter_test.cc", |
| 63 | ], |
| 64 | shared_libs: [ |
| 65 | "liblog", |
| 66 | "libdl", |
| 67 | "libprotobuf-cpp-lite", |
| 68 | ], |
| 69 | static_libs: [ |
| 70 | "libbt-hci", |
| 71 | "libosi", |
| 72 | "libosi-AlarmTestHarness", |
| 73 | "libosi-AllocationTestHarness", |
| 74 | "libcutils", |
| 75 | "libbtcore", |
| 76 | "libbt-protos", |
| 77 | ], |
| 78 | } |