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", |
Myles Watson | e22dde2 | 2019-01-18 11:42:33 -0800 | [diff] [blame] | 13 | "counted_builder.cc", |
Myles Watson | 43b7024 | 2018-11-07 12:10:46 -0800 | [diff] [blame] | 14 | "packet_view.cc", |
Myles Watson | e22dde2 | 2019-01-18 11:42:33 -0800 | [diff] [blame] | 15 | "raw_builder.cc", |
Myles Watson | 43b7024 | 2018-11-07 12:10:46 -0800 | [diff] [blame] | 16 | "view.cc", |
| 17 | ], |
| 18 | cflags: [ |
| 19 | "-fvisibility=hidden", |
| 20 | ], |
| 21 | local_include_dirs: [ |
| 22 | ".", |
| 23 | ], |
| 24 | export_include_dirs: ["."], |
| 25 | include_dirs: [ |
| 26 | "system/bt/vendor_libs/test_vendor_lib/include", |
| 27 | "system/bt/vendor_libs/test_vendor_lib/", |
| 28 | "system/bt/", |
Myles Watson | 1a0a0da | 2019-10-17 11:36:33 -0700 | [diff] [blame] | 29 | "system/bt/gd", |
Myles Watson | 43b7024 | 2018-11-07 12:10:46 -0800 | [diff] [blame] | 30 | ], |
| 31 | shared_libs: [ |
| 32 | "libbase", |
| 33 | "liblog", |
| 34 | ], |
| 35 | } |
| 36 | |
| 37 | // Unit tests for the host |
| 38 | // ======================================================== |
| 39 | cc_test_host { |
| 40 | name: "rootcanal-packets_test_host", |
| 41 | defaults: [ |
| 42 | "libchrome_support_defaults", |
| 43 | "clang_file_coverage", |
| 44 | "clang_coverage_bin", |
| 45 | ], |
| 46 | srcs: [ |
Myles Watson | e22dde2 | 2019-01-18 11:42:33 -0800 | [diff] [blame] | 47 | "test/packet_builder_test.cc", |
Myles Watson | 43b7024 | 2018-11-07 12:10:46 -0800 | [diff] [blame] | 48 | "test/packet_view_test.cc", |
Chienyuan | 3d8a803 | 2019-11-01 18:04:07 +0800 | [diff] [blame] | 49 | ":BluetoothHciClassSources", |
Myles Watson | 43b7024 | 2018-11-07 12:10:46 -0800 | [diff] [blame] | 50 | ], |
| 51 | header_libs: [ |
| 52 | "libbluetooth_headers", |
| 53 | ], |
| 54 | local_include_dirs: [ |
| 55 | ".", |
| 56 | ], |
| 57 | include_dirs: [ |
| 58 | "system/bt", |
Myles Watson | 1a0a0da | 2019-10-17 11:36:33 -0700 | [diff] [blame] | 59 | "system/bt/gd", |
Myles Watson | 43b7024 | 2018-11-07 12:10:46 -0800 | [diff] [blame] | 60 | "system/bt/hci/include", |
| 61 | "system/bt/vendor_libs/test_vendor_lib", |
| 62 | "system/bt/vendor_libs/test_vendor_lib/include", |
| 63 | ], |
| 64 | shared_libs: [ |
| 65 | "liblog", |
| 66 | ], |
| 67 | static_libs: [ |
Myles Watson | e22dde2 | 2019-01-18 11:42:33 -0800 | [diff] [blame] | 68 | "libbt-rootcanal-types", |
Myles Watson | 43b7024 | 2018-11-07 12:10:46 -0800 | [diff] [blame] | 69 | "libbt-rootcanal-packets", |
| 70 | ], |
| 71 | } |