OLD | NEW |
| (Empty) |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'targets': [ | |
7 { | |
8 'target_name': 'sandbox', | |
9 'type': 'none', | |
10 'conditions': [ | |
11 # Only compile in the seccomp mode 1 code for the flag combination | |
12 # where we support it. | |
13 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64") ' | |
14 'and toolkit_views==0 and selinux==0', { | |
15 'dependencies': [ | |
16 '../seccompsandbox/seccomp.gyp:seccomp_sandbox', | |
17 ], | |
18 }], | |
19 # This does not include Android. | |
20 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64")', { | |
21 'type': 'static_library', | |
22 # Compile seccomp mode 2 code on Linux | |
23 'sources': [ | |
24 'linux/seccomp-bpf/sandbox_bpf.cc', | |
25 'linux/seccomp-bpf/sandbox_bpf.h', | |
26 'linux/seccomp-bpf/verifier.cc', | |
27 'linux/seccomp-bpf/verifier.h', | |
28 ], | |
29 'dependencies': [ | |
30 '../base/base.gyp:base', | |
31 ], | |
32 'include_dirs': [ | |
33 '..', | |
34 ], | |
35 }], | |
36 ], | |
37 }, | |
38 { | |
39 # The setuid sandbox, for Linux | |
40 'target_name': 'chrome_sandbox', | |
41 'type': 'executable', | |
42 'sources': [ | |
43 'linux/suid/linux_util.c', | |
44 'linux/suid/linux_util.h', | |
45 'linux/suid/process_util.h', | |
46 'linux/suid/process_util_linux.c', | |
47 'linux/suid/sandbox.h', | |
48 'linux/suid/sandbox.c', | |
49 ], | |
50 'cflags': [ | |
51 # For ULLONG_MAX | |
52 '-std=gnu99', | |
53 ], | |
54 'include_dirs': [ | |
55 '..', | |
56 ], | |
57 }, | |
58 ], | |
59 } | |
OLD | NEW |