blob: b3e358d83ad4658849f019d190606f13025812ed [file] [log] [blame]
Austin Schuhf0736512015-09-07 01:22:16 -07001package(default_visibility = ['//visibility:public'])
2
Brian Silvermanf44f1242015-12-05 20:19:48 -05003cc_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
19cc_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
34cc_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
47cc_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
62cc_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
75cc_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
88cc_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 Silverman100534c2015-09-07 15:51:23 -0400106cc_test(
107 name = 'logging_impl_test',
Austin Schuhf0736512015-09-07 01:22:16 -0700108 srcs = [
Brian Silverman100534c2015-09-07 15:51:23 -0400109 'logging_impl_test.cc',
Austin Schuhf0736512015-09-07 01:22:16 -0700110 ],
111 deps = [
Brian Silverman258b9172015-09-19 14:32:57 -0400112 '//aos/testing:googletest',
Brian Silverman100534c2015-09-07 15:51:23 -0400113 '//aos/common/logging',
Austin Schuhf0736512015-09-07 01:22:16 -0700114 ],
115)
116
117cc_library(
Brian Silverman100534c2015-09-07 15:51:23 -0400118 name = 'queue_logging',
Austin Schuhf0736512015-09-07 01:22:16 -0700119 srcs = [
Brian Silverman100534c2015-09-07 15:51:23 -0400120 'queue_logging.cc',
Austin Schuh044e18b2015-10-21 20:17:09 -0700121 'queue_logging-tmpl.h',
Brian Silverman100534c2015-09-07 15:51:23 -0400122 ],
123 hdrs = [
124 'queue_logging.h',
Austin Schuhf0736512015-09-07 01:22:16 -0700125 ],
126 deps = [
Brian Silverman100534c2015-09-07 15:51:23 -0400127 '//aos/common/logging',
128 '//aos/common:die',
Austin Schuhf0736512015-09-07 01:22:16 -0700129 '//aos/common:queue_types',
130 ],
131)
Brian Silverman100534c2015-09-07 15:51:23 -0400132
133cc_library(
Austin Schuh044e18b2015-10-21 20:17:09 -0700134 name = 'sizes',
135 hdrs = [
136 'sizes.h',
137 ],
138)
139
140cc_library(
Brian Silverman100534c2015-09-07 15:51:23 -0400141 name = 'matrix_logging',
142 srcs = [
143 'matrix_logging.cc',
Austin Schuh044e18b2015-10-21 20:17:09 -0700144 'matrix_logging-tmpl.h',
Brian Silverman100534c2015-09-07 15:51:23 -0400145 ],
146 hdrs = [
147 'matrix_logging.h',
148 ],
149 deps = [
Brian Silverman258b9172015-09-19 14:32:57 -0400150 '//aos/common:generated_queue_headers',
Brian Silverman100534c2015-09-07 15:51:23 -0400151 '//aos/common/logging',
152 '//aos/common:die',
153 '//aos/common:queue_types',
154 '//third_party/eigen',
155 ],
156)
Brian Silvermanf480a612015-09-13 02:22:01 -0400157
158cc_library(
Austin Schuh044e18b2015-10-21 20:17:09 -0700159 name = 'logging_printf_formats',
160 hdrs = [
161 'logging_printf_formats.h',
162 ],
163 deps = [
164 '//aos/common:macros',
165 ],
166)
167
168cc_library(
Brian Silvermanf480a612015-09-13 02:22:01 -0400169 name = 'logging_interface',
Austin Schuh044e18b2015-10-21 20:17:09 -0700170 hdrs = [
171 'logging.h',
172 'logging_interface.h',
173 ],
Brian Silvermanf480a612015-09-13 02:22:01 -0400174 srcs = [
175 'logging_interface.cc',
176 ],
177 deps = [
Brian Silvermanf480a612015-09-13 02:22:01 -0400178 '//aos/common:die',
179 '//aos/common/libc:aos_strerror',
Brian Silvermanf44f1242015-12-05 20:19:48 -0500180 '//aos/common/logging:linux_interface',
Brian Silverman17291d82015-10-24 22:30:57 -0400181 '//aos/common:macros',
Austin Schuh044e18b2015-10-21 20:17:09 -0700182 ],
183)
184
185cc_library(
186 name = 'context',
187 hdrs = [
188 'context.h',
189 ],
190 srcs = [
191 'context.cc',
192 ],
193 deps = [
194 ':sizes',
Brian Silvermanf480a612015-09-13 02:22:01 -0400195 ],
196)
197
198cc_library(
199 name = 'logging',
200 srcs = [
201 'logging_impl.cc',
Brian Silvermanf480a612015-09-13 02:22:01 -0400202 ],
Austin Schuh044e18b2015-10-21 20:17:09 -0700203 hdrs = [
204 'logging_impl.h',
205 ],
Brian Silvermanf480a612015-09-13 02:22:01 -0400206 deps = [
Brian Silvermanf480a612015-09-13 02:22:01 -0400207 '//aos/common:time',
208 '//aos/common:once',
Brian Silvermanf480a612015-09-13 02:22:01 -0400209 '//aos/common:queue_types',
210 ],
211)