Wyatt Hepler | 588907a | 2020-01-16 16:34:58 -0800 | [diff] [blame] | 1 | # Copyright 2020 The Pigweed Authors |
Rob Mohr | be98ead | 2019-11-14 07:16:40 -0800 | [diff] [blame] | 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 | |
Rob Mohr | be98ead | 2019-11-14 07:16:40 -0800 | [diff] [blame] | 15 | load( |
| 16 | "//pw_build:pigweed.bzl", |
Rob Mohr | c70366e | 2019-11-18 11:09:39 -0800 | [diff] [blame] | 17 | "pw_cc_library", |
| 18 | "pw_cc_test", |
Rob Mohr | be98ead | 2019-11-14 07:16:40 -0800 | [diff] [blame] | 19 | ) |
| 20 | |
Rob Mohr | c278750 | 2019-11-19 09:50:42 -0800 | [diff] [blame] | 21 | package(default_visibility = ["//visibility:public"]) |
| 22 | |
Rob Mohr | 5fc2541 | 2021-06-23 09:35:23 -0700 | [diff] [blame] | 23 | licenses(["notice"]) |
Rob Mohr | c278750 | 2019-11-19 09:50:42 -0800 | [diff] [blame] | 24 | |
Rob Mohr | c70366e | 2019-11-18 11:09:39 -0800 | [diff] [blame] | 25 | pw_cc_library( |
Rob Mohr | be98ead | 2019-11-14 07:16:40 -0800 | [diff] [blame] | 26 | name = "pw_span", |
Wyatt Hepler | 69a5190 | 2020-06-22 10:42:53 -0700 | [diff] [blame] | 27 | srcs = ["public/pw_span/internal/span.h"], |
Wyatt Hepler | 9f39234 | 2020-07-08 10:11:33 -0700 | [diff] [blame] | 28 | hdrs = ["public_overrides/span"], |
Nathaniel Brough | 389e88e | 2021-01-20 10:38:58 +0800 | [diff] [blame] | 29 | includes = [ |
| 30 | "public", |
| 31 | "public_overrides", |
| 32 | ], |
Wyatt Hepler | 588907a | 2020-01-16 16:34:58 -0800 | [diff] [blame] | 33 | deps = ["//pw_polyfill"], |
Rob Mohr | be98ead | 2019-11-14 07:16:40 -0800 | [diff] [blame] | 34 | ) |
| 35 | |
Rob Mohr | c70366e | 2019-11-18 11:09:39 -0800 | [diff] [blame] | 36 | pw_cc_test( |
Rob Mohr | be98ead | 2019-11-14 07:16:40 -0800 | [diff] [blame] | 37 | name = "span_test", |
| 38 | srcs = ["span_test.cc"], |
Rob Mohr | 0681948 | 2020-04-06 13:25:43 -0700 | [diff] [blame] | 39 | deps = [ |
| 40 | ":pw_span", |
| 41 | "//pw_unit_test", |
| 42 | ], |
Rob Mohr | be98ead | 2019-11-14 07:16:40 -0800 | [diff] [blame] | 43 | ) |