blob: 12fdbd12aa65c94c6a12b933b49003dc1a729f4c [file] [log] [blame]
Wyatt Heplerc542a5d2020-01-15 15:43:10 -08001# 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
15load(
16 "//pw_build:pigweed.bzl",
17 "pw_cc_library",
18 "pw_cc_test",
19)
20
21package(default_visibility = ["//visibility:public"])
22
23licenses(["notice"]) # Apache License 2.0
24
25pw_cc_library(
26 name = "pw_polyfill",
27 hdrs = [
28 "public/pw_polyfill/language_features.h",
29 "public/pw_polyfill/standard.h",
30 ],
31 includes = ["public"],
32 deps = [":standard_library"],
33)
34
35pw_cc_library(
36 name = "overrides",
37 hdrs = [
Wyatt Heplerac6cdf22020-01-24 13:35:09 -080038 "public_overrides/assert.h",
Wyatt Heplerc542a5d2020-01-15 15:43:10 -080039 "public_overrides/cstddef",
40 "public_overrides/iterator",
41 "public_overrides/type_traits",
42 ],
43 includes = ["public_overrides"],
44 deps = [":standard_library"],
45)
46
47pw_cc_library(
48 name = "standard_library",
49 hdrs = [
Wyatt Heplerac6cdf22020-01-24 13:35:09 -080050 "standard_library_public/pw_polyfill/standard_library/assert.h",
Wyatt Heplerc542a5d2020-01-15 15:43:10 -080051 "standard_library_public/pw_polyfill/standard_library/cstddef.h",
52 "standard_library_public/pw_polyfill/standard_library/iterator.h",
53 "standard_library_public/pw_polyfill/standard_library/type_traits.h",
54 ],
55 includes = ["standard_library_public"],
56 visibility = ["//visibility:private"],
57)
58
59pw_cc_test(
60 name = "default_cpp_test",
61 srcs = [
62 "test.cc",
63 ],
64 deps = [
65 ":pw_polyfill",
Rob Mohrc8b55522020-04-07 07:27:31 -070066 ":standard_library",
Rob Mohr06819482020-04-06 13:25:43 -070067 "//pw_unit_test",
Wyatt Heplerc542a5d2020-01-15 15:43:10 -080068 ],
69)