• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15load("@rules_python//sphinxdocs:sphinx_docs_library.bzl", "sphinx_docs_library")
16load("//pw_build:compatibility.bzl", "incompatible_with_mcu")
17
18package(default_visibility = ["//visibility:public"])
19
20licenses(["notice"])
21
22# TODO: b/298660977 - Add bazel support for CHRE.
23filegroup(
24    name = "chre",
25    srcs = [
26        "chre.cc",
27        "chre_api_re.cc",
28        "chre_empty_host_link.cc",
29        "context.cc",
30        "docs.rst",
31        "example_init.cc",
32        "host_link.cc",
33        "include",
34        "include/chre/target_platform/atomic_base.h",
35        "include/chre/target_platform/atomic_base_impl.h",
36        "include/chre/target_platform/condition_variable_base.h",
37        "include/chre/target_platform/condition_variable_impl.h",
38        "include/chre/target_platform/fatal_error.h",
39        "include/chre/target_platform/host_link_base.h",
40        "include/chre/target_platform/log.h",
41        "include/chre/target_platform/memory_impl.h",
42        "include/chre/target_platform/mutex_base.h",
43        "include/chre/target_platform/mutex_base_impl.h",
44        "include/chre/target_platform/platform_nanoapp_base.h",
45        "include/chre/target_platform/platform_sensor_base.h",
46        "include/chre/target_platform/platform_sensor_manager_base.h",
47        "include/chre/target_platform/platform_sensor_type_helpers_base.h",
48        "include/chre/target_platform/power_control_manager_base.h",
49        "include/chre/target_platform/static_nanoapp_init.h",
50        "include/chre/target_platform/system_timer_base.h",
51        "memory.cc",
52        "memory_manager.cc",
53        "platform_debug_dump_manager.cc",
54        "platform_nanoapp.cc",
55        "platform_pal.cc",
56        "power_control_manager.cc",
57        "public",
58        "public/pw_chre/chre.h",
59        "public/pw_chre/host_link.h",
60        "static_nanoapps.cc",
61        "system_time.cc",
62        "system_timer.cc",
63    ],
64)
65
66filegroup(
67    name = "doxygen",
68    srcs = [
69        "public/pw_chre/chre.h",
70        "public/pw_chre/host_link.h",
71    ],
72)
73
74sphinx_docs_library(
75    name = "docs",
76    srcs = [
77        "docs.rst",
78    ],
79    prefix = "pw_chre/",
80    target_compatible_with = incompatible_with_mcu(),
81)
82