1cc_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 12// HCI static library for target 13// ======================================================== 14cc_library_static { 15 name: "libbt-hci", 16 defaults: ["libbt-hci_defaults"], 17 srcs: [ 18 "src/btsnoop.cc", 19 "src/btsnoop_mem.cc", 20 "src/btsnoop_net.cc", 21 "src/buffer_allocator.cc", 22 "src/hci_inject.cc", 23 "src/hci_layer.cc", 24 "src/hci_layer_android.cc", 25 "src/hci_packet_factory.cc", 26 "src/hci_packet_parser.cc", 27 "src/packet_fragmenter.cc", 28 ], 29 local_include_dirs: [ 30 "include", 31 ], 32 include_dirs: [ 33 "system/bt", 34 "system/bt/include", 35 "system/bt/btcore/include", 36 "system/bt/stack/include", 37 "system/bt/utils/include", 38 "system/bt/bta/include", 39 "system/libhwbinder/include", 40 ], 41} 42 43// HCI unit tests for target 44// ======================================================== 45cc_test { 46 name: "net_test_hci", 47 defaults: ["libbt-hci_defaults"], 48 local_include_dirs: [ 49 "include", 50 ], 51 include_dirs: [ 52 "system/bt", 53 "system/bt/include", 54 "system/bt/btcore/include", 55 "system/bt/osi/test", 56 "system/bt/stack/include", 57 "system/bt/utils/include", 58 "system/libhwbinder/include", 59 ], 60 srcs: [ 61 "test/packet_fragmenter_test.cc", 62 ], 63 shared_libs: [ 64 "liblog", 65 "libdl", 66 "libprotobuf-cpp-lite", 67 ], 68 static_libs: [ 69 "libbt-hci", 70 "libosi", 71 "libosi-AlarmTestHarness", 72 "libosi-AllocationTestHarness", 73 "libcutils", 74 "libbtcore", 75 "libbt-protos", 76 ], 77} 78