blob: 41b0747ba17f00e7fc67fd79d0b4a0d382f31ded [file] [log] [blame]
Wyatt Heplercb725c12020-05-01 11:05:01 -07001# 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
15load(
16 "//pw_build:pigweed.bzl",
17 "pw_cc_library",
18 "pw_cc_test",
19)
20
21package(default_visibility = ["//visibility:public"])
22
23licenses(["notice"]) # Apache License 2.0
24
25pw_cc_library(
26 name = "headers",
27 hdrs = [
Wyatt Hepler21ab0f42021-03-15 09:38:11 -070028 "public/pw_log_tokenized/config.h",
Wyatt Heplercb725c12020-05-01 11:05:01 -070029 "public/pw_log_tokenized/log_tokenized.h",
30 "public_overrides/pw_log_backend/log_backend.h",
31 ],
32 includes = [
33 "public",
34 "public_overrides",
35 ],
36 deps = [
37 "//pw_tokenizer",
38 ],
39)
40
41pw_cc_library(
42 name = "pw_log_tokenized",
43 deps = [
44 ":headers",
45 "//pw_log:facade",
46 ],
47)
48
Wyatt Hepler91659f22020-11-03 12:36:26 -080049pw_cc_library(
50 name = "base64_over_hdlc",
51 srcs = ["base64_over_hdlc.cc"],
52 hdrs = ["public/pw_log_tokenized/base64_over_hdlc.h"],
53 includes = ["public"],
54 deps = [
Alexei Frolovd3e5cb72021-01-08 13:08:45 -080055 "//pw_hdlc:encoder",
Wyatt Hepler91659f22020-11-03 12:36:26 -080056 "//pw_tokenizer:base64",
57 "//pw_tokenizer:global_handler_with_payload.facade",
58 ],
59)
60
Wyatt Heplercb725c12020-05-01 11:05:01 -070061pw_cc_test(
62 name = "test",
63 srcs = [
64 "test.cc",
65 ],
66 deps = [
67 ":headers",
68 "//pw_unit_test",
69 ],
70)