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