blob: a5ae2d26a6cd161593d24f6a500ed9863364cc9b [file] [log] [blame]
Ted Pudlikdf015c62022-02-02 22:32:26 +00001# 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"""WORK IN PROGRESS!
15
16Nanopb C++ library generating targets.
17"""
18
Rob Mohr2f2b7ae2022-02-22 13:28:36 -080019# TODO(pwbug/621) Enable unused variable check.
20# buildifier: disable=unused-variable
Ted Pudlikdf015c62022-02-02 22:32:26 +000021def pw_nanopb_cc_library(
22 name,
23 deps,
24 options = None,
25 **kwargs):
26 """Generates the nanopb C++ library.
27
28 deps: proto_library targets to convert using nanopb.
29 options: Path to the nanopb .options file. See
30 https://jpa.kapsi.fi/nanopb/docs/reference.html#proto-file-options
31 for the syntax.
32 """
33
34 # TODO(tpudlik): Implement this rule. Just a placeholder for now.
35 native.cc_library(
36 name = name,
37 )