Alexei Frolov | f39cd8b | 2020-04-13 17:59:20 -0700 | [diff] [blame] | 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. |
Anthony DiGirolamo | d63bd74 | 2021-08-19 16:13:30 -0700 | [diff] [blame] | 14 | load("@com_google_protobuf//:protobuf.bzl", "py_proto_library") |
Jared Weinstein | 217b47a | 2021-09-01 13:27:49 -0700 | [diff] [blame] | 15 | load("@rules_proto_grpc//js:defs.bzl", "js_proto_library") |
Alexei Frolov | f39cd8b | 2020-04-13 17:59:20 -0700 | [diff] [blame] | 16 | |
| 17 | package(default_visibility = ["//visibility:public"]) |
| 18 | |
Rob Mohr | 5fc2541 | 2021-06-23 09:35:23 -0700 | [diff] [blame] | 19 | licenses(["notice"]) |
Alexei Frolov | f39cd8b | 2020-04-13 17:59:20 -0700 | [diff] [blame] | 20 | |
| 21 | # TODO(frolv): Figure out how to support nanopb codegen in Bazel. |
| 22 | filegroup( |
| 23 | name = "nanopb_test", |
| 24 | srcs = ["nanopb_test.cc"], |
| 25 | ) |
Anthony DiGirolamo | d63bd74 | 2021-08-19 16:13:30 -0700 | [diff] [blame] | 26 | |
| 27 | py_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 Weinstein | 217b47a | 2021-09-01 13:27:49 -0700 | [diff] [blame] | 34 | |
Ted Pudlik | 0e718cb | 2022-02-04 23:16:09 +0000 | [diff] [blame] | 35 | proto_library( |
| 36 | name = "test_protos", |
| 37 | srcs = [ |
Ted Pudlik | e4b6945 | 2022-02-04 23:52:03 +0000 | [diff] [blame] | 38 | "pw_protobuf_compiler_protos/nested/more_nesting/test.proto", |
| 39 | "pw_protobuf_compiler_protos/test.proto", |
Ted Pudlik | 0e718cb | 2022-02-04 23:16:09 +0000 | [diff] [blame] | 40 | ], |
| 41 | ) |
| 42 | |
Jared Weinstein | 217b47a | 2021-09-01 13:27:49 -0700 | [diff] [blame] | 43 | js_proto_library( |
| 44 | name = "test_protos_tspb", |
| 45 | protos = ["//pw_protobuf_compiler:test_protos"], |
| 46 | ) |