Ted Pudlik | df015c6 | 2022-02-02 22:32:26 +0000 | [diff] [blame] | 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 | """WORK IN PROGRESS! |
| 15 | |
| 16 | Nanopb C++ library generating targets. |
| 17 | """ |
| 18 | |
Rob Mohr | 2f2b7ae | 2022-02-22 13:28:36 -0800 | [diff] [blame] | 19 | # TODO(pwbug/621) Enable unused variable check. |
| 20 | # buildifier: disable=unused-variable |
Ted Pudlik | df015c6 | 2022-02-02 22:32:26 +0000 | [diff] [blame] | 21 | def 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 | ) |