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 'variables': { | 6 'variables': { |
7 'conditions': [ | 7 'conditions': [ |
8 ['OS=="linux"', { | 8 ['OS=="linux"', { |
9 'compile_suid_client': 1, | 9 'compile_suid_client': 1, |
10 }, { | 10 }, { |
11 'compile_suid_client': 0, | 11 'compile_suid_client': 0, |
12 }], | 12 }], |
13 ['((OS=="linux" or (OS=="android" and target_arch=="arm")) and ' | 13 ['((OS=="linux" or OS=="android") and ' |
14 '(target_arch=="ia32" or target_arch=="x64" or ' | 14 '(target_arch=="ia32" or target_arch=="x64" or ' |
15 'target_arch=="arm"))', { | 15 'target_arch=="arm"))', { |
16 'compile_seccomp_bpf': 1, | 16 'compile_seccomp_bpf': 1, |
17 }, { | 17 }, { |
18 'compile_seccomp_bpf': 0, | 18 'compile_seccomp_bpf': 0, |
19 }], | 19 }], |
20 ], | 20 ], |
21 }, | 21 }, |
22 'target_defaults': { | 22 'target_defaults': { |
23 'target_conditions': [ | 23 'target_conditions': [ |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 'seccomp-bpf/sandbox_bpf.h', | 120 'seccomp-bpf/sandbox_bpf.h', |
121 'seccomp-bpf/syscall.cc', | 121 'seccomp-bpf/syscall.cc', |
122 'seccomp-bpf/syscall.h', | 122 'seccomp-bpf/syscall.h', |
123 'seccomp-bpf/syscall_iterator.cc', | 123 'seccomp-bpf/syscall_iterator.cc', |
124 'seccomp-bpf/syscall_iterator.h', | 124 'seccomp-bpf/syscall_iterator.h', |
125 'seccomp-bpf/verifier.cc', | 125 'seccomp-bpf/verifier.cc', |
126 'seccomp-bpf/verifier.h', | 126 'seccomp-bpf/verifier.h', |
127 ], | 127 ], |
128 'dependencies': [ | 128 'dependencies': [ |
129 '../base/base.gyp:base', | 129 '../base/base.gyp:base', |
| 130 'sandbox_services_headers', |
130 ], | 131 ], |
131 'include_dirs': [ | 132 'include_dirs': [ |
132 '../..', | 133 '../..', |
133 ], | 134 ], |
134 }, | 135 }, |
135 { | 136 { |
136 # The setuid sandbox, for Linux | 137 # The setuid sandbox, for Linux |
137 'target_name': 'chrome_sandbox', | 138 'target_name': 'chrome_sandbox', |
138 'type': 'executable', | 139 'type': 'executable', |
139 'sources': [ | 140 'sources': [ |
(...skipping 19 matching lines...) Expand all Loading... |
159 'services/broker_process.cc', | 160 'services/broker_process.cc', |
160 'services/broker_process.h', | 161 'services/broker_process.h', |
161 ], | 162 ], |
162 'dependencies': [ | 163 'dependencies': [ |
163 '../base/base.gyp:base', | 164 '../base/base.gyp:base', |
164 ], | 165 ], |
165 'include_dirs': [ | 166 'include_dirs': [ |
166 '..', | 167 '..', |
167 ], | 168 ], |
168 }, | 169 }, |
| 170 { 'target_name': 'sandbox_services_headers', |
| 171 'type': 'none', |
| 172 'sources': [ |
| 173 'services/android_arm_ucontext.h', |
| 174 'services/android_ucontext.h', |
| 175 'services/android_i386_ucontext.h', |
| 176 'services/arm_linux_syscalls.h', |
| 177 'services/linux_syscalls.h', |
| 178 'services/x86_32_linux_syscalls.h', |
| 179 'services/x86_64_linux_syscalls.h', |
| 180 ], |
| 181 'include_dirs': [ |
| 182 '..', |
| 183 ], |
| 184 }, |
169 { | 185 { |
170 # We make this its own target so that it does not interfere | 186 # We make this its own target so that it does not interfere |
171 # with our tests. | 187 # with our tests. |
172 'target_name': 'libc_urandom_override', | 188 'target_name': 'libc_urandom_override', |
173 'type': 'static_library', | 189 'type': 'static_library', |
174 'sources': [ | 190 'sources': [ |
175 'services/libc_urandom_override.cc', | 191 'services/libc_urandom_override.cc', |
176 'services/libc_urandom_override.h', | 192 'services/libc_urandom_override.h', |
177 ], | 193 ], |
178 'dependencies': [ | 194 'dependencies': [ |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 'input_shlib_path': | 231 'input_shlib_path': |
216 '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sandbox_linux_unittests' | 232 '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sandbox_linux_unittests' |
217 '<(SHARED_LIB_SUFFIX)', | 233 '<(SHARED_LIB_SUFFIX)', |
218 }, | 234 }, |
219 'includes': [ '../../build/apk_test.gypi' ], | 235 'includes': [ '../../build/apk_test.gypi' ], |
220 } | 236 } |
221 ], | 237 ], |
222 }], | 238 }], |
223 ], | 239 ], |
224 } | 240 } |
OLD | NEW |