blob: d25a11f3990e7f278a3570b93f84e057d38b02f0 [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",
Myles Watsone22dde22019-01-18 11:42:33 -080021 "hci/hci_packet_builder.cc",
Myles Watsone22dde22019-01-18 11:42:33 -080022 "hci/sco_packet_builder.cc",
23 "hci/sco_packet_view.cc",
Myles Watson43b70242018-11-07 12:10:46 -080024 ],
25 cflags: [
26 "-fvisibility=hidden",
27 ],
28 local_include_dirs: [
29 ".",
30 ],
31 export_include_dirs: ["."],
32 include_dirs: [
33 "system/bt/vendor_libs/test_vendor_lib/include",
34 "system/bt/vendor_libs/test_vendor_lib/",
35 "system/bt/",
Myles Watson1a0a0da2019-10-17 11:36:33 -070036 "system/bt/gd",
Myles Watson43b70242018-11-07 12:10:46 -080037 ],
38 shared_libs: [
39 "libbase",
40 "liblog",
41 ],
42}
43
44// Unit tests for the host
45// ========================================================
46cc_test_host {
47 name: "rootcanal-packets_test_host",
48 defaults: [
49 "libchrome_support_defaults",
50 "clang_file_coverage",
51 "clang_coverage_bin",
52 ],
53 srcs: [
Myles Watsone22dde22019-01-18 11:42:33 -080054 "test/packet_builder_test.cc",
Myles Watson43b70242018-11-07 12:10:46 -080055 "test/packet_view_test.cc",
Myles Watsone22dde22019-01-18 11:42:33 -080056 "hci/test/acl_builder_test.cc",
Chienyuan3d8a8032019-11-01 18:04:07 +080057 ":BluetoothHciClassSources",
Myles Watson43b70242018-11-07 12:10:46 -080058 ],
59 header_libs: [
60 "libbluetooth_headers",
61 ],
62 local_include_dirs: [
63 ".",
64 ],
65 include_dirs: [
66 "system/bt",
Myles Watson1a0a0da2019-10-17 11:36:33 -070067 "system/bt/gd",
Myles Watson43b70242018-11-07 12:10:46 -080068 "system/bt/hci/include",
69 "system/bt/vendor_libs/test_vendor_lib",
70 "system/bt/vendor_libs/test_vendor_lib/include",
71 ],
72 shared_libs: [
73 "liblog",
74 ],
75 static_libs: [
Myles Watsone22dde22019-01-18 11:42:33 -080076 "libbt-rootcanal-types",
Myles Watson43b70242018-11-07 12:10:46 -080077 "libbt-rootcanal-packets",
78 ],
79}