blob: 11fd53f9833ffe75940a54e3798f64682d70466e [file] [log] [blame]
Wyatt Hepler588907a2020-01-16 16:34:58 -08001# Copyright 2020 The Pigweed Authors
Wyatt Hepler77105652019-11-06 17:50:03 -08002#
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 Montanezfb3d3fb2020-06-09 18:12:12 -070015# gn-format disable
16import("//build_overrides/pigweed.gni")
17
Alexei Frolovedd2f142020-06-09 19:11:27 -070018import("$dir_pw_build/target_types.gni")
Wyatt Hepleree3e02f2019-12-05 10:52:31 -080019import("$dir_pw_docgen/docs.gni")
Wyatt Hepler77105652019-11-06 17:50:03 -080020import("$dir_pw_unit_test/test.gni")
Wyatt Hepler77105652019-11-06 17:50:03 -080021config("default_config") {
Wyatt Hepler69a51902020-06-22 10:42:53 -070022 include_dirs = [
23 "public",
24 "public_overrides",
25 ]
Wyatt Hepler77105652019-11-06 17:50:03 -080026}
27
Alexei Frolovedd2f142020-06-09 19:11:27 -070028pw_source_set("pw_span") {
Wyatt Hepler21192402020-01-15 15:40:51 -080029 public_configs = [ ":default_config" ]
Rob Mohra0ba54f2020-02-27 11:43:49 -080030 public_deps = [ "$dir_pw_polyfill" ]
Wyatt Hepler9f392342020-07-08 10:11:33 -070031 public = [ "public_overrides/span" ]
Wyatt Hepler69a51902020-06-22 10:42:53 -070032 sources = [ "public/pw_span/internal/span.h" ]
Wyatt Hepler77105652019-11-06 17:50:03 -080033}
34
Alexei Frolova454c682019-11-19 10:55:07 -080035pw_test_group("tests") {
Wyatt Hepler9f392342020-07-08 10:11:33 -070036 tests = [ ":test" ]
Alexei Frolova454c682019-11-19 10:55:07 -080037}
38
Wyatt Hepler77105652019-11-06 17:50:03 -080039pw_test("test") {
Rob Mohra0ba54f2020-02-27 11:43:49 -080040 deps = [ ":pw_span" ]
41 sources = [ "span_test.cc" ]
Wyatt Hepler77105652019-11-06 17:50:03 -080042}
Wyatt Hepleree3e02f2019-12-05 10:52:31 -080043
44pw_doc_group("docs") {
Rob Mohra0ba54f2020-02-27 11:43:49 -080045 sources = [ "docs.rst" ]
Wyatt Hepleree3e02f2019-12-05 10:52:31 -080046}