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