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("//services/catalog/public/tools/catalog.gni") | |
6 import("//services/service_manager/public/cpp/service.gni") | 5 import("//services/service_manager/public/cpp/service.gni") |
7 import("//services/service_manager/public/service_manifest.gni") | 6 import("//services/service_manager/public/service_manifest.gni") |
8 import("//mojo/public/tools/bindings/mojom.gni") | 7 import("//mojo/public/tools/bindings/mojom.gni") |
9 import("//testing/test.gni") | 8 import("//testing/test.gni") |
10 | 9 |
11 source_set("lifecycle") { | 10 source_set("lifecycle") { |
12 testonly = true | 11 testonly = true |
13 sources = [ | 12 sources = [ |
14 "lifecycle_unittest.cc", | 13 "lifecycle_unittest.cc", |
15 ] | 14 ] |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 "//services/service_manager/public/interfaces", | 79 "//services/service_manager/public/interfaces", |
81 ] | 80 ] |
82 data_deps = [ | 81 data_deps = [ |
83 ":lifecycle_unittest_package_manifest", | 82 ":lifecycle_unittest_package_manifest", |
84 ] | 83 ] |
85 } | 84 } |
86 | 85 |
87 service_manifest("lifecycle_unittest_package_manifest") { | 86 service_manifest("lifecycle_unittest_package_manifest") { |
88 name = "lifecycle_unittest_package" | 87 name = "lifecycle_unittest_package" |
89 source = "package_manifest.json" | 88 source = "package_manifest.json" |
90 packaged_services = [ | 89 deps = [ |
91 ":lifecycle_unittest_package_app_a_manifest", | 90 ":lifecycle_unittest_package_app_a_manifest", |
92 ":lifecycle_unittest_package_app_b_manifest", | 91 ":lifecycle_unittest_package_app_b_manifest", |
93 ] | 92 ] |
| 93 packaged_services = [ |
| 94 "lifecycle_unittest_package_app_a", |
| 95 "lifecycle_unittest_package_app_b", |
| 96 ] |
94 } | 97 } |
95 | 98 |
96 service("lifecycle_unittest_app") { | 99 service("lifecycle_unittest_app") { |
97 testonly = true | 100 testonly = true |
98 sources = [ | 101 sources = [ |
99 "app.cc", | 102 "app.cc", |
100 ] | 103 ] |
101 deps = [ | 104 deps = [ |
102 ":app_client", | 105 ":app_client", |
103 ":interfaces", | 106 ":interfaces", |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 154 |
152 data_deps = [ | 155 data_deps = [ |
153 ":lifecycle_unittest_exe_manifest", | 156 ":lifecycle_unittest_exe_manifest", |
154 ] | 157 ] |
155 } | 158 } |
156 | 159 |
157 service_manifest("lifecycle_unittest_exe_manifest") { | 160 service_manifest("lifecycle_unittest_exe_manifest") { |
158 name = "lifecycle_unittest_exe" | 161 name = "lifecycle_unittest_exe" |
159 source = "exe_manifest.json" | 162 source = "exe_manifest.json" |
160 } | 163 } |
161 | |
162 catalog("catalog") { | |
163 embedded_services = [ ":manifest" ] | |
164 | |
165 standalone_services = [ | |
166 ":lifecycle_unittest_app_manifest", | |
167 ":lifecycle_unittest_exe_manifest", | |
168 ":lifecycle_unittest_package_manifest", | |
169 ":lifecycle_unittest_parent_manifest", | |
170 ] | |
171 } | |
OLD | NEW |