blob: 6f879f7342ff0dbe4639911e78d40cb4bbd18b29 [file] [log] [blame]
Wyatt Heplerc9e51d22020-10-29 09:12:37 -07001# 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
Wyatt Heplerdcfa92b2020-11-10 09:47:30 -080017pw_add_module_library(pw_rpc.nanopb.method
18 SOURCES
Wyatt Hepler8ec2cf82021-07-09 17:18:41 -070019 method.cc
Wyatt Heplerc9e51d22020-10-29 09:12:37 -070020 PUBLIC_DEPS
Wyatt Heplerdcfa92b2020-11-10 09:47:30 -080021 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
Wyatt Heplerc9e51d22020-10-29 09:12:37 -070030 pw_rpc.raw
31 pw_rpc.server
32 PRIVATE_DEPS
Wyatt Heplerdcfa92b2020-11-10 09:47:30 -080033 pw_log
34)
35
36pw_add_module_library(pw_rpc.nanopb.client
37 SOURCES
Wyatt Hepler8ec2cf82021-07-09 17:18:41 -070038 client_call.cc
Wyatt Heplerdcfa92b2020-11-10 09:47:30 -080039 PUBLIC_DEPS
Alexei Frolovbebba902021-06-09 17:03:52 -070040 pw_function
Wyatt Heplerdcfa92b2020-11-10 09:47:30 -080041 pw_rpc.nanopb.common
42 pw_rpc.common
43)
44
45pw_add_module_library(pw_rpc.nanopb.common
46 SOURCES
Wyatt Hepler8ec2cf82021-07-09 17:18:41 -070047 common.cc
Wyatt Heplerdcfa92b2020-11-10 09:47:30 -080048 PUBLIC_DEPS
49 pw_bytes
50 pw_rpc.common
Wyatt Heplerc9e51d22020-10-29 09:12:37 -070051 pw_third_party.nanopb
Wyatt Heplerdcfa92b2020-11-10 09:47:30 -080052)
53
54pw_add_module_library(pw_rpc.nanopb.echo_service
55 PUBLIC_DEPS
Wyatt Hepler91741472021-02-03 08:45:10 -080056 pw_rpc.protos.nanopb_rpc
Wyatt Heplerdcfa92b2020-11-10 09:47:30 -080057)
58
59pw_auto_add_module_tests(pw_rpc.nanopb
60 PRIVATE_DEPS
61 pw_rpc.client
62 pw_rpc.raw
63 pw_rpc.server
64 pw_rpc.nanopb.common
Wyatt Hepler91741472021-02-03 08:45:10 -080065 pw_rpc.protos.nanopb_rpc
Wyatt Heplerc9e51d22020-10-29 09:12:37 -070066 pw_rpc.test_protos.nanopb_rpc
67 pw_rpc.test_utils
68)