OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
| 5 import("//mojo/public/mojo_application.gni") |
5 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
6 | 7 |
7 group("echo") { | 8 group("echo") { |
8 deps = [ | 9 deps = [ |
9 ":client", | 10 ":client", |
10 ":service" | 11 ":service" |
11 ] | 12 ] |
12 } | 13 } |
13 | 14 |
14 shared_library("client") { | 15 mojo_native_application("client") { |
15 output_name = "echo_client" | 16 output_name = "echo_client" |
16 | 17 |
17 deps = [ | 18 deps = [ |
18 ":bindings", | 19 ":bindings", |
19 "//mojo/public/c/system:for_shared_library", | 20 "//mojo/public/c/system:for_shared_library", |
20 "//mojo/public/cpp/application:standalone", | 21 "//mojo/public/cpp/application:standalone", |
21 "//mojo/public/cpp/bindings", | 22 "//mojo/public/cpp/bindings", |
22 "//mojo/public/cpp/utility", | 23 "//mojo/public/cpp/utility", |
23 ] | 24 ] |
24 | 25 |
25 sources = [ "echo_client.cc" ] | 26 sources = [ "echo_client.cc" ] |
26 } | 27 } |
27 | 28 |
28 shared_library("service") { | 29 mojo_native_application("service") { |
29 output_name = "echo_service" | 30 output_name = "echo_service" |
30 | 31 |
31 deps = [ | 32 deps = [ |
32 ":bindings", | 33 ":bindings", |
33 "//mojo/public/c/system:for_shared_library", | 34 "//mojo/public/c/system:for_shared_library", |
34 "//mojo/public/cpp/application:standalone", | 35 "//mojo/public/cpp/application:standalone", |
35 "//mojo/public/cpp/bindings", | 36 "//mojo/public/cpp/bindings", |
36 "//mojo/public/cpp/utility", | 37 "//mojo/public/cpp/utility", |
37 ] | 38 ] |
38 | 39 |
39 sources = [ "echo_service.cc" ] | 40 sources = [ "echo_service.cc" ] |
40 } | 41 } |
41 | 42 |
42 mojom("bindings") { | 43 mojom("bindings") { |
43 sources = [ "echo_service.mojom" ] | 44 sources = [ "echo_service.mojom" ] |
44 } | 45 } |
OLD | NEW |