blob: 2b895ace6f2fcac90295248858abf17c0aed296b [file] [log] [blame]
Keir Mierleaf5e3582019-12-30 13:11:05 -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
15config("default_config") {
16 include_dirs = [ "public" ]
17}
18
19config("backend_config") {
20 include_dirs = [ "public_overrides" ]
21}
22
23if (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 Mohra0ba54f2020-02-27 11:43:49 -080029 deps = [ ":pw_log_basic_core" ]
30 public = [ "public_overrides/pw_log_backend/log_backend.h" ]
Keir Mierleaf5e3582019-12-30 13:11:05 -080031 sources = public
32 }
33}
34
35source_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 Mohra0ba54f2020-02-27 11:43:49 -080043 public = [ "public/pw_log_basic/log_basic.h" ]
Keir Mierleaf5e3582019-12-30 13:11:05 -080044 sources = public + [ "log_basic.cc" ]
45}