| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
| 6 | 6 |
| 7 # Trusted code | 7 # Trusted code |
| 8 if (!is_nacl) { | 8 if (!is_nacl) { |
| 9 mojo_native_application("nacl_content_handler") { | 9 mojo_native_application("nacl_content_handler") { |
| 10 sources = [ | 10 sources = [ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 mojo_native_application("nacl_content_handler_nonsfi_32_bit") { | 32 mojo_native_application("nacl_content_handler_nonsfi_32_bit") { |
| 33 sources = [ | 33 sources = [ |
| 34 "content_handler_main_nonsfi.cc", | 34 "content_handler_main_nonsfi.cc", |
| 35 ] | 35 ] |
| 36 | 36 |
| 37 deps = [ | 37 deps = [ |
| 38 "//base", | 38 "//base", |
| 39 "//mojo/application:application", | 39 "//mojo/application:application", |
| 40 "//mojo/application:content_handler", | 40 "//mojo/application:content_handler", |
| 41 "//mojo/data_pipe_utils", | 41 "//mojo/data_pipe_utils", |
| 42 "//mojo/public/platform/native:mgl_thunks", |
| 43 "//mojo/public/platform/native:mgl_onscreen_thunks", |
| 42 "//mojo/message_pump", | 44 "//mojo/message_pump", |
| 43 "//mojo/nacl/nonsfi:irt_mojo_nonsfi", | 45 "//mojo/nacl/nonsfi:irt_mojo_nonsfi", |
| 44 "//mojo/public/cpp/application:application", | 46 "//mojo/public/cpp/application:application", |
| 45 "//native_client/src/nonsfi/loader:elf_loader", | 47 "//native_client/src/nonsfi/loader:elf_loader", |
| 46 ] | 48 ] |
| 47 } | 49 } |
| 48 | 50 |
| 49 # Copy to the root build directory so that the '#!' prefix line for invoking | 51 # Copy to the root build directory so that the '#!' prefix line for invoking |
| 50 # our content handler can simply be "mojo:nacl_content_handler_nonsfi". | 52 # our content handler can simply be "mojo:nacl_content_handler_nonsfi". |
| 51 copy("nacl_content_handler_nonsfi_copy") { | 53 copy("nacl_content_handler_nonsfi_copy") { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 69 if ((target_cpu == "x64" || target_cpu == "x86") && is_linux) { | 71 if ((target_cpu == "x64" || target_cpu == "x86") && is_linux) { |
| 70 # The toolchain is hardcoded as 32-bit clang here -- although it must | 72 # The toolchain is hardcoded as 32-bit clang here -- although it must |
| 71 # be 32 bit (for nonsfi), it assumes clang. Ideally, the toolchain would | 73 # be 32 bit (for nonsfi), it assumes clang. Ideally, the toolchain would |
| 72 # be defined as the 32 bit variant of whatever is being used (be it clang, | 74 # be defined as the 32 bit variant of whatever is being used (be it clang, |
| 73 # gcc, or something else). | 75 # gcc, or something else). |
| 74 deps += [ ":nacl_content_handler_nonsfi_copy(//build/toolchain/linux:clang_x
86)" ] | 76 deps += [ ":nacl_content_handler_nonsfi_copy(//build/toolchain/linux:clang_x
86)" ] |
| 75 } else { | 77 } else { |
| 76 deps += [ ":nacl_content_handler_nonsfi_copy" ] | 78 deps += [ ":nacl_content_handler_nonsfi_copy" ] |
| 77 } | 79 } |
| 78 } | 80 } |
| OLD | NEW |