OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//services/shell/public/cpp/service.gni") |
6 import("//mojo/public/mojo_application_manifest.gni") | 6 import("//services/shell/public/service_manifest.gni") |
7 import("//mojo/public/tools/bindings/mojom.gni") | 7 import("//mojo/public/tools/bindings/mojom.gni") |
8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
9 | 9 |
10 source_set("shutdown") { | 10 source_set("shutdown") { |
11 testonly = true | 11 testonly = true |
12 sources = [ | 12 sources = [ |
13 "shutdown_unittest.cc", | 13 "shutdown_unittest.cc", |
14 ] | 14 ] |
15 | 15 |
16 deps = [ | 16 deps = [ |
(...skipping 15 matching lines...) Expand all Loading... |
32 } | 32 } |
33 | 33 |
34 mojom("interfaces") { | 34 mojom("interfaces") { |
35 sources = [ | 35 sources = [ |
36 "shutdown_unittest.mojom", | 36 "shutdown_unittest.mojom", |
37 ] | 37 ] |
38 | 38 |
39 use_new_wrapper_types = false | 39 use_new_wrapper_types = false |
40 } | 40 } |
41 | 41 |
42 mojo_application_manifest("shutdown_unittest_manifest") { | 42 service_manifest("shutdown_unittest_manifest") { |
43 application_name = "shutdown_unittest" | 43 name = "shutdown_unittest" |
44 source = "shutdown_unittest_manifest.json" | 44 source = "shutdown_unittest_manifest.json" |
45 } | 45 } |
46 | 46 |
47 mojo_application_manifest("shutdown_service_manifest") { | 47 service_manifest("shutdown_service_manifest") { |
48 application_name = "shutdown_service" | 48 name = "shutdown_service" |
49 source = "shutdown_service_manifest.json" | 49 source = "shutdown_service_manifest.json" |
50 } | 50 } |
51 | 51 |
52 mojo_native_application("shutdown_service") { | 52 service("shutdown_service") { |
53 testonly = true | 53 testonly = true |
54 sources = [ | 54 sources = [ |
55 "shutdown_service_app.cc", | 55 "shutdown_service_app.cc", |
56 ] | 56 ] |
57 deps = [ | 57 deps = [ |
58 ":interfaces", | 58 ":interfaces", |
59 "//base", | 59 "//base", |
60 "//services/shell/public/cpp:sources", | 60 "//services/shell/public/cpp:sources", |
61 "//services/shell/public/interfaces", | 61 "//services/shell/public/interfaces", |
62 ] | 62 ] |
63 data_deps = [ | 63 data_deps = [ |
64 ":shutdown_service_manifest", | 64 ":shutdown_service_manifest", |
65 ] | 65 ] |
66 } | 66 } |
67 | 67 |
68 mojo_application_manifest("shutdown_client_manifest") { | 68 service_manifest("shutdown_client_manifest") { |
69 application_name = "shutdown_client" | 69 name = "shutdown_client" |
70 source = "shutdown_client_manifest.json" | 70 source = "shutdown_client_manifest.json" |
71 } | 71 } |
72 | 72 |
73 mojo_native_application("shutdown_client") { | 73 service("shutdown_client") { |
74 testonly = true | 74 testonly = true |
75 sources = [ | 75 sources = [ |
76 "shutdown_client_app.cc", | 76 "shutdown_client_app.cc", |
77 ] | 77 ] |
78 deps = [ | 78 deps = [ |
79 ":interfaces", | 79 ":interfaces", |
80 "//base", | 80 "//base", |
81 "//services/shell/public/cpp:sources", | 81 "//services/shell/public/cpp:sources", |
82 "//services/shell/public/interfaces", | 82 "//services/shell/public/interfaces", |
83 ] | 83 ] |
84 data_deps = [ | 84 data_deps = [ |
85 ":shutdown_client_manifest", | 85 ":shutdown_client_manifest", |
86 ] | 86 ] |
87 } | 87 } |
OLD | NEW |