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 = [ "//nacl_bindings:irt_mojo(//native_client/build/toolchain/nacl :irt_${target_cpu})" ] |
21 } | 21 } |
22 | 22 |
23 executable("monacl_shell_nonsfi") { | 23 executable("monacl_shell_nonsfi") { |
24 testonly = true | 24 testonly = true |
25 sources = [ | 25 sources = [ |
26 "monacl_shell_nonsfi.cc", | 26 "monacl_shell_nonsfi.cc", |
27 ] | 27 ] |
28 deps = [ | 28 deps = [ |
29 ":mojo_interface_nacl_nonsfi", | |
29 "//mojo/edk/system", | 30 "//mojo/edk/system", |
30 "//mojo/public/c/system", | |
31 "//mojo/public/platform/nacl:mojo_irt_header", | |
32 "//native_client/src/nonsfi/irt:irt_interfaces", | |
33 "//native_client/src/nonsfi/loader:elf_loader", | 31 "//native_client/src/nonsfi/loader:elf_loader", |
34 ] | 32 ] |
35 } | 33 } |
36 } | 34 } |
37 | 35 |
38 # Untrusted code | 36 # Untrusted code |
39 if (is_nacl) { | 37 if (is_nacl) { |
40 # Unit test for the Mojo public API. | 38 # Unit test for the Mojo public API. |
41 executable("monacl_test") { | 39 executable("monacl_test") { |
42 testonly = true | 40 testonly = true |
(...skipping 24 matching lines...) Expand all Loading... | |
67 #"//services/http_server", | 65 #"//services/http_server", |
68 "//services/http_server:apptests", | 66 "//services/http_server:apptests", |
69 "//services/view_manager:mojo_view_manager_client_apptests", | 67 "//services/view_manager:mojo_view_manager_client_apptests", |
70 "//services/view_manager:view_manager_service_apptests", | 68 "//services/view_manager:view_manager_service_apptests", |
71 "//services/window_manager:window_manager_apptests", | 69 "//services/window_manager:window_manager_apptests", |
72 "//shell:apptests", | 70 "//shell:apptests", |
73 ] | 71 ] |
74 } | 72 } |
75 } | 73 } |
76 | 74 |
75 source_set("mojo_interface_nacl_nonsfi") { | |
76 sources = [ | |
77 "mojo_interface_nacl_nonsfi.cc", | |
Mark Seaborn
2015/09/01 21:05:46
Naming nit: irt_mojo_nonsfi.cc perhaps?
It would
Sean Klein
2015/09/01 22:55:26
Done.
| |
78 "mojo_interface_nacl_nonsfi.h", | |
79 ] | |
80 | |
81 deps = [ | |
82 "//mojo/public/c/system", | |
83 "//mojo/public/platform/nacl:mojo_irt_header", | |
84 "//native_client/src/nonsfi/irt:irt_interfaces", | |
85 ] | |
86 } | |
87 | |
77 group("mojo_nacl") { | 88 group("mojo_nacl") { |
78 deps = [ | 89 deps = [ |
79 "//services/nacl:nacl_content_handler", | 90 "//services/nacl:nacl_content_handler", |
91 "//services/nacl:nacl_nonsfi_content_handler", | |
80 ] | 92 ] |
81 } | 93 } |
82 | 94 |
83 group("mojo_pnacl_tests") { | 95 group("mojo_pnacl_tests") { |
84 testonly = true | 96 testonly = true |
85 deps = [ | 97 deps = [ |
86 ":monacl_test(//native_client/build/toolchain/nacl:newlib_pnacl)", | 98 ":monacl_test(//native_client/build/toolchain/nacl:newlib_pnacl)", |
87 ] | 99 ] |
88 } | 100 } |
89 | 101 |
90 group("mojo_nacl_tests") { | 102 group("mojo_nacl_tests") { |
91 testonly = true | 103 testonly = true |
92 deps = [ | 104 deps = [ |
93 ":mojo_nacl_tests_untrusted(//native_client/build/toolchain/nacl:clang_newli b_${current_cpu})", | 105 ":mojo_nacl_tests_untrusted(//native_client/build/toolchain/nacl:clang_newli b_${current_cpu})", |
94 ":monacl_shell", | 106 ":monacl_shell", |
95 ":mojo_pnacl_tests", | 107 ":mojo_pnacl_tests", |
96 ] | 108 ] |
97 } | 109 } |
OLD | NEW |