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

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

Issue 1395573003: Build nacl_helper_nonsfi with GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
OLDNEW
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//testing/test.gni") 8 import("//testing/test.gni")
9 9
10 if (enable_nacl) { 10 if (enable_nacl) {
(...skipping 21 matching lines...) Expand all
32 "//base", 32 "//base",
33 "//base:base_static", 33 "//base:base_static",
34 "//content/public/common", 34 "//content/public/common",
35 "//crypto", 35 "//crypto",
36 "//ipc", 36 "//ipc",
37 "//native_client/src/trusted/service_runtime:sel_main_chrome", 37 "//native_client/src/trusted/service_runtime:sel_main_chrome",
38 "//ppapi/c", 38 "//ppapi/c",
39 "//ppapi/proxy:ipc", 39 "//ppapi/proxy:ipc",
40 "//ppapi/shared_impl", 40 "//ppapi/shared_impl",
41 "//third_party/mojo/src/mojo/edk/embedder", 41 "//third_party/mojo/src/mojo/edk/embedder",
42
42 # TODO(use_chrome_edk): so that EDK in third_party can choose the EDK in 43 # TODO(use_chrome_edk): so that EDK in third_party can choose the EDK in
43 # src/mojo if the command line flag is specified. It has to since we can 44 # src/mojo if the command line flag is specified. It has to since we can
44 # only have one definition of the Mojo primitives. 45 # only have one definition of the Mojo primitives.
45 "//mojo/edk/embedder", 46 "//mojo/edk/embedder",
46 ] 47 ]
47 48
48 if (enable_nacl_untrusted) { 49 if (enable_nacl_untrusted) {
49 data_deps = [ "//ppapi/native_client:irt" ] 50 data_deps = [
51 "//ppapi/native_client:irt",
52 ]
50 } 53 }
51 if (enable_pnacl) { 54 if (enable_pnacl) {
52 data_deps += 55 data_deps +=
53 [ "//ppapi/native_client/src/untrusted/pnacl_support_extension" ] 56 [ "//ppapi/native_client/src/untrusted/pnacl_support_extension" ]
54 } 57 }
55 } 58 }
56 59
57 source_set("nacl_browser") { 60 source_set("nacl_browser") {
58 sources = [ 61 sources = [
59 "browser/bad_message.cc", 62 "browser/bad_message.cc",
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 260
258 if (use_glib) { 261 if (use_glib) {
259 configs += [ "//build/config/linux:glib" ] 262 configs += [ "//build/config/linux:glib" ]
260 } 263 }
261 264
262 if (use_seccomp_bpf) { 265 if (use_seccomp_bpf) {
263 defines += [ "USE_SECCOMP_BPF" ] 266 defines += [ "USE_SECCOMP_BPF" ]
264 } 267 }
265 } 268 }
266 } 269 }
270
271 if (is_nacl) {
272 executable("nacl_helper_nonsfi") {
273 set_sources_assignment_filter([])
274 sources = [
275 "common/nacl_messages.cc",
276 "common/nacl_messages.h",
277 "common/nacl_types.cc",
278 "common/nacl_types.h",
279 "common/nacl_types_param_traits.cc",
280 "common/nacl_types_param_traits.h",
281 "loader/nacl_helper_linux.cc",
282 "loader/nacl_helper_linux.h",
283 "loader/nacl_trusted_listener.cc",
284 "loader/nacl_trusted_listener.h",
285 "loader/nonsfi/nonsfi_listener.cc",
286 "loader/nonsfi/nonsfi_listener.h",
287 "loader/nonsfi/nonsfi_main.cc",
288 "loader/nonsfi/nonsfi_main.h",
289 ]
290 set_sources_assignment_filter(sources_assignment_filter)
291 ldflags = [
292 "-Wl,--noirt",
293 "-Wt,--noirt",
294 "-Wt,--noirtshim",
295 "-nodefaultlibs",
296 ]
297 libs = [
298 "c++",
299 "m",
300 "c",
301 "pnaclmm",
302 ]
303 deps = [
304 ":nacl_switches",
305 ":nacl_helper_nonsfi_sandbox",
306 "//base",
307 "//components/tracing",
308 "//content",
309 "//ipc",
310 "//native_client/src/nonsfi/irt:nacl_sys_private",
311 "//native_client/src/nonsfi/loader:elf_loader",
312 "//native_client/src/untrusted/nacl:nacl",
313 "//ppapi/proxy",
314 "//sandbox/linux:sandbox_linux_nacl_nonsfi",
315 ]
316 }
317
318 source_set("nacl_helper_nonsfi_sandbox") {
319 set_sources_assignment_filter([])
320 sources = [
321 "loader/nonsfi/nonsfi_sandbox.cc",
322 "loader/nonsfi/nonsfi_sandbox.h",
323 "loader/sandbox_linux/nacl_sandbox_linux.cc",
324 "loader/sandbox_linux/nacl_sandbox_linux.h",
325 ]
326 set_sources_assignment_filter(sources_assignment_filter)
327 deps = [
328 "//base",
329 "//content",
330 "//sandbox/linux:sandbox_linux_nacl_nonsfi",
331 ]
332 }
333 }
267 } else { 334 } else {
268 group("nacl") { 335 group("nacl") {
269 } 336 }
270 group("nacl_helper") { 337 group("nacl_helper") {
271 } 338 }
339 group("nacl_helper_nonsfi") {
340 }
272 } 341 }
273 342
274 source_set("nacl_switches") { 343 source_set("nacl_switches") {
275 sources = [ 344 sources = [
276 "common/nacl_switches.cc", 345 "common/nacl_switches.cc",
277 "common/nacl_switches.h", 346 "common/nacl_switches.h",
278 ] 347 ]
279 } 348 }
280 349
281 source_set("nacl_common") { 350 source_set("nacl_common") {
(...skipping 30 matching lines...) Expand all
312 381
313 if (is_linux) { 382 if (is_linux) {
314 sources += [ 383 sources += [
315 "common/nacl_paths.cc", 384 "common/nacl_paths.cc",
316 "common/nacl_paths.h", 385 "common/nacl_paths.h",
317 ] 386 ]
318 387
319 defines = [ "__STDC_LIMIT_MACROS=1" ] 388 defines = [ "__STDC_LIMIT_MACROS=1" ]
320 } 389 }
321 } 390 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698