| 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 # Trusted code | 5 # Trusted code |
| 6 if (!is_nacl) { | 6 if (!is_nacl) { |
| 7 # A simple shell for running untrusted binaries that talk to the Mojo | 7 # A simple shell for running untrusted binaries that talk to the Mojo |
| 8 # embedder. (No services.) | 8 # embedder. (No services.) |
| 9 executable("monacl_shell") { | 9 executable("monacl_shell") { |
| 10 testonly = true | 10 testonly = true |
| 11 sources = [ | 11 sources = [ |
| 12 "monacl_shell.cc", | 12 "monacl_shell.cc", |
| 13 ] | 13 ] |
| 14 deps = [ | 14 deps = [ |
| 15 "//base:base", | 15 "//base:base", |
| 16 "//mojo/edk/system:system", | 16 "//mojo/edk/system:system", |
| 17 "//nacl_bindings:monacl_sel", | 17 "//nacl_bindings:monacl_sel", |
| 18 ] | 18 ] |
| 19 | 19 |
| 20 data_deps = [ "//nacl_bindings:irt_mojo(//native_client/build/toolchain/nacl
:irt_${target_cpu})" ] | 20 data_deps = |
| 21 [ "//nacl_bindings:irt_mojo(//build/toolchain/nacl:irt_${target_cpu})" ] |
| 21 } | 22 } |
| 22 | 23 |
| 23 if (current_cpu == "x86") { | 24 if (current_cpu == "x86") { |
| 24 # Non-SFI NaCl currently supports x86-32 but not x86-64. Additionally, | 25 # Non-SFI NaCl currently supports x86-32 but not x86-64. Additionally, |
| 25 # PNaCl pexes assume 32-bit pointers. | 26 # PNaCl pexes assume 32-bit pointers. |
| 26 executable("monacl_shell_nonsfi") { | 27 executable("monacl_shell_nonsfi") { |
| 27 testonly = true | 28 testonly = true |
| 28 sources = [ | 29 sources = [ |
| 29 "monacl_shell_nonsfi.cc", | 30 "monacl_shell_nonsfi.cc", |
| 30 ] | 31 ] |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 group("mojo_nacl") { | 105 group("mojo_nacl") { |
| 105 deps = [ | 106 deps = [ |
| 106 "//services/nacl:nacl_content_handler", | 107 "//services/nacl:nacl_content_handler", |
| 107 "//services/nacl:nacl_content_handler_nonsfi", | 108 "//services/nacl:nacl_content_handler_nonsfi", |
| 108 ] | 109 ] |
| 109 } | 110 } |
| 110 | 111 |
| 111 group("mojo_pnacl_tests") { | 112 group("mojo_pnacl_tests") { |
| 112 testonly = true | 113 testonly = true |
| 113 deps = [ | 114 deps = [ |
| 114 ":monacl_test(//native_client/build/toolchain/nacl:newlib_pnacl)", | 115 ":monacl_test(//build/toolchain/nacl:newlib_pnacl)", |
| 115 ] | 116 ] |
| 116 } | 117 } |
| 117 | 118 |
| 118 group("mojo_nacl_tests") { | 119 group("mojo_nacl_tests") { |
| 119 testonly = true | 120 testonly = true |
| 120 deps = [ | 121 deps = [ |
| 121 ":mojo_nacl_tests_untrusted(//native_client/build/toolchain/nacl:clang_newli
b_${current_cpu})", | 122 ":mojo_nacl_tests_untrusted(//build/toolchain/nacl:clang_newlib_${current_cp
u})", |
| 122 ":monacl_shell", | 123 ":monacl_shell", |
| 123 ":monacl_shell_nonsfi_x86", | 124 ":monacl_shell_nonsfi_x86", |
| 124 ":mojo_pnacl_tests", | 125 ":mojo_pnacl_tests", |
| 125 ] | 126 ] |
| 126 } | 127 } |
| OLD | NEW |