Keir Mierle | af5e358 | 2019-12-30 13:11:05 -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 | 0054a9b | 2020-03-13 13:06:24 -0700 | [diff] [blame] | 15 | import("$dir_pw_docgen/docs.gni") |
| 16 | |
Keir Mierle | af5e358 | 2019-12-30 13:11:05 -0800 | [diff] [blame] | 17 | config("default_config") { |
| 18 | include_dirs = [ "public" ] |
| 19 | } |
| 20 | |
| 21 | config("backend_config") { |
| 22 | include_dirs = [ "public_overrides" ] |
| 23 | } |
| 24 | |
| 25 | if (dir_pw_log_backend == dir_pw_log_basic) { |
| 26 | source_set("pw_log_basic") { |
| 27 | public_configs = [ |
| 28 | ":backend_config", |
| 29 | ":default_config", |
| 30 | ] |
Rob Mohr | a0ba54f | 2020-02-27 11:43:49 -0800 | [diff] [blame] | 31 | deps = [ ":pw_log_basic_core" ] |
| 32 | public = [ "public_overrides/pw_log_backend/log_backend.h" ] |
Keir Mierle | af5e358 | 2019-12-30 13:11:05 -0800 | [diff] [blame] | 33 | sources = public |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | source_set("pw_log_basic_core") { |
| 38 | public_configs = [ ":default_config" ] |
| 39 | deps = [ |
Keir Mierle | af5e358 | 2019-12-30 13:11:05 -0800 | [diff] [blame] | 40 | "$dir_pw_log:facade", |
| 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 | af5e358 | 2019-12-30 13:11:05 -0800 | [diff] [blame] | 44 | ] |
Rob Mohr | a0ba54f | 2020-02-27 11:43:49 -0800 | [diff] [blame] | 45 | public = [ "public/pw_log_basic/log_basic.h" ] |
Keir Mierle | af5e358 | 2019-12-30 13:11:05 -0800 | [diff] [blame] | 46 | sources = public + [ "log_basic.cc" ] |
| 47 | } |
Armando Montanez | 0054a9b | 2020-03-13 13:06:24 -0700 | [diff] [blame] | 48 | |
| 49 | pw_doc_group("docs") { |
| 50 | sources = [ "docs.rst" ] |
| 51 | } |