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_${cpu_arch})" ] | 20 data_deps = [ "//nacl_bindings:irt_mojo(//native_client/build/toolchain/nacl
:irt_${target_cpu})" ] |
21 } | 21 } |
22 } | 22 } |
23 | 23 |
24 # Untrusted code | 24 # Untrusted code |
25 if (is_nacl) { | 25 if (is_nacl) { |
26 # Unit test for the Mojo public API. | 26 # Unit test for the Mojo public API. |
27 executable("monacl_test") { | 27 executable("monacl_test") { |
28 testonly = true | 28 testonly = true |
29 sources = [ | 29 sources = [ |
30 "//mojo/public/cpp/system/tests/core_unittest.cc", | 30 "//mojo/public/cpp/system/tests/core_unittest.cc", |
(...skipping 11 matching lines...) Expand all Loading... |
42 | 42 |
43 group("mojo_nacl") { | 43 group("mojo_nacl") { |
44 deps = [ | 44 deps = [ |
45 "//services/nacl:nacl_content_handler", | 45 "//services/nacl:nacl_content_handler", |
46 ] | 46 ] |
47 } | 47 } |
48 | 48 |
49 group("mojo_nacl_tests") { | 49 group("mojo_nacl_tests") { |
50 testonly = true | 50 testonly = true |
51 nacl_toolchain = | 51 nacl_toolchain = |
52 "//native_client/build/toolchain/nacl:clang_newlib_${cpu_arch}" | 52 "//native_client/build/toolchain/nacl:clang_newlib_${target_cpu}" |
53 deps = [ | 53 deps = [ |
54 ":monacl_shell", | 54 ":monacl_shell", |
55 ":monacl_test($nacl_toolchain)", | 55 ":monacl_test($nacl_toolchain)", |
56 "//examples/apptest($nacl_toolchain)", | 56 "//examples/apptest($nacl_toolchain)", |
57 "//examples/wget($nacl_toolchain)", | 57 "//examples/wget($nacl_toolchain)", |
58 ] | 58 ] |
59 } | 59 } |
OLD | NEW |