| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 ] | 212 ] |
| 213 if (current_cpu != "pnacl") { | 213 if (current_cpu != "pnacl") { |
| 214 deps += [ ":${executable_target_name}" ] | 214 deps += [ ":${executable_target_name}" ] |
| 215 } | 215 } |
| 216 } | 216 } |
| 217 | 217 |
| 218 action(executable_target_name) { | 218 action(executable_target_name) { |
| 219 if (current_cpu == "pnacl") { | 219 if (current_cpu == "pnacl") { |
| 220 input_file_extension = ".pexe" | 220 input_file_extension = ".pexe" |
| 221 output_file_extension = ".pexe.mojo" | 221 output_file_extension = ".pexe.mojo" |
| 222 content_handler = "pexe_content_handler" | 222 content_handler = "nacl_content_handler_nonsfi_pexe" |
| 223 } else { | 223 } else { |
| 224 input_file_extension = ".nexe" | 224 input_file_extension = ".nexe" |
| 225 output_file_extension = "_${target_cpu}.nexe.mojo" | 225 output_file_extension = "_${target_cpu}.nexe.mojo" |
| 226 content_handler = "nacl_content_handler" | 226 content_handler = "nacl_content_handler" |
| 227 } | 227 } |
| 228 input_file = "${base_target_name}${input_file_extension}" | 228 input_file = "${base_target_name}${input_file_extension}" |
| 229 output_file = "${base_target_name}${output_file_extension}" | 229 output_file = "${base_target_name}${output_file_extension}" |
| 230 | 230 |
| 231 forward_variables_from(invoker, | 231 forward_variables_from(invoker, |
| 232 [ | 232 [ |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 deps = [ | 427 deps = [ |
| 428 ":${copy_symbols_target}", | 428 ":${copy_symbols_target}", |
| 429 ] | 429 ] |
| 430 | 430 |
| 431 public_deps = [ | 431 public_deps = [ |
| 432 ":${zip_action_name}", | 432 ":${zip_action_name}", |
| 433 ] | 433 ] |
| 434 } | 434 } |
| 435 } | 435 } |
| 436 } | 436 } |
| OLD | NEW |