blob: 3e39d7bb22bfba7f0907d02fda38858f77da5c0a [file] [log] [blame]
Wyatt Hepler0412a7d2020-01-28 16:27:32 -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
21pw_cc_library(
22 name = "pw_minimal_cpp_stdlib",
23 srcs = [
24 "public/internal/algorithm.h",
25 "public/internal/array.h",
26 "public/internal/cinttypes.h",
27 "public/internal/cmath.h",
28 "public/internal/cstdarg.h",
29 "public/internal/cstddef.h",
30 "public/internal/cstdint.h",
31 "public/internal/cstdio.h",
32 "public/internal/cstring.h",
33 "public/internal/iterator.h",
34 "public/internal/limits.h",
35 "public/internal/new.h",
36 "public/internal/string_view.h",
37 "public/internal/type_traits.h",
38 "public/internal/utility.h",
39 ],
40 hdrs = [
41 "public/algorithm",
42 "public/array",
43 "public/cinttypes",
44 "public/cmath",
45 "public/cstdarg",
46 "public/cstddef",
47 "public/cstdint",
48 "public/cstdio",
49 "public/cstring",
50 "public/iterator",
51 "public/limits",
52 "public/new",
53 "public/string_view",
54 "public/type_traits",
55 "public/utility",
56 ],
57 copts = ["-nostdinc++"],
58 includes = ["public"],
59)
60
61pw_cc_test(
62 name = "test",
63 srcs = [
64 "test.cc",
65 ],
66 copts = ["-nostdinc++"],
67 deps = [
68 ":pw_minimal_cpp_stdlib",
69 ],
70)