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