OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 declare_args() { | 8 declare_args() { |
9 compile_suid_client = is_linux | 9 compile_suid_client = is_linux |
10 | 10 |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 # 'type': 'none', | 404 # 'type': 'none', |
405 # 'variables': { | 405 # 'variables': { |
406 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 406 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
407 # }, | 407 # }, |
408 # 'dependencies': [ | 408 # 'dependencies': [ |
409 # 'sandbox_linux_jni_unittests', | 409 # 'sandbox_linux_jni_unittests', |
410 # ], | 410 # ], |
411 # 'includes': [ '../../build/apk_test.gypi' ], | 411 # 'includes': [ '../../build/apk_test.gypi' ], |
412 # } | 412 # } |
413 } | 413 } |
| 414 |
| 415 if (enable_nacl) { |
| 416 source_set("sandbox_linux_nacl_nonsfi") { |
| 417 cflags = [ "-fgnu-inline-asm" ] |
| 418 sources = [ |
| 419 # this is the subset of linux build target, needed for |
| 420 # nacl_helper_nonsfi's sandbox implementation. |
| 421 "bpf_dsl/bpf_dsl.cc", |
| 422 "bpf_dsl/codegen.cc", |
| 423 "bpf_dsl/policy.cc", |
| 424 "bpf_dsl/policy_compiler.cc", |
| 425 "bpf_dsl/syscall_set.cc", |
| 426 "seccomp-bpf-helpers/sigsys_handlers.cc", |
| 427 "seccomp-bpf-helpers/syscall_parameters_restrictions.cc", |
| 428 "seccomp-bpf/die.cc", |
| 429 "seccomp-bpf/sandbox_bpf.cc", |
| 430 "seccomp-bpf/syscall.cc", |
| 431 "seccomp-bpf/trap.cc", |
| 432 "services/credentials.cc", |
| 433 "services/namespace_sandbox.cc", |
| 434 "services/namespace_utils.cc", |
| 435 "services/proc_util.cc", |
| 436 "services/resource_limits.cc", |
| 437 "services/syscall_wrappers.cc", |
| 438 "services/thread_helpers.cc", |
| 439 "suid/client/setuid_sandbox_client.cc", |
| 440 ] |
| 441 } |
| 442 } |
OLD | NEW |