1# Copyright 2023 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 15import("//build_overrides/pigweed.gni") 16import("$dir_pw_chrono/backend.gni") 17import("$dir_pw_docgen/docs.gni") 18import("$dir_pw_unit_test/test.gni") 19 20config("public_include_path") { 21 include_dirs = [ "public" ] 22} 23 24pw_test_group("tests") { 25 tests = [ ":uart_test" ] 26} 27 28pw_source_set("uart") { 29 public_configs = [ ":public_include_path" ] 30 public = [ "public/pw_uart/uart.h" ] 31 public_deps = [ 32 "$dir_pw_assert", 33 "$dir_pw_bytes", 34 "$dir_pw_chrono:system_clock", 35 "$dir_pw_function", 36 "$dir_pw_span", 37 "$dir_pw_status", 38 ] 39} 40 41pw_test("uart_test") { 42 enable_if = pw_chrono_SYSTEM_CLOCK_BACKEND != "" 43 sources = [ "uart_test.cc" ] 44 deps = [ ":uart" ] 45} 46 47pw_doc_group("docs") { 48 inputs = [ "public/pw_uart/uart.h" ] 49 sources = [ "docs.rst" ] 50} 51