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 15include($ENV{PW_ROOT}/pw_build/pigweed.cmake) 16 17pw_add_module_library(pw_rpc.nanopb.method 18 SOURCES 19 nanopb_method.cc 20 PUBLIC_DEPS 21 pw_rpc.nanopb.common 22 pw_rpc.server 23 PRIVATE_DEPS 24 pw_log 25) 26 27pw_add_module_library(pw_rpc.nanopb.method_union 28 PUBLIC_DEPS 29 pw_rpc.nanopb.method 30 pw_rpc.raw 31 pw_rpc.server 32 PRIVATE_DEPS 33 pw_log 34) 35 36pw_add_module_library(pw_rpc.nanopb.client 37 SOURCES 38 nanopb_client_call.cc 39 PUBLIC_DEPS 40 pw_rpc.nanopb.common 41 pw_rpc.common 42) 43 44pw_add_module_library(pw_rpc.nanopb.common 45 SOURCES 46 nanopb_common.cc 47 PUBLIC_DEPS 48 pw_bytes 49 pw_rpc.common 50 pw_third_party.nanopb 51) 52 53pw_add_module_library(pw_rpc.nanopb.echo_service 54 PUBLIC_DEPS 55 pw_rpc.protos.nanopb_rpc 56) 57 58pw_auto_add_module_tests(pw_rpc.nanopb 59 PRIVATE_DEPS 60 pw_rpc.client 61 pw_rpc.raw 62 pw_rpc.server 63 pw_rpc.nanopb.common 64 pw_rpc.protos.nanopb_rpc 65 pw_rpc.test_protos.nanopb_rpc 66 pw_rpc.test_utils 67) 68