Fixed building with a bazel with hdrs_check fixed again.
Change-Id: I015f66cd6e02e07efa367b96edd775015ac0abca
diff --git a/aos/common/logging/BUILD b/aos/common/logging/BUILD
index 8bd59b9..9223c44 100644
--- a/aos/common/logging/BUILD
+++ b/aos/common/logging/BUILD
@@ -15,6 +15,7 @@
name = 'queue_logging',
srcs = [
'queue_logging.cc',
+ 'queue_logging-tmpl.h',
],
hdrs = [
'queue_logging.h',
@@ -27,9 +28,17 @@
)
cc_library(
+ name = 'sizes',
+ hdrs = [
+ 'sizes.h',
+ ],
+)
+
+cc_library(
name = 'matrix_logging',
srcs = [
'matrix_logging.cc',
+ 'matrix_logging-tmpl.h',
],
hdrs = [
'matrix_logging.h',
@@ -44,14 +53,45 @@
)
cc_library(
+ name = 'logging_printf_formats',
+ hdrs = [
+ 'logging_printf_formats.h',
+ ],
+ deps = [
+ '//aos/common:macros',
+ ],
+)
+
+cc_library(
name = 'logging_interface',
+ hdrs = [
+ 'logging.h',
+ 'logging_interface.h',
+ ],
srcs = [
'logging_interface.cc',
],
+ copts = [
+ # TODO(austin): This is wrong.
+ '-Wno-error=format-nonliteral'
+ ],
deps = [
- '//aos/linux_code/logging:linux_interface',
'//aos/common:die',
'//aos/common/libc:aos_strerror',
+ '//aos/linux_code/logging:linux_interface',
+ ],
+)
+
+cc_library(
+ name = 'context',
+ hdrs = [
+ 'context.h',
+ ],
+ srcs = [
+ 'context.cc',
+ ],
+ deps = [
+ ':sizes',
],
)
@@ -60,11 +100,12 @@
srcs = [
'logging_impl.cc',
],
+ hdrs = [
+ 'logging_impl.h',
+ ],
deps = [
- '//aos/linux_code/logging:linux_logging',
'//aos/common:time',
'//aos/common:once',
- ':logging_interface',
'//aos/common:queue_types',
],
)