blob: a43c95ca9094e3b41c86855ea1e20ec233af2212 [file] [log] [blame]
Keir Mierle3cee8792020-01-22 17:08:13 -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 Montanezfb3d3fb2020-06-09 18:12:12 -070015import("//build_overrides/pigweed.gni")
16
Alexei Frolovedd2f142020-06-09 19:11:27 -070017import("$dir_pw_build/target_types.gni")
Keir Mierleec9bf1b2020-03-03 10:27:01 -080018import("$dir_pw_docgen/docs.gni")
Wyatt Heplerd49f8fe2020-10-15 10:13:47 -070019
Keir Mierle3cee8792020-01-22 17:08:13 -080020config("default_config") {
21 include_dirs = [ "public" ]
22}
23
24config("backend_config") {
25 include_dirs = [ "public_overrides" ]
26}
27
Alexei Frolov4c0428a2020-06-10 10:46:04 -070028pw_source_set("pw_assert_basic") {
29 public_configs = [
30 ":backend_config",
31 ":default_config",
32 ]
33 deps = [ ":core" ]
34 public = [ "public_overrides/pw_assert_backend/assert_backend.h" ]
Keir Mierle3cee8792020-01-22 17:08:13 -080035}
36
Alexei Frolovedd2f142020-06-09 19:11:27 -070037pw_source_set("core") {
Keir Mierle3cee8792020-01-22 17:08:13 -080038 public_configs = [ ":default_config" ]
39 deps = [
40 "$dir_pw_assert:facade",
Keir Mierle3cee8792020-01-22 17:08:13 -080041 "$dir_pw_preprocessor",
42 "$dir_pw_string",
Armando Montanezf7a5a742020-03-02 14:58:59 -080043 "$dir_pw_sys_io",
Keir Mierle3cee8792020-01-22 17:08:13 -080044 ]
Rob Mohra0ba54f2020-02-27 11:43:49 -080045 public = [ "public/pw_assert_basic/assert_basic.h" ]
Wyatt Hepler7e3f1d92020-08-07 14:09:03 -070046 sources = [ "assert_basic.cc" ]
Keir Mierle3cee8792020-01-22 17:08:13 -080047}
Keir Mierleec9bf1b2020-03-03 10:27:01 -080048
49pw_doc_group("docs") {
50 sources = [ "docs.rst" ]
51}