blob: e507c27c634948315e38980003a838d6d4792b00 [file] [log] [blame]
Myles Watson43b70242018-11-07 12:10:46 -08001// packet library for libbt-rootcanal
2// ========================================================
3cc_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 Watsone22dde22019-01-18 11:42:33 -080013 "counted_builder.cc",
Myles Watson43b70242018-11-07 12:10:46 -080014 "packet_view.cc",
Myles Watsone22dde22019-01-18 11:42:33 -080015 "raw_builder.cc",
Myles Watson43b70242018-11-07 12:10:46 -080016 "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 Watson1a0a0da2019-10-17 11:36:33 -070029 "system/bt/gd",
Myles Watson43b70242018-11-07 12:10:46 -080030 ],
31 shared_libs: [
32 "libbase",
33 "liblog",
34 ],
35}
36
37// Unit tests for the host
38// ========================================================
39cc_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 Watsone22dde22019-01-18 11:42:33 -080047 "test/packet_builder_test.cc",
Myles Watson43b70242018-11-07 12:10:46 -080048 "test/packet_view_test.cc",
Chienyuan3d8a8032019-11-01 18:04:07 +080049 ":BluetoothHciClassSources",
Myles Watson43b70242018-11-07 12:10:46 -080050 ],
51 header_libs: [
52 "libbluetooth_headers",
53 ],
54 local_include_dirs: [
55 ".",
56 ],
57 include_dirs: [
58 "system/bt",
Myles Watson1a0a0da2019-10-17 11:36:33 -070059 "system/bt/gd",
Myles Watson43b70242018-11-07 12:10:46 -080060 "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 Watsone22dde22019-01-18 11:42:33 -080068 "libbt-rootcanal-types",
Myles Watson43b70242018-11-07 12:10:46 -080069 "libbt-rootcanal-packets",
70 ],
71}