• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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#
15
16load("@rules_cc//cc:cc_library.bzl", "cc_library")
17load("@rules_python//sphinxdocs:sphinx_docs_library.bzl", "sphinx_docs_library")
18load("//pw_build:compatibility.bzl", "incompatible_with_mcu")
19load("//pw_unit_test:pw_cc_test.bzl", "pw_cc_test")
20
21package(
22    default_visibility = ["//visibility:public"],
23    features = ["-layering_check"],
24)
25
26cc_library(
27    name = "sysdeps",
28    hdrs = ["sysdeps/sys/socket.h"],
29    copts = ["-Wno-unused-parameter"],
30    strip_include_prefix = "sysdeps",
31    target_compatible_with = incompatible_with_mcu(),
32    deps = ["@boringssl//:ssl"],
33)
34
35pw_cc_test(
36    name = "build_test",
37    srcs = [
38        "build_test.cc",
39    ],
40    deps = [
41        ":sysdeps",
42        "//pw_bytes",
43    ],
44)
45
46sphinx_docs_library(
47    name = "docs",
48    srcs = [
49        "docs.rst",
50    ],
51    target_compatible_with = incompatible_with_mcu(),
52)
53