blob: 083c5e8e44ec2543bf0f239d2cc64143d774d5cf [file] [log] [blame]
Keir Mierleb776cb22020-08-14 16:46:50 -07001# 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
Keir Mierleb776cb22020-08-14 16:46:50 -070015import("//build_overrides/pigweed.gni")
16
17import("$dir_pw_build/target_types.gni")
18import("$dir_pw_docgen/docs.gni")
Wyatt Heplerd49f8fe2020-10-15 10:13:47 -070019
Keir Mierleb776cb22020-08-14 16:46:50 -070020config("default_config") {
21 include_dirs = [ "public" ]
22}
23
24config("backend_config") {
25 include_dirs = [ "public_overrides" ]
26}
27
28pw_source_set("pw_assert_log") {
29 public_configs = [
30 ":backend_config",
31 ":default_config",
32 ]
33 deps = [ ":core" ]
34 public_deps = [ "$dir_pw_log" ]
35 public = [ "public_overrides/pw_assert_backend/assert_backend.h" ]
36}
37
38pw_source_set("core") {
39 public_configs = [ ":default_config" ]
40 public_deps = [ "$dir_pw_log" ]
Ewout van Bekkume4d7b692020-10-15 13:12:30 -070041 deps = [
42 "$dir_pw_assert:facade",
43 "$dir_pw_preprocessor",
44 ]
Keir Mierleb776cb22020-08-14 16:46:50 -070045 public = [ "public/pw_assert_log/assert_log.h" ]
Keir Mierle854adec2020-09-03 14:07:19 -070046 sources = [ "assert_log.cc" ]
Keir Mierleb776cb22020-08-14 16:46:50 -070047}
48
49pw_doc_group("docs") {
50 sources = [ "docs.rst" ]
51}