OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 # We have two principal targets: sandbox and sandbox_linux_unittests | 7 # We have two principal targets: sandbox and sandbox_linux_unittests |
8 # All other targets are listed as dependencies. | 8 # All other targets are listed as dependencies. |
9 # FIXME(jln): for historial reasons, sandbox_linux is the setuid sandbox | 9 # FIXME(jln): for historial reasons, sandbox_linux is the setuid sandbox |
10 # and is its own target. | 10 # and is its own target. |
11 { | 11 { |
12 'target_name': 'sandbox', | 12 'target_name': 'sandbox', |
13 'type': 'none', | 13 'type': 'none', |
14 'dependencies': [ | 14 'dependencies': [ |
15 'suid_sandbox_client', | 15 'suid_sandbox_client', |
16 ], | 16 ], |
17 'conditions': [ | 17 'conditions': [ |
18 # Only compile in the seccomp mode 1 code for the flag combination | 18 # Only compile in the seccomp mode 1 code for the flag combination |
19 # where we support it. | 19 # where we support it. |
20 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64") ' | 20 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64") ' |
21 'and toolkit_views==0 and selinux==0', { | 21 'and toolkit_views==0 and selinux==0', { |
22 'dependencies': [ | 22 'dependencies': [ |
23 'linux/seccomp-legacy/seccomp.gyp:seccomp_sandbox', | 23 'linux/seccomp-legacy/seccomp.gyp:seccomp_sandbox', |
24 ], | 24 ], |
25 }], | 25 }], |
26 # Similarly, compile seccomp BPF when we support it | 26 # Similarly, compile seccomp BPF when we support it |
27 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64")', { | 27 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64" ' |
| 28 'or target_arch=="arm")', { |
28 'type': 'static_library', | 29 'type': 'static_library', |
29 'dependencies': [ | 30 'dependencies': [ |
30 'seccomp_bpf', | 31 'seccomp_bpf', |
31 ], | 32 ], |
32 }], | 33 }], |
33 ], | 34 ], |
34 }, | 35 }, |
35 { | 36 { |
36 'target_name': 'sandbox_linux_unittests', | 37 'target_name': 'sandbox_linux_unittests', |
37 'type': 'executable', | 38 'type': 'executable', |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 'dependencies': [ | 118 'dependencies': [ |
118 '../base/base.gyp:base', | 119 '../base/base.gyp:base', |
119 ], | 120 ], |
120 'include_dirs': [ | 121 'include_dirs': [ |
121 '..', | 122 '..', |
122 ], | 123 ], |
123 }, | 124 }, |
124 | 125 |
125 ], | 126 ], |
126 } | 127 } |
OLD | NEW |