blob: 9223c448e757a51644392b3c8e21b5f6bbdcdcb3 [file] [log] [blame]
Austin Schuhf0736512015-09-07 01:22:16 -07001package(default_visibility = ['//visibility:public'])
2
Brian Silverman100534c2015-09-07 15:51:23 -04003cc_test(
4 name = 'logging_impl_test',
Austin Schuhf0736512015-09-07 01:22:16 -07005 srcs = [
Brian Silverman100534c2015-09-07 15:51:23 -04006 'logging_impl_test.cc',
Austin Schuhf0736512015-09-07 01:22:16 -07007 ],
8 deps = [
Brian Silverman258b9172015-09-19 14:32:57 -04009 '//aos/testing:googletest',
Brian Silverman100534c2015-09-07 15:51:23 -040010 '//aos/common/logging',
Austin Schuhf0736512015-09-07 01:22:16 -070011 ],
12)
13
14cc_library(
Brian Silverman100534c2015-09-07 15:51:23 -040015 name = 'queue_logging',
Austin Schuhf0736512015-09-07 01:22:16 -070016 srcs = [
Brian Silverman100534c2015-09-07 15:51:23 -040017 'queue_logging.cc',
Austin Schuh044e18b2015-10-21 20:17:09 -070018 'queue_logging-tmpl.h',
Brian Silverman100534c2015-09-07 15:51:23 -040019 ],
20 hdrs = [
21 'queue_logging.h',
Austin Schuhf0736512015-09-07 01:22:16 -070022 ],
23 deps = [
Brian Silverman100534c2015-09-07 15:51:23 -040024 '//aos/common/logging',
25 '//aos/common:die',
Austin Schuhf0736512015-09-07 01:22:16 -070026 '//aos/common:queue_types',
27 ],
28)
Brian Silverman100534c2015-09-07 15:51:23 -040029
30cc_library(
Austin Schuh044e18b2015-10-21 20:17:09 -070031 name = 'sizes',
32 hdrs = [
33 'sizes.h',
34 ],
35)
36
37cc_library(
Brian Silverman100534c2015-09-07 15:51:23 -040038 name = 'matrix_logging',
39 srcs = [
40 'matrix_logging.cc',
Austin Schuh044e18b2015-10-21 20:17:09 -070041 'matrix_logging-tmpl.h',
Brian Silverman100534c2015-09-07 15:51:23 -040042 ],
43 hdrs = [
44 'matrix_logging.h',
45 ],
46 deps = [
Brian Silverman258b9172015-09-19 14:32:57 -040047 '//aos/common:generated_queue_headers',
Brian Silverman100534c2015-09-07 15:51:23 -040048 '//aos/common/logging',
49 '//aos/common:die',
50 '//aos/common:queue_types',
51 '//third_party/eigen',
52 ],
53)
Brian Silvermanf480a612015-09-13 02:22:01 -040054
55cc_library(
Austin Schuh044e18b2015-10-21 20:17:09 -070056 name = 'logging_printf_formats',
57 hdrs = [
58 'logging_printf_formats.h',
59 ],
60 deps = [
61 '//aos/common:macros',
62 ],
63)
64
65cc_library(
Brian Silvermanf480a612015-09-13 02:22:01 -040066 name = 'logging_interface',
Austin Schuh044e18b2015-10-21 20:17:09 -070067 hdrs = [
68 'logging.h',
69 'logging_interface.h',
70 ],
Brian Silvermanf480a612015-09-13 02:22:01 -040071 srcs = [
72 'logging_interface.cc',
73 ],
Austin Schuh044e18b2015-10-21 20:17:09 -070074 copts = [
75 # TODO(austin): This is wrong.
76 '-Wno-error=format-nonliteral'
77 ],
Brian Silvermanf480a612015-09-13 02:22:01 -040078 deps = [
Brian Silvermanf480a612015-09-13 02:22:01 -040079 '//aos/common:die',
80 '//aos/common/libc:aos_strerror',
Austin Schuh044e18b2015-10-21 20:17:09 -070081 '//aos/linux_code/logging:linux_interface',
82 ],
83)
84
85cc_library(
86 name = 'context',
87 hdrs = [
88 'context.h',
89 ],
90 srcs = [
91 'context.cc',
92 ],
93 deps = [
94 ':sizes',
Brian Silvermanf480a612015-09-13 02:22:01 -040095 ],
96)
97
98cc_library(
99 name = 'logging',
100 srcs = [
101 'logging_impl.cc',
Brian Silvermanf480a612015-09-13 02:22:01 -0400102 ],
Austin Schuh044e18b2015-10-21 20:17:09 -0700103 hdrs = [
104 'logging_impl.h',
105 ],
Brian Silvermanf480a612015-09-13 02:22:01 -0400106 deps = [
Brian Silvermanf480a612015-09-13 02:22:01 -0400107 '//aos/common:time',
108 '//aos/common:once',
Brian Silvermanf480a612015-09-13 02:22:01 -0400109 '//aos/common:queue_types',
110 ],
111)