blob: 937849273a84272d1b8be9188a857b21f4f8c630 [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",
Myles Watsone22dde22019-01-18 11:42:33 -080017 "hci/acl_packet_builder.cc",
18 "hci/acl_packet_view.cc",
19 "hci/command_packet_builder.cc",
20 "hci/command_packet_view.cc",
21 "hci/event_packet_builder.cc",
22 "hci/event_payload_builder.cc",
23 "hci/hci_packet_builder.cc",
24 "hci/le_meta_event_builder.cc",
25 "hci/sco_packet_builder.cc",
26 "hci/sco_packet_view.cc",
27 "link_layer/link_layer_packet_builder.cc",
28 "link_layer/link_layer_packet_view.cc",
Myles Watson43b70242018-11-07 12:10:46 -080029 ],
30 cflags: [
31 "-fvisibility=hidden",
32 ],
33 local_include_dirs: [
34 ".",
35 ],
36 export_include_dirs: ["."],
37 include_dirs: [
38 "system/bt/vendor_libs/test_vendor_lib/include",
39 "system/bt/vendor_libs/test_vendor_lib/",
40 "system/bt/",
Myles Watson1a0a0da2019-10-17 11:36:33 -070041 "system/bt/gd",
Myles Watson43b70242018-11-07 12:10:46 -080042 ],
43 shared_libs: [
44 "libbase",
45 "liblog",
46 ],
47}
48
49// Unit tests for the host
50// ========================================================
51cc_test_host {
52 name: "rootcanal-packets_test_host",
53 defaults: [
54 "libchrome_support_defaults",
55 "clang_file_coverage",
56 "clang_coverage_bin",
57 ],
58 srcs: [
Myles Watsone22dde22019-01-18 11:42:33 -080059 "test/link_layer_packet_builder_test.cc",
60 "test/packet_builder_test.cc",
Myles Watson43b70242018-11-07 12:10:46 -080061 "test/packet_view_test.cc",
Myles Watsone22dde22019-01-18 11:42:33 -080062 "hci/test/acl_builder_test.cc",
63 "hci/test/event_builder_test.cc",
Myles Watson43b70242018-11-07 12:10:46 -080064 ],
65 header_libs: [
66 "libbluetooth_headers",
67 ],
68 local_include_dirs: [
69 ".",
70 ],
71 include_dirs: [
72 "system/bt",
Myles Watson1a0a0da2019-10-17 11:36:33 -070073 "system/bt/gd",
Myles Watson43b70242018-11-07 12:10:46 -080074 "system/bt/hci/include",
75 "system/bt/vendor_libs/test_vendor_lib",
76 "system/bt/vendor_libs/test_vendor_lib/include",
77 ],
78 shared_libs: [
79 "liblog",
80 ],
81 static_libs: [
Myles Watsone22dde22019-01-18 11:42:33 -080082 "libbt-rootcanal-types",
Myles Watson43b70242018-11-07 12:10:46 -080083 "libbt-rootcanal-packets",
84 ],
85}