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_binary( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 24 | name = "binary_log_writer", |
| 25 | srcs = [ |
| 26 | "binary_log_writer.cc", |
| 27 | ], |
| 28 | visibility = ["//visibility:public"], |
| 29 | deps = [ |
| 30 | ":binary_log_file", |
| 31 | ":implementations", |
| 32 | ":logging", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 33 | "//aos:configuration", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 34 | "//aos:die", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 35 | "//aos:init", |
| 36 | "//aos/ipc_lib:queue", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 37 | "//aos/time", |
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 = "log_streamer", |
| 43 | srcs = [ |
| 44 | "log_streamer.cc", |
| 45 | ], |
| 46 | visibility = ["//visibility:public"], |
| 47 | deps = [ |
| 48 | ":implementations", |
| 49 | ":logging", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 50 | "//aos:init", |
| 51 | "//aos/ipc_lib:queue", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 52 | "//aos/time", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 53 | ], |
Brian Silverman | f44f124 | 2015-12-05 20:19:48 -0500 | [diff] [blame] | 54 | ) |
| 55 | |
| 56 | cc_binary( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 57 | name = "log_displayer", |
| 58 | srcs = [ |
| 59 | "log_displayer.cc", |
| 60 | ], |
| 61 | visibility = ["//visibility:public"], |
| 62 | deps = [ |
| 63 | ":binary_log_file", |
| 64 | ":implementations", |
| 65 | ":logging", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 66 | "//aos:configuration", |
| 67 | "//aos:init", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 68 | "//aos/util:string_to_num", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 69 | ], |
Brian Silverman | f44f124 | 2015-12-05 20:19:48 -0500 | [diff] [blame] | 70 | ) |
| 71 | |
| 72 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 73 | name = "binary_log_file", |
| 74 | srcs = [ |
| 75 | "binary_log_file.cc", |
| 76 | ], |
| 77 | hdrs = [ |
| 78 | "binary_log_file.h", |
| 79 | ], |
| 80 | deps = [ |
| 81 | ":implementations", |
| 82 | ], |
Austin Schuh | f073651 | 2015-09-07 01:22:16 -0700 | [diff] [blame] | 83 | ) |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 84 | |
| 85 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 86 | name = "sizes", |
| 87 | hdrs = [ |
| 88 | "sizes.h", |
| 89 | ], |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 90 | ) |
| 91 | |
Brian Silverman | cb5da1f | 2015-12-05 22:19:58 -0500 | [diff] [blame] | 92 | cc_test( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 93 | name = "implementations_test", |
| 94 | srcs = [ |
| 95 | "implementations_test.cc", |
| 96 | ], |
| 97 | deps = [ |
| 98 | ":implementations", |
| 99 | ":logging", |
| 100 | "//aos/testing:googletest", |
| 101 | ], |
Brian Silverman | cb5da1f | 2015-12-05 22:19:58 -0500 | [diff] [blame] | 102 | ) |
| 103 | |
| 104 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 105 | name = "printf_formats", |
| 106 | hdrs = [ |
| 107 | "printf_formats.h", |
| 108 | ], |
| 109 | visibility = ["//visibility:public"], |
| 110 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 111 | "//aos:macros", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 112 | ], |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 113 | ) |
| 114 | |
| 115 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 116 | name = "implementations", |
| 117 | srcs = [ |
| 118 | "implementations.cc", |
| 119 | ], |
| 120 | hdrs = [ |
| 121 | "implementations.h", |
| 122 | ], |
| 123 | linkopts = [ |
| 124 | "-lpthread", |
| 125 | ], |
| 126 | visibility = ["//visibility:public"], |
| 127 | deps = [ |
| 128 | ":logging", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 129 | ":printf_formats", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 130 | ":sizes", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 131 | "//aos:die", |
| 132 | "//aos:macros", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 133 | "//aos:once", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 134 | "//aos/ipc_lib:queue", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 135 | "//aos/mutex", |
| 136 | "//aos/time", |
| 137 | "//aos/type_traits", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 138 | ], |
Brian Silverman | f480a61 | 2015-09-13 02:22:01 -0400 | [diff] [blame] | 139 | ) |