blob: de980608f9815e03f97f6189073fa41f112ee3e1 [file] [log] [blame]
Alexei Frolov26e3ae62020-05-04 17:06:17 -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
15import("$dir_pw_docgen/docs.gni")
16import("$dir_pw_unit_test/test.gni")
17
18config("default_config") {
19 include_dirs = [ "public" ]
20}
21
22source_set("pw_rpc") {
23 public_configs = [ ":default_config" ]
24 public_deps = [
25 dir_pw_assert,
26 dir_pw_span,
27 ]
28 public = [
29 "public/pw_rpc/channel.h",
30 "public/pw_rpc/server.h",
31 ]
32}
33
34pw_doc_group("docs") {
35 sources = [ "docs.rst" ]
36}
37
38pw_test_group("tests") {
39 tests = [ ":server_test" ]
40}
41
42pw_test("server_test") {
43 deps = [ ":pw_rpc" ]
44 sources = [ "server_test.cc" ]
45}