| // packet library for libbt-rootcanal |
| // ======================================================== |
| cc_library_static { |
| name: "libbt-rootcanal-packets", |
| defaults: [ |
| "libchrome_support_defaults", |
| "clang_file_coverage", |
| ], |
| host_supported: true, |
| proprietary: true, |
| srcs: [ |
| "iterator.cc", |
| "counted_builder.cc", |
| "packet_view.cc", |
| "raw_builder.cc", |
| "view.cc", |
| "hci/acl_packet_builder.cc", |
| "hci/acl_packet_view.cc", |
| "hci/command_packet_builder.cc", |
| "hci/command_packet_view.cc", |
| "hci/hci_packet_builder.cc", |
| "hci/sco_packet_builder.cc", |
| "hci/sco_packet_view.cc", |
| ], |
| cflags: [ |
| "-fvisibility=hidden", |
| ], |
| local_include_dirs: [ |
| ".", |
| ], |
| export_include_dirs: ["."], |
| include_dirs: [ |
| "system/bt/vendor_libs/test_vendor_lib/include", |
| "system/bt/vendor_libs/test_vendor_lib/", |
| "system/bt/", |
| "system/bt/gd", |
| ], |
| shared_libs: [ |
| "libbase", |
| "liblog", |
| ], |
| } |
| |
| // Unit tests for the host |
| // ======================================================== |
| cc_test_host { |
| name: "rootcanal-packets_test_host", |
| defaults: [ |
| "libchrome_support_defaults", |
| "clang_file_coverage", |
| "clang_coverage_bin", |
| ], |
| srcs: [ |
| "test/packet_builder_test.cc", |
| "test/packet_view_test.cc", |
| "hci/test/acl_builder_test.cc", |
| ":BluetoothHciClassSources", |
| ], |
| header_libs: [ |
| "libbluetooth_headers", |
| ], |
| local_include_dirs: [ |
| ".", |
| ], |
| include_dirs: [ |
| "system/bt", |
| "system/bt/gd", |
| "system/bt/hci/include", |
| "system/bt/vendor_libs/test_vendor_lib", |
| "system/bt/vendor_libs/test_vendor_lib/include", |
| ], |
| shared_libs: [ |
| "liblog", |
| ], |
| static_libs: [ |
| "libbt-rootcanal-types", |
| "libbt-rootcanal-packets", |
| ], |
| } |