Brian Silverman | cb5da1f | 2015-12-05 22:19:58 -0500 | [diff] [blame] | 1 | # The primary client logging interface. |
| 2 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 3 | name = "logging", |
| 4 | srcs = [ |
| 5 | "context.cc", |
| 6 | "interface.cc", |
| 7 | ], |
| 8 | hdrs = [ |
| 9 | "context.h", |
| 10 | "interface.h", |
| 11 | "logging.h", |
| 12 | ], |
Brian Silverman | 7a7c24d | 2018-09-01 17:49:09 -0700 | [diff] [blame] | 13 | compatible_with = [ |
| 14 | "//tools:armhf-debian", |
| 15 | ], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 16 | visibility = ["//visibility:public"], |
| 17 | deps = [ |
| 18 | ":sizes", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 19 | "//aos:die", |
| 20 | "//aos:macros", |
| 21 | "//aos/libc:aos_strerror", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame^] | 22 | "//aos:complex_thread_local", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 23 | ], |
Brian Silverman | cb5da1f | 2015-12-05 22:19:58 -0500 | [diff] [blame] | 24 | ) |
Austin Schuh | f073651 | 2015-09-07 01:22:16 -0700 | [diff] [blame] | 25 | |
Brian Silverman | f44f124 | 2015-12-05 20:19:48 -0500 | [diff] [blame] | 26 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 27 | name = "replay", |
| 28 | srcs = [ |
| 29 | "replay.cc", |
| 30 | ], |
| 31 | hdrs = [ |
| 32 | "replay.h", |
| 33 | ], |
| 34 | visibility = ["//visibility:public"], |
| 35 | deps = [ |
| 36 | ":binary_log_file", |
| 37 | ":logging", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 38 | "//aos:queues", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame^] | 39 | "//aos/ipc_lib:queue", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 40 | ], |
Brian Silverman | f44f124 | 2015-12-05 20:19:48 -0500 | [diff] [blame] | 41 | ) |
| 42 | |
| 43 | cc_binary( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 44 | name = "binary_log_writer", |
| 45 | srcs = [ |
| 46 | "binary_log_writer.cc", |
| 47 | ], |
| 48 | visibility = ["//visibility:public"], |
| 49 | deps = [ |
| 50 | ":binary_log_file", |
| 51 | ":implementations", |
| 52 | ":logging", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 53 | "//aos:die", |
| 54 | "//aos:queue_types", |
| 55 | "//aos/time:time", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame^] | 56 | "//aos:configuration", |
| 57 | "//aos:init", |
| 58 | "//aos/ipc_lib:queue", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 59 | ], |
Brian Silverman | f44f124 | 2015-12-05 20:19:48 -0500 | [diff] [blame] | 60 | ) |
| 61 | |
| 62 | cc_binary( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 63 | name = "log_streamer", |
| 64 | srcs = [ |
| 65 | "log_streamer.cc", |
| 66 | ], |
| 67 | visibility = ["//visibility:public"], |
| 68 | deps = [ |
| 69 | ":implementations", |
| 70 | ":logging", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 71 | "//aos/time:time", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame^] | 72 | "//aos:init", |
| 73 | "//aos/ipc_lib:queue", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 74 | ], |
Brian Silverman | f44f124 | 2015-12-05 20:19:48 -0500 | [diff] [blame] | 75 | ) |
| 76 | |
| 77 | cc_binary( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 78 | name = "log_displayer", |
| 79 | srcs = [ |
| 80 | "log_displayer.cc", |
| 81 | ], |
| 82 | visibility = ["//visibility:public"], |
| 83 | deps = [ |
| 84 | ":binary_log_file", |
| 85 | ":implementations", |
| 86 | ":logging", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 87 | "//aos:queue_types", |
| 88 | "//aos/util:string_to_num", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame^] | 89 | "//aos:configuration", |
| 90 | "//aos:init", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 91 | ], |
Brian Silverman | f44f124 | 2015-12-05 20:19:48 -0500 | [diff] [blame] | 92 | ) |
| 93 | |
| 94 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 95 | name = "binary_log_file", |
| 96 | srcs = [ |
| 97 | "binary_log_file.cc", |
| 98 | ], |
| 99 | hdrs = [ |
| 100 | "binary_log_file.h", |
| 101 | ], |
| 102 | deps = [ |
| 103 | ":implementations", |
| 104 | ], |
Austin Schuh | f073651 | 2015-09-07 01:22:16 -0700 | [diff] [blame] | 105 | ) |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 106 | |
| 107 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 108 | name = "sizes", |
| 109 | hdrs = [ |
| 110 | "sizes.h", |
| 111 | ], |
Brian Silverman | 7a7c24d | 2018-09-01 17:49:09 -0700 | [diff] [blame] | 112 | compatible_with = [ |
| 113 | "//tools:armhf-debian", |
| 114 | ], |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 115 | ) |
| 116 | |
Brian Silverman | cb5da1f | 2015-12-05 22:19:58 -0500 | [diff] [blame] | 117 | cc_test( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 118 | name = "implementations_test", |
| 119 | srcs = [ |
| 120 | "implementations_test.cc", |
| 121 | ], |
| 122 | deps = [ |
| 123 | ":implementations", |
| 124 | ":logging", |
| 125 | "//aos/testing:googletest", |
| 126 | ], |
Brian Silverman | cb5da1f | 2015-12-05 22:19:58 -0500 | [diff] [blame] | 127 | ) |
| 128 | |
| 129 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 130 | name = "queue_logging", |
| 131 | srcs = [ |
| 132 | "queue_logging.cc", |
| 133 | ], |
| 134 | hdrs = [ |
| 135 | "queue_logging.h", |
| 136 | ], |
Brian Silverman | 7a7c24d | 2018-09-01 17:49:09 -0700 | [diff] [blame] | 137 | compatible_with = [ |
| 138 | "//tools:armhf-debian", |
| 139 | ], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 140 | visibility = ["//visibility:public"], |
| 141 | deps = [ |
| 142 | ":logging", |
| 143 | ":sizes", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 144 | "//aos:die", |
| 145 | "//aos:queue_types", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 146 | ], |
Brian Silverman | cb5da1f | 2015-12-05 22:19:58 -0500 | [diff] [blame] | 147 | ) |
| 148 | |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 149 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 150 | name = "matrix_logging", |
| 151 | srcs = [ |
| 152 | "matrix_logging.cc", |
| 153 | ], |
| 154 | hdrs = [ |
| 155 | "matrix_logging.h", |
| 156 | ], |
| 157 | visibility = ["//visibility:public"], |
| 158 | deps = [ |
| 159 | ":logging", |
| 160 | ":sizes", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 161 | "//aos:die", |
| 162 | "//aos:generated_queue_headers", |
| 163 | "//aos:queue_types", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 164 | "//third_party/eigen", |
| 165 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 166 | ) |
Brian Silverman | f480a61 | 2015-09-13 02:22:01 -0400 | [diff] [blame] | 167 | |
| 168 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 169 | name = "printf_formats", |
| 170 | hdrs = [ |
| 171 | "printf_formats.h", |
| 172 | ], |
Brian Silverman | 7a7c24d | 2018-09-01 17:49:09 -0700 | [diff] [blame] | 173 | compatible_with = [ |
| 174 | "//tools:armhf-debian", |
| 175 | ], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 176 | visibility = ["//visibility:public"], |
| 177 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 178 | "//aos:macros", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 179 | ], |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 180 | ) |
| 181 | |
| 182 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 183 | name = "implementations", |
| 184 | srcs = [ |
| 185 | "implementations.cc", |
| 186 | ], |
| 187 | hdrs = [ |
| 188 | "implementations.h", |
| 189 | ], |
Brian Silverman | 7a7c24d | 2018-09-01 17:49:09 -0700 | [diff] [blame] | 190 | compatible_with = [ |
| 191 | "//tools:armhf-debian", |
| 192 | ], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 193 | linkopts = [ |
| 194 | "-lpthread", |
| 195 | ], |
| 196 | visibility = ["//visibility:public"], |
| 197 | deps = [ |
| 198 | ":logging", |
| 199 | ":sizes", |
| 200 | "//aos:once", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 201 | "//aos:die", |
| 202 | "//aos:macros", |
| 203 | "//aos/mutex:mutex", |
| 204 | "//aos:queue_types", |
| 205 | "//aos/time:time", |
| 206 | "//aos/type_traits:type_traits", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame^] | 207 | "//aos/ipc_lib:queue", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 208 | ], |
Brian Silverman | f480a61 | 2015-09-13 02:22:01 -0400 | [diff] [blame] | 209 | ) |