Myles Watson | 43b7024 | 2018-11-07 12:10:46 -0800 | [diff] [blame^] | 1 | // packet library for libbt-rootcanal |
| 2 | // ======================================================== |
| 3 | cc_library_static { |
| 4 | name: "libbt-rootcanal-packets", |
| 5 | defaults: [ |
| 6 | "libchrome_support_defaults", |
| 7 | "clang_file_coverage", |
| 8 | ], |
| 9 | host_supported: true, |
| 10 | proprietary: true, |
| 11 | srcs: [ |
| 12 | "iterator.cc", |
| 13 | "packet_view.cc", |
| 14 | "view.cc", |
| 15 | ], |
| 16 | cflags: [ |
| 17 | "-fvisibility=hidden", |
| 18 | ], |
| 19 | local_include_dirs: [ |
| 20 | ".", |
| 21 | ], |
| 22 | export_include_dirs: ["."], |
| 23 | include_dirs: [ |
| 24 | "system/bt/vendor_libs/test_vendor_lib/include", |
| 25 | "system/bt/vendor_libs/test_vendor_lib/", |
| 26 | "system/bt/", |
| 27 | ], |
| 28 | shared_libs: [ |
| 29 | "libbase", |
| 30 | "liblog", |
| 31 | ], |
| 32 | } |
| 33 | |
| 34 | // Unit tests for the host |
| 35 | // ======================================================== |
| 36 | cc_test_host { |
| 37 | name: "rootcanal-packets_test_host", |
| 38 | defaults: [ |
| 39 | "libchrome_support_defaults", |
| 40 | "clang_file_coverage", |
| 41 | "clang_coverage_bin", |
| 42 | ], |
| 43 | srcs: [ |
| 44 | "test/packet_view_test.cc", |
| 45 | ], |
| 46 | header_libs: [ |
| 47 | "libbluetooth_headers", |
| 48 | ], |
| 49 | local_include_dirs: [ |
| 50 | ".", |
| 51 | ], |
| 52 | include_dirs: [ |
| 53 | "system/bt", |
| 54 | "system/bt/hci/include", |
| 55 | "system/bt/vendor_libs/test_vendor_lib", |
| 56 | "system/bt/vendor_libs/test_vendor_lib/include", |
| 57 | ], |
| 58 | shared_libs: [ |
| 59 | "liblog", |
| 60 | ], |
| 61 | static_libs: [ |
| 62 | "libbluetooth-types", |
| 63 | "libbt-rootcanal-packets", |
| 64 | ], |
| 65 | } |