| 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("//build/config/nacl/config.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 if (is_android) { | 9 if (is_android) { |
| 10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 "seccomp-bpf/die.h", | 244 "seccomp-bpf/die.h", |
| 245 "seccomp-bpf/sandbox_bpf.cc", | 245 "seccomp-bpf/sandbox_bpf.cc", |
| 246 "seccomp-bpf/sandbox_bpf.h", | 246 "seccomp-bpf/sandbox_bpf.h", |
| 247 "seccomp-bpf/syscall.cc", | 247 "seccomp-bpf/syscall.cc", |
| 248 "seccomp-bpf/syscall.h", | 248 "seccomp-bpf/syscall.h", |
| 249 "seccomp-bpf/trap.cc", | 249 "seccomp-bpf/trap.cc", |
| 250 "seccomp-bpf/trap.h", | 250 "seccomp-bpf/trap.h", |
| 251 ] | 251 ] |
| 252 defines = [ "SANDBOX_IMPLEMENTATION" ] | 252 defines = [ "SANDBOX_IMPLEMENTATION" ] |
| 253 | 253 |
| 254 public_deps = [ |
| 255 ":sandbox_services_headers", |
| 256 ] |
| 254 deps = [ | 257 deps = [ |
| 255 ":sandbox_services", | 258 ":sandbox_services", |
| 256 ":sandbox_services_headers", | |
| 257 "//base", | 259 "//base", |
| 258 ] | 260 ] |
| 259 | 261 |
| 260 if (is_nacl_nonsfi) { | 262 if (is_nacl_nonsfi) { |
| 261 cflags = [ "-fgnu-inline-asm" ] | 263 cflags = [ "-fgnu-inline-asm" ] |
| 262 sources -= [ | 264 sources -= [ |
| 263 "bpf_dsl/bpf_dsl_forward.h", | 265 "bpf_dsl/bpf_dsl_forward.h", |
| 264 "bpf_dsl/bpf_dsl_impl.h", | 266 "bpf_dsl/bpf_dsl_impl.h", |
| 265 "bpf_dsl/cons.h", | 267 "bpf_dsl/cons.h", |
| 266 "bpf_dsl/errorcode.h", | 268 "bpf_dsl/errorcode.h", |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 "syscall_broker/broker_host.cc", | 355 "syscall_broker/broker_host.cc", |
| 354 "syscall_broker/broker_host.h", | 356 "syscall_broker/broker_host.h", |
| 355 "syscall_broker/broker_policy.cc", | 357 "syscall_broker/broker_policy.cc", |
| 356 "syscall_broker/broker_policy.h", | 358 "syscall_broker/broker_policy.h", |
| 357 "syscall_broker/broker_process.cc", | 359 "syscall_broker/broker_process.cc", |
| 358 "syscall_broker/broker_process.h", | 360 "syscall_broker/broker_process.h", |
| 359 ] | 361 ] |
| 360 | 362 |
| 361 defines = [ "SANDBOX_IMPLEMENTATION" ] | 363 defines = [ "SANDBOX_IMPLEMENTATION" ] |
| 362 | 364 |
| 365 public_deps = [] |
| 363 deps = [ | 366 deps = [ |
| 364 "//base", | 367 "//base", |
| 365 ] | 368 ] |
| 366 | 369 |
| 367 if (compile_credentials || is_nacl_nonsfi) { | 370 if (compile_credentials || is_nacl_nonsfi) { |
| 368 sources += [ | 371 sources += [ |
| 369 "services/credentials.cc", | 372 "services/credentials.cc", |
| 370 "services/credentials.h", | 373 "services/credentials.h", |
| 371 "services/namespace_sandbox.cc", | 374 "services/namespace_sandbox.cc", |
| 372 "services/namespace_sandbox.h", | 375 "services/namespace_sandbox.h", |
| 373 "services/namespace_utils.cc", | 376 "services/namespace_utils.cc", |
| 374 "services/namespace_utils.h", | 377 "services/namespace_utils.h", |
| 375 ] | 378 ] |
| 376 | 379 |
| 377 deps += [ ":sandbox_services_headers" ] | 380 public_deps += [ ":sandbox_services_headers" ] |
| 378 } | 381 } |
| 379 | 382 |
| 380 if (is_nacl_nonsfi) { | 383 if (is_nacl_nonsfi) { |
| 381 cflags = [ "-fgnu-inline-asm" ] | 384 cflags = [ "-fgnu-inline-asm" ] |
| 382 | 385 |
| 383 sources -= [ | 386 sources -= [ |
| 384 "services/init_process_reaper.cc", | 387 "services/init_process_reaper.cc", |
| 385 "services/init_process_reaper.h", | 388 "services/init_process_reaper.h", |
| 386 "services/scoped_process.cc", | 389 "services/scoped_process.cc", |
| 387 "services/scoped_process.h", | 390 "services/scoped_process.h", |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 } | 467 } |
| 465 } | 468 } |
| 466 | 469 |
| 467 test_runner_script("sandbox_linux_unittests__test_runner_script") { | 470 test_runner_script("sandbox_linux_unittests__test_runner_script") { |
| 468 test_name = "sandbox_linux_unittests" | 471 test_name = "sandbox_linux_unittests" |
| 469 test_type = "gtest" | 472 test_type = "gtest" |
| 470 test_suite = "sandbox_linux_unittests" | 473 test_suite = "sandbox_linux_unittests" |
| 471 isolate_file = "//sandbox/sandbox_linux_unittests_android.isolate" | 474 isolate_file = "//sandbox/sandbox_linux_unittests_android.isolate" |
| 472 } | 475 } |
| 473 } | 476 } |
| OLD | NEW |