Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Side by Side Diff: mojo/nacl/BUILD.gn

Issue 1413683003: Expose MGL interface through NaCl IRT (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | mojo/nacl/irt_mojo_nonsfi.cc » ('j') | mojo/public/platform/nacl/libmojo.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "//mojo/gles2:mgl",
18 "//mojo/public/cpp/environment:standalone",
17 "//nacl_bindings:monacl_sel", 19 "//nacl_bindings:monacl_sel",
18 ] 20 ]
19 21
20 data_deps = 22 data_deps =
21 [ "//nacl_bindings:irt_mojo(//build/toolchain/nacl:irt_${target_cpu})" ] 23 [ "//nacl_bindings:irt_mojo(//build/toolchain/nacl:irt_${target_cpu})" ]
22 } 24 }
23 25
24 if (current_cpu == "x86" || current_cpu == "arm") { 26 if (current_cpu == "x86" || current_cpu == "arm") {
25 # Non-SFI NaCl currently supports x86-32 and ARMv7, but not anything 64-bit. 27 # Non-SFI NaCl currently supports x86-32 and ARMv7, but not anything 64-bit.
26 # Additionally, PNaCl pexes assume 32-bit pointers. 28 # Additionally, PNaCl pexes assume 32-bit pointers.
27 executable("monacl_shell_nonsfi") { 29 executable("monacl_shell_nonsfi") {
28 testonly = true 30 testonly = true
29 sources = [ 31 sources = [
30 "monacl_shell_nonsfi.cc", 32 "monacl_shell_nonsfi.cc",
31 ] 33 ]
32 deps = [ 34 deps = [
33 ":irt_mojo_nonsfi", 35 ":irt_mojo_nonsfi",
34 "//mojo/edk/system", 36 "//mojo/edk/system",
37 "//mojo/gles2:mgl",
38 "//mojo/public/cpp/environment:standalone",
35 "//native_client/src/nonsfi/loader:elf_loader", 39 "//native_client/src/nonsfi/loader:elf_loader",
36 ] 40 ]
37 } 41 }
38 } 42 }
39 } 43 }
40 44
41 group("monacl_shell_nonsfi_x86") { 45 group("monacl_shell_nonsfi_x86") {
42 testonly = true 46 testonly = true
43 deps = [] 47 deps = []
44 if ((target_cpu == "x64" || target_cpu == "x86") && is_linux) { 48 if ((target_cpu == "x64" || target_cpu == "x86") && is_linux) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 93 }
90 } 94 }
91 95
92 static_library("irt_mojo_nonsfi") { 96 static_library("irt_mojo_nonsfi") {
93 sources = [ 97 sources = [
94 "irt_mojo_nonsfi.cc", 98 "irt_mojo_nonsfi.cc",
95 "irt_mojo_nonsfi.h", 99 "irt_mojo_nonsfi.h",
96 ] 100 ]
97 101
98 deps = [ 102 deps = [
103 "//mojo/public/c/gpu:MGL",
104 "//mojo/public/c/gpu:MGL_onscreen",
99 "//mojo/public/c/system", 105 "//mojo/public/c/system",
100 "//mojo/public/platform/nacl:mojo_irt_header", 106 "//mojo/public/platform/nacl:mojo_irt_header",
101 "//native_client/src/nonsfi/irt:irt_interfaces", 107 "//native_client/src/nonsfi/irt:irt_interfaces",
102 ] 108 ]
103 } 109 }
104 110
105 group("mojo_nacl") { 111 group("mojo_nacl") {
106 deps = [ 112 deps = [
107 "//services/nacl:nacl_content_handler", 113 "//services/nacl:nacl_content_handler",
108 ] 114 ]
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 ] 200 ]
195 } 201 }
196 202
197 group("mojo_nacl_tests_nonsfi") { 203 group("mojo_nacl_tests_nonsfi") {
198 testonly = true 204 testonly = true
199 deps = [ 205 deps = [
200 ":monacl_shell_nonsfi_x86", 206 ":monacl_shell_nonsfi_x86",
201 ":monacl_test_nonsfi_nexes", 207 ":monacl_test_nonsfi_nexes",
202 ] 208 ]
203 } 209 }
OLDNEW
« no previous file with comments | « no previous file | mojo/nacl/irt_mojo_nonsfi.cc » ('j') | mojo/public/platform/nacl/libmojo.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698