Wyatt Hepler | 0412a7d | 2020-01-28 16:27:32 -0800 | [diff] [blame] | 1 | # 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 | load( |
| 16 | "//pw_build:pigweed.bzl", |
| 17 | "pw_cc_library", |
| 18 | "pw_cc_test", |
| 19 | ) |
| 20 | |
Rob Mohr | 0681948 | 2020-04-06 13:25:43 -0700 | [diff] [blame] | 21 | package(default_visibility = ["//visibility:public"]) |
| 22 | |
| 23 | licenses(["notice"]) # Apache License 2.0 |
| 24 | |
Wyatt Hepler | 0412a7d | 2020-01-28 16:27:32 -0800 | [diff] [blame] | 25 | pw_cc_library( |
| 26 | name = "pw_minimal_cpp_stdlib", |
| 27 | srcs = [ |
| 28 | "public/internal/algorithm.h", |
| 29 | "public/internal/array.h", |
| 30 | "public/internal/cinttypes.h", |
Armando Montanez | 187389d | 2020-04-06 17:00:13 -0700 | [diff] [blame] | 31 | "public/internal/climits.h", |
Wyatt Hepler | 0412a7d | 2020-01-28 16:27:32 -0800 | [diff] [blame] | 32 | "public/internal/cmath.h", |
| 33 | "public/internal/cstdarg.h", |
| 34 | "public/internal/cstddef.h", |
| 35 | "public/internal/cstdint.h", |
| 36 | "public/internal/cstdio.h", |
| 37 | "public/internal/cstring.h", |
Wyatt Hepler | 1c9ce1b | 2020-01-31 17:34:38 -0800 | [diff] [blame] | 38 | "public/internal/initializer_list.h", |
Wyatt Hepler | 0412a7d | 2020-01-28 16:27:32 -0800 | [diff] [blame] | 39 | "public/internal/iterator.h", |
| 40 | "public/internal/limits.h", |
| 41 | "public/internal/new.h", |
| 42 | "public/internal/string_view.h", |
| 43 | "public/internal/type_traits.h", |
| 44 | "public/internal/utility.h", |
| 45 | ], |
| 46 | hdrs = [ |
| 47 | "public/algorithm", |
| 48 | "public/array", |
| 49 | "public/cinttypes", |
Armando Montanez | 187389d | 2020-04-06 17:00:13 -0700 | [diff] [blame] | 50 | "public/climits", |
Wyatt Hepler | 0412a7d | 2020-01-28 16:27:32 -0800 | [diff] [blame] | 51 | "public/cmath", |
| 52 | "public/cstdarg", |
| 53 | "public/cstddef", |
| 54 | "public/cstdint", |
| 55 | "public/cstdio", |
| 56 | "public/cstring", |
Wyatt Hepler | 1c9ce1b | 2020-01-31 17:34:38 -0800 | [diff] [blame] | 57 | "public/initializer_list", |
Wyatt Hepler | 0412a7d | 2020-01-28 16:27:32 -0800 | [diff] [blame] | 58 | "public/iterator", |
| 59 | "public/limits", |
| 60 | "public/new", |
| 61 | "public/string_view", |
| 62 | "public/type_traits", |
| 63 | "public/utility", |
| 64 | ], |
| 65 | copts = ["-nostdinc++"], |
| 66 | includes = ["public"], |
| 67 | ) |
| 68 | |
Wyatt Hepler | 023f35b | 2020-07-01 09:40:50 -0700 | [diff] [blame] | 69 | pw_cc_library( |
| 70 | name = "minimal_cpp_stdlib_isolated_test", |
| 71 | srcs = ["isolated_test.cc"], |
| 72 | copts = ["-nostdinc++"], |
| 73 | deps = [ |
| 74 | ":pw_minimal_cpp_stdlib", |
| 75 | "//pw_preprocessor", |
| 76 | ], |
| 77 | ) |
| 78 | |
Wyatt Hepler | 0412a7d | 2020-01-28 16:27:32 -0800 | [diff] [blame] | 79 | pw_cc_test( |
| 80 | name = "test", |
| 81 | srcs = [ |
| 82 | "test.cc", |
| 83 | ], |
Wyatt Hepler | 0412a7d | 2020-01-28 16:27:32 -0800 | [diff] [blame] | 84 | deps = [ |
Wyatt Hepler | 023f35b | 2020-07-01 09:40:50 -0700 | [diff] [blame] | 85 | ":pw_minimal_cpp_stdlib_isolated_test", |
Rob Mohr | 0681948 | 2020-04-06 13:25:43 -0700 | [diff] [blame] | 86 | "//pw_unit_test", |
Wyatt Hepler | 0412a7d | 2020-01-28 16:27:32 -0800 | [diff] [blame] | 87 | ], |
| 88 | ) |