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/shell/public/constants.gni") | 5 import("//services/service_manager/public/constants.gni") |
6 | 6 |
7 # Used to produce a Service Manifest for a Service. | 7 # Used to produce a Service Manifest for a Service. |
8 # | 8 # |
9 # Parameters: | 9 # Parameters: |
10 # | 10 # |
11 # source | 11 # source |
12 # The manifest file template for this service, must be valid JSON with | 12 # The manifest file template for this service, must be valid JSON with |
13 # a valid 'url' key matching name. | 13 # a valid 'url' key matching name. |
14 # | 14 # |
15 # overlays (optional) | 15 # overlays (optional) |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 assert(defined(invoker.deps), | 59 assert(defined(invoker.deps), |
60 "\"deps\" building the dependent packaged services must be " + | 60 "\"deps\" building the dependent packaged services must be " + |
61 "provided.") | 61 "provided.") |
62 } | 62 } |
63 if (defined(invoker.type)) { | 63 if (defined(invoker.type)) { |
64 assert(invoker.type == "mojo" || invoker.type == "exe", | 64 assert(invoker.type == "mojo" || invoker.type == "exe", |
65 "\"type\" must be one of \"mojo\" or \"exe\".") | 65 "\"type\" must be one of \"mojo\" or \"exe\".") |
66 } | 66 } |
67 | 67 |
68 action(target_name) { | 68 action(target_name) { |
69 script = "//services/shell/public/tools/manifest/manifest_collator.py" | 69 script = |
| 70 "//services/service_manager/public/tools/manifest/manifest_collator.py" |
70 | 71 |
71 type = "mojo" | 72 type = "mojo" |
72 if (defined(invoker.type)) { | 73 if (defined(invoker.type)) { |
73 type = invoker.type | 74 type = invoker.type |
74 } | 75 } |
75 | 76 |
76 name = invoker.name | 77 name = invoker.name |
77 inputs = [ | 78 inputs = [ |
78 invoker.source, | 79 invoker.source, |
79 ] | 80 ] |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 # targets themselves. | 138 # targets themselves. |
138 group("${target_name}__check_deps_are_all_service_manifest") { | 139 group("${target_name}__check_deps_are_all_service_manifest") { |
139 deps = [] | 140 deps = [] |
140 foreach(d, all_deps) { | 141 foreach(d, all_deps) { |
141 name = get_label_info(d, "label_no_toolchain") | 142 name = get_label_info(d, "label_no_toolchain") |
142 toolchain = get_label_info(d, "toolchain") | 143 toolchain = get_label_info(d, "toolchain") |
143 deps += [ "${name}__is_service_manifest(${toolchain})" ] | 144 deps += [ "${name}__is_service_manifest(${toolchain})" ] |
144 } | 145 } |
145 } | 146 } |
146 } | 147 } |
OLD | NEW |