Wyatt Hepler | 588907a | 2020-01-16 16:34:58 -0800 | [diff] [blame] | 1 | # Copyright 2020 The Pigweed Authors |
Wyatt Hepler | 7710565 | 2019-11-06 17:50:03 -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 | |
Armando Montanez | fb3d3fb | 2020-06-09 18:12:12 -0700 | [diff] [blame] | 15 | # gn-format disable |
| 16 | import("//build_overrides/pigweed.gni") |
| 17 | |
Alexei Frolov | edd2f14 | 2020-06-09 19:11:27 -0700 | [diff] [blame] | 18 | import("$dir_pw_build/target_types.gni") |
Wyatt Hepler | ee3e02f | 2019-12-05 10:52:31 -0800 | [diff] [blame] | 19 | import("$dir_pw_docgen/docs.gni") |
Wyatt Hepler | 7710565 | 2019-11-06 17:50:03 -0800 | [diff] [blame] | 20 | import("$dir_pw_unit_test/test.gni") |
Wyatt Hepler | 7710565 | 2019-11-06 17:50:03 -0800 | [diff] [blame] | 21 | config("default_config") { |
Wyatt Hepler | 69a5190 | 2020-06-22 10:42:53 -0700 | [diff] [blame] | 22 | include_dirs = [ |
| 23 | "public", |
| 24 | "public_overrides", |
| 25 | ] |
Wyatt Hepler | 7710565 | 2019-11-06 17:50:03 -0800 | [diff] [blame] | 26 | } |
| 27 | |
Alexei Frolov | edd2f14 | 2020-06-09 19:11:27 -0700 | [diff] [blame] | 28 | pw_source_set("pw_span") { |
Wyatt Hepler | 2119240 | 2020-01-15 15:40:51 -0800 | [diff] [blame] | 29 | public_configs = [ ":default_config" ] |
Rob Mohr | a0ba54f | 2020-02-27 11:43:49 -0800 | [diff] [blame] | 30 | public_deps = [ "$dir_pw_polyfill" ] |
Wyatt Hepler | 9f39234 | 2020-07-08 10:11:33 -0700 | [diff] [blame] | 31 | public = [ "public_overrides/span" ] |
Wyatt Hepler | 69a5190 | 2020-06-22 10:42:53 -0700 | [diff] [blame] | 32 | sources = [ "public/pw_span/internal/span.h" ] |
Wyatt Hepler | 7710565 | 2019-11-06 17:50:03 -0800 | [diff] [blame] | 33 | } |
| 34 | |
Alexei Frolov | a454c68 | 2019-11-19 10:55:07 -0800 | [diff] [blame] | 35 | pw_test_group("tests") { |
Wyatt Hepler | 9f39234 | 2020-07-08 10:11:33 -0700 | [diff] [blame] | 36 | tests = [ ":test" ] |
Alexei Frolov | a454c68 | 2019-11-19 10:55:07 -0800 | [diff] [blame] | 37 | } |
| 38 | |
Wyatt Hepler | 7710565 | 2019-11-06 17:50:03 -0800 | [diff] [blame] | 39 | pw_test("test") { |
Rob Mohr | a0ba54f | 2020-02-27 11:43:49 -0800 | [diff] [blame] | 40 | deps = [ ":pw_span" ] |
| 41 | sources = [ "span_test.cc" ] |
Wyatt Hepler | 7710565 | 2019-11-06 17:50:03 -0800 | [diff] [blame] | 42 | } |
Wyatt Hepler | ee3e02f | 2019-12-05 10:52:31 -0800 | [diff] [blame] | 43 | |
| 44 | pw_doc_group("docs") { |
Rob Mohr | a0ba54f | 2020-02-27 11:43:49 -0800 | [diff] [blame] | 45 | sources = [ "docs.rst" ] |
Wyatt Hepler | ee3e02f | 2019-12-05 10:52:31 -0800 | [diff] [blame] | 46 | } |