1# Copyright 2019 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 15load("//pw_build:compatibility.bzl", "host_backend_alias") 16load("//pw_build:pw_facade.bzl", "pw_facade") 17 18package(default_visibility = ["//visibility:public"]) 19 20licenses(["notice"]) 21 22pw_facade( 23 name = "pw_sys_io", 24 hdrs = ["public/pw_sys_io/sys_io.h"], 25 backend = ":backend", 26 strip_include_prefix = "public", 27 deps = [ 28 "//pw_bytes", 29 "//pw_status", 30 ], 31) 32 33label_flag( 34 name = "backend", 35 build_setting_default = ":unspecified_backend", 36) 37 38host_backend_alias( 39 name = "unspecified_backend", 40 backend = "//pw_sys_io_stdio", 41) 42 43cc_library( 44 name = "default_putget_bytes", 45 srcs = ["sys_io.cc"], 46 deps = [ 47 ":pw_sys_io.facade", 48 "//pw_span", 49 "//pw_status", 50 ], 51) 52 53filegroup( 54 name = "doxygen", 55 srcs = [ 56 "public/pw_sys_io/sys_io.h", 57 ], 58) 59