Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / pigweed / repo / pw_string / BUILD
1 # Copyright 2019 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 load(
16     "//pw_build:pigweed.bzl",
17     "pw_cc_library",
18     "pw_cc_test",
19 )
20
21 package(default_visibility = ["//visibility:public"])
22
23 licenses(["notice"])  # Apache License 2.0
24
25 pw_cc_library(
26     name = "pw_string",
27     srcs = [
28         "format.cc",
29         "string_builder.cc",
30         "type_to_string.cc",
31     ],
32     hdrs = [
33         "public/pw_string/format.h",
34         "public/pw_string/string_builder.h",
35         "public/pw_string/to_string.h",
36         "public/pw_string/type_to_string.h",
37         "public/pw_string/util.h",
38     ],
39     includes = ["public"],
40     deps = [
41         "//pw_preprocessor",
42         "//pw_span",
43         "//pw_status",
44     ],
45 )
46
47 pw_cc_test(
48     name = "format_test",
49     srcs = ["format_test.cc"],
50     deps = [
51         ":pw_string",
52         "//pw_span",
53         "//pw_unit_test",
54     ],
55 )
56
57 pw_cc_test(
58     name = "type_to_string_test",
59     srcs = ["type_to_string_test.cc"],
60     deps = [
61         ":pw_string",
62         "//pw_unit_test",
63     ],
64 )
65
66 pw_cc_test(
67     name = "string_builder_test",
68     srcs = ["string_builder_test.cc"],
69     deps = [
70         ":pw_string",
71         "//pw_unit_test",
72     ],
73 )
74
75 pw_cc_test(
76     name = "to_string_test",
77     srcs = ["to_string_test.cc"],
78     deps = [
79         ":pw_string",
80         "//pw_status",
81         "//pw_unit_test",
82     ],
83 )
84
85 pw_cc_test(
86     name = "util_test",
87     srcs = ["util_test.cc"],
88     deps = [
89         ":pw_string",
90         "//pw_unit_test",
91     ],
92 )