mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-20 22:00:58 +00:00
f39cd8b5ba
This change adds support for compiling nanopb protobufs using pw_protobuf_compiler. The pw_protobuf_langs build variable is renamed to pw_protobuf_generators as there is no longer a 1:1 mapping of languages. To compile nanopb, add the "nanopb" generator to pw_protobuf_generators. The build variable $dir_third_party_nanopb must be set to point to a local installation of nanopb with GN support: https://github.com/frolv/nanopb/tree/gn-build The host build will run a test which compiles nanopb code if $dir_third_party_nanopb is set. Change-Id: I29bf8780644917f35203a538b0bd7e4f3ec40180
24 lines
820 B
Python
24 lines
820 B
Python
# Copyright 2020 The Pigweed Authors
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
# use this file except in compliance with the License. You may obtain a copy of
|
|
# the License at
|
|
#
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations under
|
|
# the License.
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
licenses(["notice"]) # Apache License 2.0
|
|
|
|
# TODO(frolv): Figure out how to support nanopb codegen in Bazel.
|
|
filegroup(
|
|
name = "nanopb_test",
|
|
srcs = ["nanopb_test.cc"],
|
|
)
|