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