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("//build/config/nacl/config.gni") |
6 import("//testing/test.gni") | 7 import("//testing/test.gni") |
7 | 8 |
8 declare_args() { | 9 declare_args() { |
9 compile_suid_client = is_linux | 10 compile_suid_client = is_linux |
10 | 11 |
11 compile_credentials = is_linux | 12 compile_credentials = is_linux |
12 | 13 |
13 # On Android, use plain GTest. | 14 # On Android, use plain GTest. |
14 use_base_test_suite = is_linux | 15 use_base_test_suite = is_linux |
15 } | 16 } |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 # 'type': 'none', | 405 # 'type': 'none', |
405 # 'variables': { | 406 # 'variables': { |
406 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 407 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
407 # }, | 408 # }, |
408 # 'dependencies': [ | 409 # 'dependencies': [ |
409 # 'sandbox_linux_jni_unittests', | 410 # 'sandbox_linux_jni_unittests', |
410 # ], | 411 # ], |
411 # 'includes': [ '../../build/apk_test.gypi' ], | 412 # 'includes': [ '../../build/apk_test.gypi' ], |
412 # } | 413 # } |
413 } | 414 } |
| 415 |
| 416 if (enable_nacl) { |
| 417 # Must be in a config because of how GN orders flags (otherwise -Wall will |
| 418 # appear after this, and turn it back on). |
| 419 config("clang_warnings") { |
| 420 if (is_nacl_nonsfi) { |
| 421 # There are number of platform specific functions in |
| 422 # seccomp-bpf syscall helpers, which are not being used. |
| 423 cflags = [ "-Wno-unused-function" ] |
| 424 } |
| 425 } |
| 426 |
| 427 source_set("sandbox_linux_nacl_nonsfi") { |
| 428 cflags = [ "-fgnu-inline-asm" ] |
| 429 sources = [ |
| 430 # This is the subset of linux build target, needed for |
| 431 # nacl_helper_nonsfi's sandbox implementation. |
| 432 "bpf_dsl/bpf_dsl.cc", |
| 433 "bpf_dsl/codegen.cc", |
| 434 "bpf_dsl/policy.cc", |
| 435 "bpf_dsl/policy_compiler.cc", |
| 436 "bpf_dsl/syscall_set.cc", |
| 437 "seccomp-bpf-helpers/sigsys_handlers.cc", |
| 438 "seccomp-bpf-helpers/syscall_parameters_restrictions.cc", |
| 439 "seccomp-bpf/die.cc", |
| 440 "seccomp-bpf/sandbox_bpf.cc", |
| 441 "seccomp-bpf/syscall.cc", |
| 442 "seccomp-bpf/trap.cc", |
| 443 "services/credentials.cc", |
| 444 "services/namespace_sandbox.cc", |
| 445 "services/namespace_utils.cc", |
| 446 "services/proc_util.cc", |
| 447 "services/resource_limits.cc", |
| 448 "services/syscall_wrappers.cc", |
| 449 "services/thread_helpers.cc", |
| 450 "suid/client/setuid_sandbox_client.cc", |
| 451 ] |
| 452 |
| 453 configs += [ ":clang_warnings" ] |
| 454 } |
| 455 } |
OLD | NEW |