| OLD | NEW |
| 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("//build/module_args/mojo.gni") | 5 import("//build/module_args/mojo.gni") |
| 6 import("mojo.gni") | 6 import("mojo.gni") |
| 7 import("mojo_sdk.gni") | 7 import("mojo_sdk.gni") |
| 8 | 8 |
| 9 # Generate a binary mojo application.The parameters of this template are those | 9 # Generate a binary mojo application.The parameters of this template are those |
| 10 # of a shared library. | 10 # of a shared library. |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 "${library_dir}/${library_name}", | 148 "${library_dir}/${library_name}", |
| 149 ] | 149 ] |
| 150 outputs = [ | 150 outputs = [ |
| 151 "${root_out_dir}/${output}", | 151 "${root_out_dir}/${output}", |
| 152 ] | 152 ] |
| 153 } | 153 } |
| 154 } else { | 154 } else { |
| 155 nexe_target_name = base_target_name + "_nexe" | 155 nexe_target_name = base_target_name + "_nexe" |
| 156 nexe_name = base_target_name + ".nexe" | 156 nexe_name = base_target_name + ".nexe" |
| 157 | 157 |
| 158 output = "${base_target_name}_${cpu_arch}.nexe.mojo" | 158 output = "${base_target_name}_${target_cpu}.nexe.mojo" |
| 159 | 159 |
| 160 executable(nexe_target_name) { | 160 executable(nexe_target_name) { |
| 161 output_name = base_target_name | 161 output_name = base_target_name |
| 162 | 162 |
| 163 if (defined(invoker.cflags)) { | 163 if (defined(invoker.cflags)) { |
| 164 cflags = invoker.cflags | 164 cflags = invoker.cflags |
| 165 } | 165 } |
| 166 if (defined(invoker.cflags_c)) { | 166 if (defined(invoker.cflags_c)) { |
| 167 cflags_c = invoker.cflags_c | 167 cflags_c = invoker.cflags_c |
| 168 } | 168 } |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 rebase_input = rebase_path(input, root_build_dir) | 345 rebase_input = rebase_path(input, root_build_dir) |
| 346 rebase_output = rebase_path(output, root_build_dir) | 346 rebase_output = rebase_path(output, root_build_dir) |
| 347 args = [ | 347 args = [ |
| 348 "--input=$rebase_input", | 348 "--input=$rebase_input", |
| 349 "--output=$rebase_output", | 349 "--output=$rebase_output", |
| 350 "--line=#!mojo mojo:android_handler", | 350 "--line=#!mojo mojo:android_handler", |
| 351 ] | 351 ] |
| 352 } | 352 } |
| 353 } | 353 } |
| 354 } | 354 } |
| OLD | NEW |