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/mojo_application.gni") |
6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
7 | 7 |
8 group("apptest") { | 8 group("apptest") { |
9 testonly = true | 9 testonly = true |
10 | 10 |
11 deps = [ | 11 deps = [ |
12 ":apptests", | 12 ":apptests", |
13 ":service", | 13 ":service", |
14 ] | 14 ] |
15 } | 15 } |
16 | 16 |
17 mojo_native_application("service") { | 17 mojo_native_application("service") { |
18 output_name = "example_service" | 18 output_name = "example_service" |
19 | 19 |
20 sources = [ | 20 sources = [ |
21 "example_service_application.cc", | 21 "example_service_application.cc", |
22 "example_service_application.h", | 22 "example_service_application.h", |
23 "example_service_impl.cc", | 23 "example_service_impl.cc", |
24 "example_service_impl.h", | 24 "example_service_impl.h", |
25 ] | 25 ] |
26 | 26 |
27 deps = [ | 27 deps = [ |
28 ":bindings", | 28 ":bindings", |
29 "//mojo/public/c/system:for_shared_library", | |
30 "//mojo/public/cpp/application:standalone", | 29 "//mojo/public/cpp/application:standalone", |
31 "//mojo/public/cpp/bindings", | 30 "//mojo/public/cpp/bindings", |
32 "//mojo/public/cpp/system", | 31 "//mojo/public/cpp/system", |
33 "//mojo/public/cpp/utility", | 32 "//mojo/public/cpp/utility", |
34 ] | 33 ] |
35 } | 34 } |
36 | 35 |
37 mojo_native_application("apptests") { | 36 mojo_native_application("apptests") { |
38 output_name = "example_apptests" | 37 output_name = "example_apptests" |
39 | 38 |
40 testonly = true | 39 testonly = true |
41 | 40 |
42 sources = [ | 41 sources = [ |
43 "example_apptest.cc", | 42 "example_apptest.cc", |
44 "example_client_impl.cc", | 43 "example_client_impl.cc", |
45 "example_client_impl.h", | 44 "example_client_impl.h", |
46 ] | 45 ] |
47 | 46 |
48 deps = [ | 47 deps = [ |
49 ":bindings", | 48 ":bindings", |
50 "//mojo/public/c/system:for_shared_library", | |
51 "//mojo/public/cpp/application:standalone", | 49 "//mojo/public/cpp/application:standalone", |
52 "//mojo/public/cpp/application:test_support_standalone", | 50 "//mojo/public/cpp/application:test_support_standalone", |
53 "//mojo/public/cpp/bindings:callback", | 51 "//mojo/public/cpp/bindings:callback", |
54 "//mojo/public/cpp/environment", | 52 "//mojo/public/cpp/environment", |
55 "//mojo/public/cpp/system", | 53 "//mojo/public/cpp/system", |
56 ] | 54 ] |
57 | 55 |
58 datadeps = [ ":service", ] | 56 datadeps = [ ":service", ] |
59 } | 57 } |
60 | 58 |
61 mojom("bindings") { | 59 mojom("bindings") { |
62 sources = [ "example_service.mojom" ] | 60 sources = [ "example_service.mojom" ] |
63 } | 61 } |
OLD | NEW |