Keir Mierle | 3cee879 | 2020-01-22 17:08:13 -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 | |
Armando Montanez | fb3d3fb | 2020-06-09 18:12:12 -0700 | [diff] [blame] | 15 | import("//build_overrides/pigweed.gni") |
| 16 | |
Alexei Frolov | edd2f14 | 2020-06-09 19:11:27 -0700 | [diff] [blame] | 17 | import("$dir_pw_build/target_types.gni") |
Keir Mierle | ec9bf1b | 2020-03-03 10:27:01 -0800 | [diff] [blame] | 18 | import("$dir_pw_docgen/docs.gni") |
Wyatt Hepler | d49f8fe | 2020-10-15 10:13:47 -0700 | [diff] [blame] | 19 | |
Keir Mierle | 3cee879 | 2020-01-22 17:08:13 -0800 | [diff] [blame] | 20 | config("default_config") { |
| 21 | include_dirs = [ "public" ] |
| 22 | } |
| 23 | |
| 24 | config("backend_config") { |
| 25 | include_dirs = [ "public_overrides" ] |
| 26 | } |
| 27 | |
Alexei Frolov | 4c0428a | 2020-06-10 10:46:04 -0700 | [diff] [blame] | 28 | pw_source_set("pw_assert_basic") { |
| 29 | public_configs = [ |
| 30 | ":backend_config", |
| 31 | ":default_config", |
| 32 | ] |
| 33 | deps = [ ":core" ] |
| 34 | public = [ "public_overrides/pw_assert_backend/assert_backend.h" ] |
Keir Mierle | 3cee879 | 2020-01-22 17:08:13 -0800 | [diff] [blame] | 35 | } |
| 36 | |
Alexei Frolov | edd2f14 | 2020-06-09 19:11:27 -0700 | [diff] [blame] | 37 | pw_source_set("core") { |
Keir Mierle | 3cee879 | 2020-01-22 17:08:13 -0800 | [diff] [blame] | 38 | public_configs = [ ":default_config" ] |
| 39 | deps = [ |
| 40 | "$dir_pw_assert:facade", |
Keir Mierle | 3cee879 | 2020-01-22 17:08:13 -0800 | [diff] [blame] | 41 | "$dir_pw_preprocessor", |
| 42 | "$dir_pw_string", |
Armando Montanez | f7a5a74 | 2020-03-02 14:58:59 -0800 | [diff] [blame] | 43 | "$dir_pw_sys_io", |
Keir Mierle | 3cee879 | 2020-01-22 17:08:13 -0800 | [diff] [blame] | 44 | ] |
Rob Mohr | a0ba54f | 2020-02-27 11:43:49 -0800 | [diff] [blame] | 45 | public = [ "public/pw_assert_basic/assert_basic.h" ] |
Wyatt Hepler | 7e3f1d9 | 2020-08-07 14:09:03 -0700 | [diff] [blame] | 46 | sources = [ "assert_basic.cc" ] |
Keir Mierle | 3cee879 | 2020-01-22 17:08:13 -0800 | [diff] [blame] | 47 | } |
Keir Mierle | ec9bf1b | 2020-03-03 10:27:01 -0800 | [diff] [blame] | 48 | |
| 49 | pw_doc_group("docs") { |
| 50 | sources = [ "docs.rst" ] |
| 51 | } |