blob: ab0ca2840cf651710eadc5db1a8900a78efe96b3 [file] [log] [blame]
shaneajg9c19db42020-06-11 15:49:51 -04001# 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
15# gn-format disable
16import("//build_overrides/pigweed.gni")
17
18import("$dir_pw_bloat/bloat.gni")
19import("$dir_pw_build/target_types.gni")
20import("$dir_pw_docgen/docs.gni")
21import("$dir_pw_unit_test/test.gni")
22config("default_config") {
23 include_dirs = [ "public" ]
Wyatt Hepler0158ad72020-06-24 17:41:25 -070024 visibility = [ ":*" ]
shaneajg9c19db42020-06-11 15:49:51 -040025}
26
27pw_source_set("pw_bytes") {
28 public_configs = [ ":default_config" ]
Wyatt Hepler0158ad72020-06-24 17:41:25 -070029 public = [
30 "public/pw_bytes/byte_builder.h",
31 "public/pw_bytes/span.h",
32 ]
shaneajg9c19db42020-06-11 15:49:51 -040033 sources = [ "byte_builder.cc" ]
34 public_deps = [
Wyatt Hepler0158ad72020-06-24 17:41:25 -070035 dir_pw_preprocessor,
36 dir_pw_span,
37 dir_pw_status,
shaneajg9c19db42020-06-11 15:49:51 -040038 ]
39}
40
41pw_test_group("tests") {
42 tests = [ ":byte_builder_test" ]
43 group_deps = [
44 "$dir_pw_preprocessor:tests",
45 "$dir_pw_span:tests",
46 "$dir_pw_status:tests",
47 ]
48}
49
50pw_test("byte_builder_test") {
51 deps = [ ":pw_bytes" ]
52 sources = [ "byte_builder_test.cc" ]
53}
54
55pw_doc_group("docs") {
56 sources = [ "docs.rst" ]
57}