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', |
38 'dependencies': [ | 39 'dependencies': [ |
39 'sandbox', | 40 'sandbox', |
40 '../testing/gtest.gyp:gtest', | 41 '../testing/gtest.gyp:gtest', |
41 ], | 42 ], |
42 'sources': [ | 43 'sources': [ |
43 'tests/unit_tests.cc', | 44 'tests/unit_tests.cc', |
44 'suid/client/setuid_sandbox_client_unittest.cc', | 45 'suid/client/setuid_sandbox_client_unittest.cc', |
45 ], | 46 ], |
46 'include_dirs': [ | 47 'include_dirs': [ |
47 '../..', | 48 '../..', |
48 ], | 49 ], |
49 'conditions': [ | 50 'conditions': [ |
50 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64")', { | 51 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64" ' |
| 52 'or target_arch=="arm")', { |
51 'sources': [ | 53 'sources': [ |
52 'seccomp-bpf/sandbox_bpf_unittest.cc', | 54 'seccomp-bpf/sandbox_bpf_unittest.cc', |
53 ], | 55 ], |
54 }], | 56 }], |
55 ], | 57 ], |
56 }, | 58 }, |
57 { | 59 { |
58 'target_name': 'seccomp_bpf', | 60 'target_name': 'seccomp_bpf', |
59 'type': 'static_library', | 61 'type': 'static_library', |
60 'sources': [ | 62 'sources': [ |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 'dependencies': [ | 119 'dependencies': [ |
118 '../base/base.gyp:base', | 120 '../base/base.gyp:base', |
119 ], | 121 ], |
120 'include_dirs': [ | 122 'include_dirs': [ |
121 '..', | 123 '..', |
122 ], | 124 ], |
123 }, | 125 }, |
124 | 126 |
125 ], | 127 ], |
126 } | 128 } |
OLD | NEW |