blob: 9e780585d29d7aed24ed656afa5b1581e67030fe [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
Armando Montanez0054a9b2020-03-13 13:06:24 -070015import("$dir_pw_docgen/docs.gni")
16
Keir Mierleaf5e3582019-12-30 13:11:05 -080017config("default_config") {
18 include_dirs = [ "public" ]
19}
20
21config("backend_config") {
22 include_dirs = [ "public_overrides" ]
23}
24
25if (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 Mohra0ba54f2020-02-27 11:43:49 -080031 deps = [ ":pw_log_basic_core" ]
32 public = [ "public_overrides/pw_log_backend/log_backend.h" ]
Keir Mierleaf5e3582019-12-30 13:11:05 -080033 sources = public
34 }
35}
36
37source_set("pw_log_basic_core") {
38 public_configs = [ ":default_config" ]
39 deps = [
Keir Mierleaf5e3582019-12-30 13:11:05 -080040 "$dir_pw_log:facade",
41 "$dir_pw_preprocessor",
42 "$dir_pw_string",
Armando Montanezf7a5a742020-03-02 14:58:59 -080043 "$dir_pw_sys_io",
Keir Mierleaf5e3582019-12-30 13:11:05 -080044 ]
Rob Mohra0ba54f2020-02-27 11:43:49 -080045 public = [ "public/pw_log_basic/log_basic.h" ]
Keir Mierleaf5e3582019-12-30 13:11:05 -080046 sources = public + [ "log_basic.cc" ]
47}
Armando Montanez0054a9b2020-03-13 13:06:24 -070048
49pw_doc_group("docs") {
50 sources = [ "docs.rst" ]
51}