2020-01-17 22:15:01 +00:00
|
|
|
# Copyright 2020 The Pigweed Authors
|
2019-11-15 02:29:39 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-06-10 01:12:12 +00:00
|
|
|
import("//build_overrides/pigweed.gni")
|
|
|
|
|
2019-12-12 22:34:05 +00:00
|
|
|
import("$dir_pw_build/facade.gni")
|
2020-06-10 02:11:27 +00:00
|
|
|
import("$dir_pw_build/target_types.gni")
|
2019-12-06 21:06:01 +00:00
|
|
|
import("$dir_pw_docgen/docs.gni")
|
2020-12-16 18:19:41 +00:00
|
|
|
import("backend.gni")
|
2020-06-10 17:46:04 +00:00
|
|
|
|
2021-05-03 22:30:58 +00:00
|
|
|
config("public_include_path") {
|
2019-11-15 02:29:39 +00:00
|
|
|
include_dirs = [ "public" ]
|
|
|
|
}
|
|
|
|
|
2020-03-02 22:58:59 +00:00
|
|
|
pw_facade("pw_sys_io") {
|
2020-06-10 17:46:04 +00:00
|
|
|
backend = pw_sys_io_BACKEND
|
2021-05-03 22:30:58 +00:00
|
|
|
public_configs = [ ":public_include_path" ]
|
2021-01-20 00:49:33 +00:00
|
|
|
public_deps = [ dir_pw_status ]
|
2020-03-02 22:58:59 +00:00
|
|
|
public = [ "public/pw_sys_io/sys_io.h" ]
|
2019-11-15 02:29:39 +00:00
|
|
|
}
|
|
|
|
|
2020-06-10 02:11:27 +00:00
|
|
|
pw_source_set("default_putget_bytes") {
|
2020-02-27 19:43:49 +00:00
|
|
|
deps = [ ":facade" ]
|
2020-03-02 22:58:59 +00:00
|
|
|
sources = [ "sys_io.cc" ]
|
2019-11-15 02:29:39 +00:00
|
|
|
}
|
|
|
|
|
2019-12-06 21:06:01 +00:00
|
|
|
pw_doc_group("docs") {
|
2020-02-27 19:43:49 +00:00
|
|
|
sources = [ "docs.rst" ]
|
2019-12-06 21:06:01 +00:00
|
|
|
}
|