| 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_constants.gni") | 5 import("//mojo/public/mojo_constants.gni") |
| 6 | 6 |
| 7 # Used to produce a Mojo Application Manifest for an application. | 7 # Used to produce a Mojo Application Manifest for an application. |
| 8 # | 8 # |
| 9 # Parameters: | 9 # Parameters: |
| 10 # | 10 # |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } | 100 } |
| 101 | 101 |
| 102 if (defined(invoker.packaged_applications)) { | 102 if (defined(invoker.packaged_applications)) { |
| 103 foreach(application_name, invoker.packaged_applications) { | 103 foreach(application_name, invoker.packaged_applications) { |
| 104 input = "$root_out_dir/$mojo_application_subdir/$application_name/manife
st.json" | 104 input = "$root_out_dir/$mojo_application_subdir/$application_name/manife
st.json" |
| 105 inputs += [ input ] | 105 inputs += [ input ] |
| 106 args += [ rebase_path(input, root_build_dir) ] | 106 args += [ rebase_path(input, root_build_dir) ] |
| 107 } | 107 } |
| 108 } | 108 } |
| 109 deps = [] | 109 deps = [] |
| 110 data_deps = [] |
| 110 if (defined(invoker.deps)) { | 111 if (defined(invoker.deps)) { |
| 111 deps += invoker.deps | 112 deps += invoker.deps |
| 113 data_deps += invoker.deps |
| 112 } | 114 } |
| 113 if (defined(invoker.base_deps)) { | 115 if (defined(invoker.base_deps)) { |
| 114 deps += invoker.base_deps | 116 deps += invoker.base_deps |
| 117 data_deps += invoker.base_deps |
| 115 } | 118 } |
| 116 } | 119 } |
| 117 | 120 |
| 118 all_deps = [] | 121 all_deps = [] |
| 119 if (defined(invoker.deps)) { | 122 if (defined(invoker.deps)) { |
| 120 all_deps += invoker.deps | 123 all_deps += invoker.deps |
| 121 } | 124 } |
| 122 | 125 |
| 123 group("${target_name}__is_mojo_application_manifest") { | 126 group("${target_name}__is_mojo_application_manifest") { |
| 124 } | 127 } |
| 125 | 128 |
| 126 # Explicitly ensure that all dependencies are mojo_application_manifest | 129 # Explicitly ensure that all dependencies are mojo_application_manifest |
| 127 # targets themselves. | 130 # targets themselves. |
| 128 group("${target_name}__check_deps_are_all_mojo_application_manifest") { | 131 group("${target_name}__check_deps_are_all_mojo_application_manifest") { |
| 129 deps = [] | 132 deps = [] |
| 130 foreach(d, all_deps) { | 133 foreach(d, all_deps) { |
| 131 name = get_label_info(d, "label_no_toolchain") | 134 name = get_label_info(d, "label_no_toolchain") |
| 132 toolchain = get_label_info(d, "toolchain") | 135 toolchain = get_label_info(d, "toolchain") |
| 133 deps += [ "${name}__is_mojo_application_manifest(${toolchain})" ] | 136 deps += [ "${name}__is_mojo_application_manifest(${toolchain})" ] |
| 134 } | 137 } |
| 135 } | 138 } |
| 136 } | 139 } |
| OLD | NEW |