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

Side by Side Diff: components/nacl/loader/BUILD.gn

Issue 2501913002: Change the NaCl loader and broker processes to use the ServiceManager. (Closed)
Patch Set: Created 4 years 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
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 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/nacl/config.gni") 6 import("//build/config/nacl/config.gni")
7 import("//services/service_manager/public/service_manifest.gni")
7 import("//testing/test.gni") 8 import("//testing/test.gni")
8 9
9 assert(enable_nacl) 10 assert(enable_nacl)
10 11
11 # This is separate so it can be used by ../broker:nacl64. 12 # This is separate so it can be used by ../broker:nacl64.
12 source_set("minimal") { 13 source_set("minimal") {
13 sources = [ 14 sources = [
14 "nacl_ipc_adapter.cc", 15 "nacl_ipc_adapter.cc",
15 "nacl_ipc_adapter.h", 16 "nacl_ipc_adapter.h",
16 "nacl_listener.cc", 17 "nacl_listener.cc",
(...skipping 14 matching lines...) Expand all
31 ":minimal_content_dummy", 32 ":minimal_content_dummy",
32 "//base", 33 "//base",
33 "//components/nacl/common:minimal", 34 "//components/nacl/common:minimal",
34 "//crypto", 35 "//crypto",
35 "//ipc", 36 "//ipc",
36 "//mojo/edk/system", 37 "//mojo/edk/system",
37 "//native_client/src/trusted/service_runtime:sel_main_chrome", 38 "//native_client/src/trusted/service_runtime:sel_main_chrome",
38 "//ppapi/c", 39 "//ppapi/c",
39 "//ppapi/proxy:ipc", 40 "//ppapi/proxy:ipc",
40 "//sandbox", 41 "//sandbox",
42 "//services/service_manager/public/cpp",
41 ] 43 ]
42 } 44 }
43 45
44 # This exists just to make 'gn check' happy with :minimal and 46 # This exists just to make 'gn check' happy with :minimal and
45 # :nacl_helper_win_64 (below). They can't depend on //content/public/common 47 # :nacl_helper_win_64 (below). They can't depend on //content/public/common
46 # or anything like that, because that would bring in lots more than counts 48 # or anything like that, because that would bring in lots more than counts
47 # as "minimal" (stuff that should not be in the nacl64.exe build). 49 # as "minimal" (stuff that should not be in the nacl64.exe build).
48 source_set("minimal_content_dummy") { 50 source_set("minimal_content_dummy") {
49 check_includes = false 51 check_includes = false
50 sources = [ 52 sources = [
51 "//content/public/common/child_process_sandbox_support_linux.h", 53 "//content/public/common/child_process_sandbox_support_linux.h",
52 "//content/public/common/content_descriptors.h",
53 "//content/public/common/content_switches.h",
54 "//content/public/common/main_function_params.h", 54 "//content/public/common/main_function_params.h",
55 "//content/public/common/mojo_channel_switches.h",
56 "//content/public/common/sandbox_init.h", 55 "//content/public/common/sandbox_init.h",
57 ] 56 ]
58 } 57 }
59 58
60 source_set("loader") { 59 source_set("loader") {
61 public_deps = [ 60 public_deps = [
62 ":minimal", 61 ":minimal",
63 ] 62 ]
64 deps = [ 63 deps = [
65 "//components/nacl/common", 64 "//components/nacl/common",
66 "//content/public/common", 65 "//content/public/common",
67 "//ppapi/shared_impl", 66 "//ppapi/shared_impl",
67 "//services/service_manager/public/cpp",
68 ] 68 ]
69 69
70 data_deps = [ 70 data_deps = [
71 ":nacl_loader_manifest",
71 "//ppapi/native_client:irt", 72 "//ppapi/native_client:irt",
72 "//ppapi/native_client/src/untrusted/pnacl_support_extension", 73 "//ppapi/native_client/src/untrusted/pnacl_support_extension",
73 ] 74 ]
74 } 75 }
75 76
76 test("nacl_loader_unittests") { 77 test("nacl_loader_unittests") {
77 sources = [ 78 sources = [
78 "nacl_ipc_adapter_unittest.cc", 79 "nacl_ipc_adapter_unittest.cc",
79 "nacl_validation_query_unittest.cc", 80 "nacl_validation_query_unittest.cc",
80 "run_all_unittests.cc", 81 "run_all_unittests.cc",
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 ] 185 ]
185 } 186 }
186 } 187 }
187 188
188 if (is_nacl_nonsfi) { 189 if (is_nacl_nonsfi) {
189 executable("nacl_helper_nonsfi_nexe") { 190 executable("nacl_helper_nonsfi_nexe") {
190 output_name = "nacl_helper_nonsfi" 191 output_name = "nacl_helper_nonsfi"
191 set_sources_assignment_filter([]) 192 set_sources_assignment_filter([])
192 sources = [ 193 sources = [
193 # TODO(brettw) can this just depend on //components/nacl/common? 194 # TODO(brettw) can this just depend on //components/nacl/common?
194 "../common/nacl_messages.cc",
195 "../common/nacl_messages.h",
196 "../common/nacl_types.cc",
197 "../common/nacl_types.h",
198 "../common/nacl_types_param_traits.cc",
199 "../common/nacl_types_param_traits.h",
200 "nacl_helper_linux.cc", 195 "nacl_helper_linux.cc",
201 "nacl_helper_linux.h", 196 "nacl_helper_linux.h",
202 "nacl_trusted_listener.cc", 197 "nacl_trusted_listener.cc",
203 "nacl_trusted_listener.h", 198 "nacl_trusted_listener.h",
204 "nonsfi/nonsfi_listener.cc", 199 "nonsfi/nonsfi_listener.cc",
205 "nonsfi/nonsfi_listener.h", 200 "nonsfi/nonsfi_listener.h",
206 "nonsfi/nonsfi_main.cc", 201 "nonsfi/nonsfi_main.cc",
207 "nonsfi/nonsfi_main.h", 202 "nonsfi/nonsfi_main.h",
208 ] 203 ]
209 deps = [ 204 deps = [
210 ":nacl_helper_nonsfi_sandbox", 205 ":nacl_helper_nonsfi_sandbox",
211 "//base", 206 "//base",
207 "//components/nacl/common:minimal",
212 "//components/nacl/common:switches", 208 "//components/nacl/common:switches",
213 "//components/tracing", 209 "//components/tracing",
214 "//content", 210 "//content",
215 "//ipc", 211 "//ipc",
216 "//mojo/edk/system", 212 "//mojo/edk/system",
217 "//native_client/src/nonsfi/irt:nacl_sys_private", 213 "//native_client/src/nonsfi/irt:nacl_sys_private",
218 "//native_client/src/nonsfi/loader:elf_loader", 214 "//native_client/src/nonsfi/loader:elf_loader",
219 215
220 # Normally libnacl is included implicitly by libc and is part of the 216 # Normally libnacl is included implicitly by libc and is part of the
221 # toolchain. But //build/config/nacl:compiler uses -nodefaultlibs and so 217 # toolchain. But //build/config/nacl:compiler uses -nodefaultlibs and so
222 # omits the default libnacl. When the nonsfi toolchain is more complete 218 # omits the default libnacl. When the nonsfi toolchain is more complete
223 # and that kludge is no longer required, this dependency should be 219 # and that kludge is no longer required, this dependency should be
224 # removed. 220 # removed.
225 "//native_client/src/untrusted/nacl", 221 "//native_client/src/untrusted/nacl",
226 "//ppapi/proxy", 222 "//ppapi/proxy",
227 "//sandbox/linux:sandbox", 223 "//sandbox/linux:sandbox",
224 "//services/service_manager/public/cpp",
228 ] 225 ]
229 } 226 }
230 227
231 source_set("nacl_helper_nonsfi_sandbox") { 228 source_set("nacl_helper_nonsfi_sandbox") {
232 set_sources_assignment_filter([]) 229 set_sources_assignment_filter([])
233 sources = [ 230 sources = [
234 "nonsfi/nonsfi_sandbox.cc", 231 "nonsfi/nonsfi_sandbox.cc",
235 "nonsfi/nonsfi_sandbox.h", 232 "nonsfi/nonsfi_sandbox.h",
236 "sandbox_linux/nacl_sandbox_linux.cc", 233 "sandbox_linux/nacl_sandbox_linux.cc",
237 "sandbox_linux/nacl_sandbox_linux.h", 234 "sandbox_linux/nacl_sandbox_linux.h",
238 ] 235 ]
239 deps = [ 236 deps = [
240 "//base", 237 "//base",
238 "//components/nacl/common:minimal",
241 "//components/nacl/common:switches", 239 "//components/nacl/common:switches",
242 "//content", 240 "//content",
243 "//sandbox/linux:sandbox", 241 "//sandbox/linux:sandbox",
244 "//sandbox/linux:sandbox_services_headers", 242 "//sandbox/linux:sandbox_services_headers",
245 ] 243 ]
246 } 244 }
247 245
248 copy("nacl_helper_nonsfi_copy") { 246 copy("nacl_helper_nonsfi_copy") {
249 sources = [ 247 sources = [
250 "${root_out_dir}/nacl_helper_nonsfi", 248 "${root_out_dir}/nacl_helper_nonsfi",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 "${root_out_dir}/nacl_helper_nonsfi_unittests_main", 281 "${root_out_dir}/nacl_helper_nonsfi_unittests_main",
284 ] 282 ]
285 outputs = [ 283 outputs = [
286 "${root_build_dir}/{{source_file_part}}", 284 "${root_build_dir}/{{source_file_part}}",
287 ] 285 ]
288 deps = [ 286 deps = [
289 ":nacl_helper_nonsfi_unittests_main", 287 ":nacl_helper_nonsfi_unittests_main",
290 ] 288 ]
291 } 289 }
292 } 290 }
291
292 service_manifest("nacl_loader_manifest") {
293 name = "nacl_loader"
294 source = "nacl_loader_manifest.json"
295 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698