Wyatt Hepler | cb725c1 | 2020-05-01 11:05:01 -0700 | [diff] [blame] | 1 | # Copyright 2020 The Pigweed Authors |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 | # use this file except in compliance with the License. You may obtain a copy of |
| 5 | # the License at |
| 6 | # |
| 7 | # https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations under |
| 13 | # the License. |
| 14 | |
| 15 | load( |
| 16 | "//pw_build:pigweed.bzl", |
| 17 | "pw_cc_library", |
| 18 | "pw_cc_test", |
| 19 | ) |
| 20 | |
| 21 | package(default_visibility = ["//visibility:public"]) |
| 22 | |
Rob Mohr | 5fc2541 | 2021-06-23 09:35:23 -0700 | [diff] [blame] | 23 | licenses(["notice"]) |
Wyatt Hepler | cb725c1 | 2020-05-01 11:05:01 -0700 | [diff] [blame] | 24 | |
| 25 | pw_cc_library( |
| 26 | name = "headers", |
| 27 | hdrs = [ |
Wyatt Hepler | 21ab0f4 | 2021-03-15 09:38:11 -0700 | [diff] [blame] | 28 | "public/pw_log_tokenized/config.h", |
Wyatt Hepler | cb725c1 | 2020-05-01 11:05:01 -0700 | [diff] [blame] | 29 | "public/pw_log_tokenized/log_tokenized.h", |
Wyatt Hepler | ebbce4c | 2021-06-03 17:34:00 -0700 | [diff] [blame] | 30 | "public/pw_log_tokenized/metadata.h", |
Wyatt Hepler | cb725c1 | 2020-05-01 11:05:01 -0700 | [diff] [blame] | 31 | "public_overrides/pw_log_backend/log_backend.h", |
| 32 | ], |
| 33 | includes = [ |
| 34 | "public", |
| 35 | "public_overrides", |
| 36 | ], |
| 37 | deps = [ |
| 38 | "//pw_tokenizer", |
| 39 | ], |
| 40 | ) |
| 41 | |
| 42 | pw_cc_library( |
| 43 | name = "pw_log_tokenized", |
| 44 | deps = [ |
| 45 | ":headers", |
| 46 | "//pw_log:facade", |
| 47 | ], |
| 48 | ) |
| 49 | |
Wyatt Hepler | 91659f2 | 2020-11-03 12:36:26 -0800 | [diff] [blame] | 50 | pw_cc_library( |
| 51 | name = "base64_over_hdlc", |
| 52 | srcs = ["base64_over_hdlc.cc"], |
| 53 | hdrs = ["public/pw_log_tokenized/base64_over_hdlc.h"], |
| 54 | includes = ["public"], |
| 55 | deps = [ |
Alexei Frolov | d3e5cb7 | 2021-01-08 13:08:45 -0800 | [diff] [blame] | 56 | "//pw_hdlc:encoder", |
Wyatt Hepler | 91659f2 | 2020-11-03 12:36:26 -0800 | [diff] [blame] | 57 | "//pw_tokenizer:base64", |
| 58 | "//pw_tokenizer:global_handler_with_payload.facade", |
| 59 | ], |
| 60 | ) |
| 61 | |
Wyatt Hepler | cb725c1 | 2020-05-01 11:05:01 -0700 | [diff] [blame] | 62 | pw_cc_test( |
Wyatt Hepler | ebbce4c | 2021-06-03 17:34:00 -0700 | [diff] [blame] | 63 | name = "log_tokenized_test", |
Wyatt Hepler | cb725c1 | 2020-05-01 11:05:01 -0700 | [diff] [blame] | 64 | srcs = [ |
Wyatt Hepler | ebbce4c | 2021-06-03 17:34:00 -0700 | [diff] [blame] | 65 | "log_tokenized_test.cc", |
| 66 | "log_tokenized_test_c.c", |
| 67 | "pw_log_tokenized_private/test_utils.h", |
| 68 | ], |
| 69 | deps = [ |
| 70 | ":headers", |
| 71 | "//pw_unit_test", |
| 72 | ], |
| 73 | ) |
| 74 | |
| 75 | pw_cc_test( |
| 76 | name = "metadata_test", |
| 77 | srcs = [ |
| 78 | "metadata_test.cc", |
Wyatt Hepler | cb725c1 | 2020-05-01 11:05:01 -0700 | [diff] [blame] | 79 | ], |
| 80 | deps = [ |
| 81 | ":headers", |
| 82 | "//pw_unit_test", |
| 83 | ], |
| 84 | ) |