2020-01-13 19:30:58 +00:00
|
|
|
# Copyright 2020 The Pigweed Authors
|
2019-11-14 15:16:40 +00:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
|
|
# use this file except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at
|
|
|
|
#
|
|
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations under
|
|
|
|
# the License.
|
|
|
|
|
2019-11-14 18:23:28 +00:00
|
|
|
load(
|
|
|
|
"//pw_build:pigweed.bzl",
|
2019-11-18 19:09:39 +00:00
|
|
|
"pw_cc_library",
|
|
|
|
"pw_cc_test",
|
2019-11-14 18:23:28 +00:00
|
|
|
)
|
2019-11-14 15:16:40 +00:00
|
|
|
|
2019-11-19 17:50:42 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
licenses(["notice"]) # Apache License 2.0
|
|
|
|
|
2019-11-18 19:09:39 +00:00
|
|
|
pw_cc_library(
|
2019-11-14 15:16:40 +00:00
|
|
|
name = "pw_status",
|
2021-05-21 22:15:24 +00:00
|
|
|
srcs = [
|
|
|
|
"public/pw_status/internal/config.h",
|
|
|
|
"status.cc",
|
|
|
|
],
|
2019-11-14 17:16:03 +00:00
|
|
|
hdrs = [
|
|
|
|
"public/pw_status/status.h",
|
|
|
|
"public/pw_status/status_with_size.h",
|
2020-09-11 23:27:27 +00:00
|
|
|
"public/pw_status/try.h",
|
2019-11-14 17:16:03 +00:00
|
|
|
],
|
2020-01-06 18:30:14 +00:00
|
|
|
includes = ["public"],
|
2019-11-14 15:16:40 +00:00
|
|
|
)
|
2019-11-14 18:23:28 +00:00
|
|
|
|
2019-11-18 19:09:39 +00:00
|
|
|
pw_cc_test(
|
2019-11-14 18:23:28 +00:00
|
|
|
name = "status_test",
|
2020-01-13 19:30:58 +00:00
|
|
|
srcs = [
|
|
|
|
"status_test.cc",
|
2021-03-07 01:05:41 +00:00
|
|
|
"status_test_c.c",
|
2020-01-13 19:30:58 +00:00
|
|
|
],
|
2020-04-06 20:25:43 +00:00
|
|
|
deps = [
|
|
|
|
":pw_status",
|
|
|
|
"//pw_unit_test",
|
|
|
|
],
|
2019-11-14 18:23:28 +00:00
|
|
|
)
|
|
|
|
|
2019-11-18 19:09:39 +00:00
|
|
|
pw_cc_test(
|
2019-11-14 18:23:28 +00:00
|
|
|
name = "status_with_size_test",
|
|
|
|
srcs = ["status_with_size_test.cc"],
|
2020-04-06 20:25:43 +00:00
|
|
|
deps = [
|
|
|
|
":pw_status",
|
|
|
|
"//pw_unit_test",
|
|
|
|
],
|
2019-11-14 18:23:28 +00:00
|
|
|
)
|
2020-09-11 23:27:27 +00:00
|
|
|
|
|
|
|
pw_cc_test(
|
|
|
|
name = "try_test",
|
|
|
|
srcs = ["try_test.cc"],
|
|
|
|
deps = [
|
|
|
|
":pw_status",
|
|
|
|
"//pw_unit_test",
|
|
|
|
],
|
|
|
|
)
|