xref: /aosp_15_r20/external/pigweed/pw_random_fuchsia/BUILD.bazel (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1# Copyright 2024 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(
16    "@fuchsia_sdk//fuchsia:defs.bzl",
17    "fuchsia_cc_test",
18    "fuchsia_unittest_package",
19)
20load("//pw_bluetooth_sapphire/fuchsia:fuchsia_api_level.bzl", "FUCHSIA_API_LEVEL")
21
22package(default_visibility = ["//visibility:public"])
23
24licenses(["notice"])
25
26cc_library(
27    name = "zircon_random_generator",
28    hdrs = [
29        "public/pw_random_fuchsia/zircon_random_generator.h",
30    ],
31    strip_include_prefix = "public",
32    target_compatible_with = ["@platforms//os:fuchsia"],
33    deps = [
34        "//pw_random",
35        "//pw_span",
36    ],
37)
38
39fuchsia_cc_test(
40    name = "zircon_random_generator_test",
41    srcs = ["zircon_random_generator_test.cc"],
42    deps = [
43        ":zircon_random_generator",
44        "//pw_unit_test",
45        "//pw_unit_test:printf_main",
46    ],
47)
48
49fuchsia_unittest_package(
50    name = "test_pkg",
51    package_name = "zircon_random_generator_tests",
52    fuchsia_api_level = FUCHSIA_API_LEVEL,
53    tags = ["manual"],
54    unit_tests = [":zircon_random_generator_test"],
55)
56
57# Bazel does not yet support building docs.
58filegroup(
59    name = "docs",
60    srcs = ["docs.rst"],
61)
62