1 # Copyright 2020 The Pigweed Authors
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
7 # https://www.apache.org/licenses/LICENSE-2.0
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
15 include($ENV{PW_ROOT}/pw_build/pigweed.cmake)
16 include($ENV{PW_ROOT}/pw_protobuf_compiler/proto.cmake)
18 if(NOT "${dir_pw_third_party_nanopb}" STREQUAL "")
19 add_subdirectory(nanopb)
23 add_subdirectory(system_server)
25 pw_add_module_library(pw_rpc.server
36 pw_add_module_library(pw_rpc.client
46 pw_add_module_library(pw_rpc.common
61 pw_add_module_library(pw_rpc.synchronized_channel_output
67 add_library(pw_rpc.test_utils INTERFACE)
68 target_include_directories(pw_rpc.test_utils INTERFACE .)
70 pw_proto_library(pw_rpc.protos
72 pw_rpc_protos/internal/packet.proto
73 pw_rpc_protos/echo.proto
76 pw_proto_library(pw_rpc.test_protos
78 pw_rpc_test_protos/test.proto
81 pw_auto_add_module_tests(pw_rpc