OLD | NEW |
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/ui.gni") | 6 import("//build/config/ui.gni") |
7 | 7 |
8 assert(is_linux) | 8 assert(is_linux) |
9 assert(enable_nacl) | 9 assert(enable_nacl) |
10 | 10 |
11 source_set("sandbox_linux") { | 11 source_set("sandbox_linux") { |
12 sources = [ | 12 sources = [ |
13 "nacl_bpf_sandbox_linux.cc", | 13 "nacl_bpf_sandbox_linux.cc", |
14 "nacl_sandbox_linux.cc", | 14 "nacl_sandbox_linux.cc", |
15 ] | 15 ] |
16 | 16 |
17 defines = [ "IN_NACL_HELPER=1" ] | 17 defines = [ "IN_NACL_HELPER=1" ] |
18 | 18 |
| 19 public_deps = [ |
| 20 "//content/common:sandbox_linux", |
| 21 ] |
| 22 |
19 deps = [ | 23 deps = [ |
20 "//base", | 24 "//base", |
21 "//components/nacl/common", | 25 "//components/nacl/common", |
22 "//components/nacl/loader", | 26 "//components/nacl/loader", |
23 "//content/public/common", | 27 "//content/public/common:static_switches", |
24 "//crypto", | 28 "//crypto", |
25 "//ipc", | 29 "//ipc", |
26 "//sandbox", | 30 "//sandbox", |
27 "//sandbox/linux:sandbox_services_headers", | 31 "//sandbox/linux:sandbox_services_headers", |
28 ] | 32 ] |
29 | 33 |
30 if (use_glib) { | 34 if (use_glib) { |
31 configs += [ "//build/config/linux:glib" ] | 35 configs += [ "//build/config/linux:glib" ] |
32 } | 36 } |
33 | 37 |
34 if (use_seccomp_bpf) { | 38 if (use_seccomp_bpf) { |
35 defines += [ "USE_SECCOMP_BPF" ] | 39 defines += [ "USE_SECCOMP_BPF" ] |
36 } | 40 } |
37 } | 41 } |
OLD | NEW |