Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: mojo/public/mojo_application.gni

Issue 794603002: Place the mojo_android_application output at the root output directory. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.gni") 5 import("mojo.gni")
6 import("mojo_sdk.gni") 6 import("mojo_sdk.gni")
7 7
8 # Generate a binary mojo application.The parameters of this template are those 8 # Generate a binary mojo application.The parameters of this template are those
9 # of a shared library. 9 # of a shared library.
10 template("mojo_native_application") { 10 template("mojo_native_application") {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 rebase_inputs = rebase_path(inputs, root_build_dir) 164 rebase_inputs = rebase_path(inputs, root_build_dir)
165 rebase_output = rebase_path(output, root_build_dir) 165 rebase_output = rebase_path(output, root_build_dir)
166 args = [ 166 args = [
167 "--inputs=$rebase_inputs", 167 "--inputs=$rebase_inputs",
168 "--output=$rebase_output", 168 "--output=$rebase_output",
169 ] 169 ]
170 } 170 }
171 171
172 if (defined(invoker.output_name)) { 172 if (defined(invoker.output_name)) {
173 mojo_output = "$target_out_dir/" + invoker.output_name + ".mojo" 173 mojo_output = "$root_out_dir/" + invoker.output_name + ".mojo"
174 } else { 174 } else {
175 mojo_output = "$target_out_dir/" + target_name + ".mojo" 175 mojo_output = "$root_out_dir/" + target_name + ".mojo"
176 } 176 }
177 177
178 action(target_name) { 178 action(target_name) {
179 script = rebase_path("mojo/public/tools/prepend.py", ".", mojo_root) 179 script = rebase_path("mojo/public/tools/prepend.py", ".", mojo_root)
180 180
181 input = zip_action_output 181 input = zip_action_output
182 inputs = [ input ] 182 inputs = [ input ]
183 183
184 output = mojo_output 184 output = mojo_output
185 outputs = [ output ] 185 outputs = [ output ]
186 186
187 rebase_input = rebase_path(input, root_build_dir) 187 rebase_input = rebase_path(input, root_build_dir)
188 rebase_output = rebase_path(output, root_build_dir) 188 rebase_output = rebase_path(output, root_build_dir)
189 args = [ 189 args = [
190 "--input=$rebase_input", 190 "--input=$rebase_input",
191 "--output=$rebase_output", 191 "--output=$rebase_output",
192 "--line=#!mojo:android_handler", 192 "--line=#!mojo:android_handler",
193 ] 193 ]
194 } 194 }
195 } 195 }
196 } 196 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698