Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / pigweed / repo / pw_rpc / size_report / BUILD.gn
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
15 import("//build_overrides/pigweed.gni")
16
17 import("$dir_pw_build/target_types.gni")
18
19 _deps = [
20   "$dir_pw_bloat:bloat_this_binary",
21   "..:server",
22   dir_pw_assert,
23   dir_pw_log,
24   dir_pw_sys_io,
25 ]
26
27 pw_executable("base") {
28   sources = [ "base.cc" ]
29   deps = _deps
30 }
31
32 pw_executable("base_with_nanopb") {
33   sources = [ "base_with_nanopb.cc" ]
34   deps = _deps + [ "$dir_pw_third_party/nanopb" ]
35 }
36
37 pw_executable("server_only") {
38   sources = [ "server_only.cc" ]
39   deps = _deps
40 }
41
42 pw_executable("server_with_echo_service") {
43   sources = [ "server_with_echo_service.cc" ]
44   deps = _deps + [ "../nanopb:echo_service" ]
45 }