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/buildflag_header.gni") |
| 6 import("//sandbox/features.gni") |
| 7 |
5 # Meta-target that forwards to the proper platform one. | 8 # Meta-target that forwards to the proper platform one. |
6 group("sandbox") { | 9 group("sandbox") { |
7 if (is_win) { | 10 if (is_win) { |
8 public_deps = [ | 11 public_deps = [ |
9 "//sandbox/win:sandbox", | 12 "//sandbox/win:sandbox", |
10 ] | 13 ] |
11 } else if (is_mac) { | 14 } else if (is_mac) { |
12 public_deps = [ | 15 public_deps = [ |
13 "//sandbox/mac:sandbox", | 16 "//sandbox/mac:sandbox", |
14 "//sandbox/mac:seatbelt", | 17 "//sandbox/mac:seatbelt", |
15 ] | 18 ] |
16 } else if (is_linux || is_android) { | 19 } else if (is_linux || is_android) { |
17 public_deps = [ | 20 public_deps = [ |
18 "//sandbox/linux:sandbox", | 21 "//sandbox/linux:sandbox", |
19 ] | 22 ] |
20 } | 23 } |
21 } | 24 } |
| 25 |
| 26 buildflag_header("sandbox_features") { |
| 27 header = "sandbox_features.h" |
| 28 flags = [ "USE_SECCOMP_BPF=$use_seccomp_bpf" ] |
| 29 } |
OLD | NEW |