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
16 import("//build_overrides/pigweed.gni")
18 import("$dir_pw_build/target_types.gni")
19 import("$dir_pw_docgen/docs.gni")
20 import("$dir_pw_unit_test/test.gni")
22 include_dirs = [ "public" ]
26 pw_source_set("method") {
27 public_configs = [ ":public" ]
28 public = [ "public/pw_rpc/internal/raw_method.h" ]
29 sources = [ "raw_method.cc" ]
37 pw_source_set("method_union") {
38 public_configs = [ ":public" ]
39 public = [ "public/pw_rpc/internal/raw_method_union.h" ]
40 public_deps = [ ":method" ]
43 pw_source_set("test_method_context") {
44 public_configs = [ ":public" ]
45 public = [ "public/pw_rpc/raw_test_method_context.h" ]
53 pw_test_group("tests") {
57 ":raw_method_union_test",
58 ":stub_generation_test",
62 pw_test("codegen_test") {
64 ":test_method_context",
65 "..:test_protos.pwpb",
66 "..:test_protos.raw_rpc",
69 sources = [ "codegen_test.cc" ]
72 pw_test("raw_method_test") {
76 "..:test_protos.pwpb",
77 "..:test_protos.raw_rpc",
81 sources = [ "raw_method_test.cc" ]
84 pw_test("raw_method_union_test") {
87 "..:test_protos.pwpb",
91 sources = [ "raw_method_union_test.cc" ]
94 pw_test("stub_generation_test") {
95 deps = [ "..:test_protos.raw_rpc" ]
96 sources = [ "stub_generation_test.cc" ]