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 | |
| 15 | config("default_config") { |
| 16 | include_dirs = [ "public" ] |
| 17 | } |
| 18 | |
| 19 | config("backend_config") { |
| 20 | include_dirs = [ "public_overrides" ] |
| 21 | } |
| 22 | |
| 23 | if (dir_pw_log_backend == dir_pw_log_basic) { |
| 24 | source_set("pw_log_basic") { |
| 25 | public_configs = [ |
| 26 | ":backend_config", |
| 27 | ":default_config", |
| 28 | ] |
Rob Mohr | a0ba54f | 2020-02-27 11:43:49 -0800 | [diff] [blame] | 29 | deps = [ ":pw_log_basic_core" ] |
| 30 | public = [ "public_overrides/pw_log_backend/log_backend.h" ] |
Keir Mierle | af5e358 | 2019-12-30 13:11:05 -0800 | [diff] [blame] | 31 | sources = public |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | source_set("pw_log_basic_core") { |
| 36 | public_configs = [ ":default_config" ] |
| 37 | deps = [ |
| 38 | "$dir_pw_dumb_io", |
| 39 | "$dir_pw_log:facade", |
| 40 | "$dir_pw_preprocessor", |
| 41 | "$dir_pw_string", |
| 42 | ] |
Rob Mohr | a0ba54f | 2020-02-27 11:43:49 -0800 | [diff] [blame] | 43 | public = [ "public/pw_log_basic/log_basic.h" ] |
Keir Mierle | af5e358 | 2019-12-30 13:11:05 -0800 | [diff] [blame] | 44 | sources = public + [ "log_basic.cc" ] |
| 45 | } |