• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2022 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("@com_google_protobuf//bazel:proto_library.bzl", "proto_library")
16load("//pw_protobuf_compiler:pw_proto_library.bzl", "pwpb_proto_library")
17
18package(default_visibility = ["//visibility:public"])
19
20proto_library(
21    name = "aggregate",
22    srcs = ["aggregate.proto"],
23    import_prefix = "proto_root",
24    strip_import_prefix = "/pw_protobuf_compiler/pw_nested_packages",
25    deps = [
26        "//pw_protobuf_compiler/pw_nested_packages/data_type/id",
27        "//pw_protobuf_compiler/pw_nested_packages/data_type/thing",
28        "//pw_protobuf_compiler/pw_nested_packages/data_type/thing:type_of_thing",
29    ],
30)
31
32pwpb_proto_library(
33    name = "aggregate_pwpb",
34    deps = [
35        ":aggregate",
36    ],
37)
38
39proto_library(
40    name = "aggregate_wrapper",
41    srcs = ["aggregate_wrapper.proto"],
42    import_prefix = "proto_root",
43    strip_import_prefix = "/pw_protobuf_compiler/pw_nested_packages",
44    deps = [
45        ":aggregate",
46        "//pw_protobuf_compiler/pw_nested_packages/data_type/id",
47        "//pw_protobuf_compiler/pw_nested_packages/data_type/thing:type_of_thing",
48    ],
49)
50
51pwpb_proto_library(
52    name = "aggregate_wrapper_pwpb",
53    deps = [
54        ":aggregate_wrapper",
55    ],
56)
57