third_party.pigweed.src/BUILD.gn
Armando Montanez 04c56ae138 pw_build: Add pw_facade template
Introduces a pw_facade template that provides a useful error message
when a backend is used but not properly set. This change also changes
pigweed to build pw_docs and module tests by default.

Change-Id: Ie78a0e291782592289baa94d06fd06e493c56956
2019-12-13 11:26:08 -08:00

55 lines
1.4 KiB
Plaintext

# Copyright 2019 The Pigweed Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
import("$dir_pw_unit_test/test.gni")
# By default, Pigweed will build this target when invoking ninja.
group("default") {
deps = [
":pw_module_tests",
"$dir_pigweed/docs",
]
}
group("pw_facades") {
deps = [
"$dir_pw_dumb_io",
]
}
# All Pigweed modules that can be built using gn. This is not built by default.
group("pw_modules") {
deps = [
"$dir_pigweed/docs",
"$dir_pw_bloat",
"$dir_pw_preprocessor",
"$dir_pw_span",
"$dir_pw_status",
"$dir_pw_string",
"$dir_pw_unit_test",
"$dir_pw_varint",
]
}
# Targets for all module unit test groups.
pw_test_group("pw_module_tests") {
group_deps = [
"$dir_pw_preprocessor:tests",
"$dir_pw_span:tests",
"$dir_pw_status:tests",
"$dir_pw_string:tests",
"$dir_pw_varint:tests",
]
}