James Kuszmaul | 97f750d | 2019-01-20 20:08:03 -0800 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
| 2 | |
| 3 | cc_library( |
| 4 | name = "ring_buffer", |
| 5 | hdrs = [ |
| 6 | "ring_buffer.h", |
| 7 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 8 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | 97f750d | 2019-01-20 20:08:03 -0800 | [diff] [blame] | 9 | ) |
| 10 | |
| 11 | cc_test( |
| 12 | name = "ring_buffer_test", |
| 13 | srcs = [ |
| 14 | "ring_buffer_test.cc", |
| 15 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 16 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | 97f750d | 2019-01-20 20:08:03 -0800 | [diff] [blame] | 17 | deps = [ |
| 18 | ":ring_buffer", |
| 19 | "//aos/testing:googletest", |
Austin Schuh | 4075ff6 | 2021-03-31 23:22:35 -0700 | [diff] [blame] | 20 | "@com_github_google_glog//:glog", |
James Kuszmaul | 97f750d | 2019-01-20 20:08:03 -0800 | [diff] [blame] | 21 | ], |
| 22 | ) |
| 23 | |
| 24 | cc_library( |
| 25 | name = "priority_queue", |
| 26 | hdrs = [ |
| 27 | "priority_queue.h", |
| 28 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 29 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | 97f750d | 2019-01-20 20:08:03 -0800 | [diff] [blame] | 30 | ) |
| 31 | |
| 32 | cc_test( |
| 33 | name = "priority_queue_test", |
| 34 | srcs = [ |
| 35 | "priority_queue_test.cc", |
| 36 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 37 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | 97f750d | 2019-01-20 20:08:03 -0800 | [diff] [blame] | 38 | deps = [ |
| 39 | ":priority_queue", |
| 40 | "//aos/testing:googletest", |
| 41 | ], |
| 42 | ) |
Brian Silverman | d844a57 | 2019-01-26 15:59:00 -0800 | [diff] [blame] | 43 | |
| 44 | cc_library( |
| 45 | name = "sized_array", |
| 46 | hdrs = [ |
| 47 | "sized_array.h", |
| 48 | ], |
Tyler Chatow | d0a4974 | 2022-02-25 22:06:19 -0800 | [diff] [blame] | 49 | deps = [ |
| 50 | "@com_google_absl//absl/container:inlined_vector", |
| 51 | ], |
Brian Silverman | d844a57 | 2019-01-26 15:59:00 -0800 | [diff] [blame] | 52 | ) |
| 53 | |
| 54 | cc_test( |
| 55 | name = "sized_array_test", |
| 56 | srcs = [ |
| 57 | "sized_array_test.cc", |
| 58 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 59 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | d844a57 | 2019-01-26 15:59:00 -0800 | [diff] [blame] | 60 | deps = [ |
| 61 | ":sized_array", |
| 62 | "//aos/testing:googletest", |
| 63 | ], |
| 64 | ) |
Brian Silverman | f51499a | 2020-09-21 12:49:08 -0700 | [diff] [blame] | 65 | |
| 66 | cc_library( |
Ravago Jones | 43b5376 | 2021-05-29 14:35:43 -0700 | [diff] [blame^] | 67 | name = "error_list", |
| 68 | hdrs = [ |
| 69 | "error_list.h", |
| 70 | ], |
| 71 | deps = [ |
| 72 | ":sized_array", |
| 73 | "//aos:flatbuffers", |
| 74 | ], |
| 75 | ) |
| 76 | |
| 77 | cc_test( |
| 78 | name = "error_list_test", |
| 79 | srcs = [ |
| 80 | "error_list_test.cc", |
| 81 | ], |
| 82 | target_compatible_with = ["@platforms//os:linux"], |
| 83 | deps = [ |
| 84 | ":error_list", |
| 85 | "//aos:json_to_flatbuffer_fbs", |
| 86 | "//aos/testing:googletest", |
| 87 | ], |
| 88 | ) |
| 89 | |
| 90 | cc_library( |
Brian Silverman | f51499a | 2020-09-21 12:49:08 -0700 | [diff] [blame] | 91 | name = "resizeable_buffer", |
| 92 | hdrs = [ |
| 93 | "resizeable_buffer.h", |
| 94 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 95 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | f51499a | 2020-09-21 12:49:08 -0700 | [diff] [blame] | 96 | deps = [ |
| 97 | "@com_github_google_glog//:glog", |
| 98 | ], |
| 99 | ) |
Brian Silverman | 3fab618 | 2020-09-30 20:35:20 -0700 | [diff] [blame] | 100 | |
| 101 | cc_test( |
| 102 | name = "resizeable_buffer_test", |
| 103 | srcs = [ |
| 104 | "resizeable_buffer_test.cc", |
| 105 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 106 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 3fab618 | 2020-09-30 20:35:20 -0700 | [diff] [blame] | 107 | deps = [ |
| 108 | ":resizeable_buffer", |
| 109 | "//aos/testing:googletest", |
| 110 | "@com_google_absl//absl/types:span", |
| 111 | ], |
| 112 | ) |