blob: 045285e8435759cc20f4e7aaa61fdca79bb5fa4d [file] [log] [blame]
Alexei Frolovf39cd8b2020-04-13 17:59:20 -07001# 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.
Anthony DiGirolamod63bd742021-08-19 16:13:30 -070014load("@com_google_protobuf//:protobuf.bzl", "py_proto_library")
Jared Weinstein217b47a2021-09-01 13:27:49 -070015load("@rules_proto_grpc//js:defs.bzl", "js_proto_library")
Alexei Frolovf39cd8b2020-04-13 17:59:20 -070016
17package(default_visibility = ["//visibility:public"])
18
Rob Mohr5fc25412021-06-23 09:35:23 -070019licenses(["notice"])
Alexei Frolovf39cd8b2020-04-13 17:59:20 -070020
21# TODO(frolv): Figure out how to support nanopb codegen in Bazel.
22filegroup(
23 name = "nanopb_test",
24 srcs = ["nanopb_test.cc"],
25)
Anthony DiGirolamod63bd742021-08-19 16:13:30 -070026
27py_proto_library(
28 name = "pw_protobuf_compiler_protos",
29 srcs = [
30 "pw_protobuf_compiler_protos/nested/more_nesting/test.proto",
31 "pw_protobuf_compiler_protos/test.proto",
32 ],
33)
Jared Weinstein217b47a2021-09-01 13:27:49 -070034
Ted Pudlik0e718cb2022-02-04 23:16:09 +000035proto_library(
36 name = "test_protos",
37 srcs = [
Ted Pudlike4b69452022-02-04 23:52:03 +000038 "pw_protobuf_compiler_protos/nested/more_nesting/test.proto",
39 "pw_protobuf_compiler_protos/test.proto",
Ted Pudlik0e718cb2022-02-04 23:16:09 +000040 ],
41)
42
Jared Weinstein217b47a2021-09-01 13:27:49 -070043js_proto_library(
44 name = "test_protos_tspb",
45 protos = ["//pw_protobuf_compiler:test_protos"],
46)