Wyatt Hepler | c9e51d2 | 2020-10-29 09:12:37 -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. |
| 14 | |
| 15 | include($ENV{PW_ROOT}/pw_build/pigweed.cmake) |
| 16 | |
Wyatt Hepler | dcfa92b | 2020-11-10 09:47:30 -0800 | [diff] [blame] | 17 | pw_add_module_library(pw_rpc.nanopb.method |
| 18 | SOURCES |
Wyatt Hepler | 8ec2cf8 | 2021-07-09 17:18:41 -0700 | [diff] [blame] | 19 | method.cc |
Wyatt Hepler | fa6edcc | 2021-08-20 08:30:08 -0700 | [diff] [blame^] | 20 | server_reader_writer.cc |
Wyatt Hepler | c9e51d2 | 2020-10-29 09:12:37 -0700 | [diff] [blame] | 21 | PUBLIC_DEPS |
Wyatt Hepler | dcfa92b | 2020-11-10 09:47:30 -0800 | [diff] [blame] | 22 | pw_rpc.nanopb.common |
| 23 | pw_rpc.server |
| 24 | PRIVATE_DEPS |
| 25 | pw_log |
| 26 | ) |
| 27 | |
| 28 | pw_add_module_library(pw_rpc.nanopb.method_union |
| 29 | PUBLIC_DEPS |
| 30 | pw_rpc.nanopb.method |
Wyatt Hepler | c9e51d2 | 2020-10-29 09:12:37 -0700 | [diff] [blame] | 31 | pw_rpc.raw |
| 32 | pw_rpc.server |
| 33 | PRIVATE_DEPS |
Wyatt Hepler | dcfa92b | 2020-11-10 09:47:30 -0800 | [diff] [blame] | 34 | pw_log |
| 35 | ) |
| 36 | |
| 37 | pw_add_module_library(pw_rpc.nanopb.client |
| 38 | SOURCES |
Wyatt Hepler | 8ec2cf8 | 2021-07-09 17:18:41 -0700 | [diff] [blame] | 39 | client_call.cc |
Wyatt Hepler | dcfa92b | 2020-11-10 09:47:30 -0800 | [diff] [blame] | 40 | PUBLIC_DEPS |
Alexei Frolov | bebba90 | 2021-06-09 17:03:52 -0700 | [diff] [blame] | 41 | pw_function |
Wyatt Hepler | dcfa92b | 2020-11-10 09:47:30 -0800 | [diff] [blame] | 42 | pw_rpc.nanopb.common |
| 43 | pw_rpc.common |
| 44 | ) |
| 45 | |
| 46 | pw_add_module_library(pw_rpc.nanopb.common |
| 47 | SOURCES |
Wyatt Hepler | 8ec2cf8 | 2021-07-09 17:18:41 -0700 | [diff] [blame] | 48 | common.cc |
Wyatt Hepler | dcfa92b | 2020-11-10 09:47:30 -0800 | [diff] [blame] | 49 | PUBLIC_DEPS |
| 50 | pw_bytes |
| 51 | pw_rpc.common |
Wyatt Hepler | c9e51d2 | 2020-10-29 09:12:37 -0700 | [diff] [blame] | 52 | pw_third_party.nanopb |
Wyatt Hepler | dcfa92b | 2020-11-10 09:47:30 -0800 | [diff] [blame] | 53 | ) |
| 54 | |
| 55 | pw_add_module_library(pw_rpc.nanopb.echo_service |
| 56 | PUBLIC_DEPS |
Wyatt Hepler | 9174147 | 2021-02-03 08:45:10 -0800 | [diff] [blame] | 57 | pw_rpc.protos.nanopb_rpc |
Wyatt Hepler | dcfa92b | 2020-11-10 09:47:30 -0800 | [diff] [blame] | 58 | ) |
| 59 | |
| 60 | pw_auto_add_module_tests(pw_rpc.nanopb |
| 61 | PRIVATE_DEPS |
| 62 | pw_rpc.client |
| 63 | pw_rpc.raw |
| 64 | pw_rpc.server |
| 65 | pw_rpc.nanopb.common |
Wyatt Hepler | 9174147 | 2021-02-03 08:45:10 -0800 | [diff] [blame] | 66 | pw_rpc.protos.nanopb_rpc |
Wyatt Hepler | c9e51d2 | 2020-10-29 09:12:37 -0700 | [diff] [blame] | 67 | pw_rpc.test_protos.nanopb_rpc |
| 68 | pw_rpc.test_utils |
| 69 | ) |