| 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 'compile_credentials': 1, | 10 'compile_credentials': 1, |
| 11 }, { | 11 }, { |
| 12 'compile_suid_client': 0, | 12 'compile_suid_client': 0, |
| 13 'compile_credentials': 0, | 13 'compile_credentials': 0, |
| 14 }], | 14 }], |
| 15 ['((OS=="linux" or OS=="android") and ' | |
| 16 '(target_arch=="ia32" or target_arch=="x64" or ' | |
| 17 'target_arch=="arm"))', { | |
| 18 'compile_seccomp_bpf': 1, | |
| 19 }, { | |
| 20 'compile_seccomp_bpf': 0, | |
| 21 }], | |
| 22 ['OS=="linux" and (target_arch=="ia32" or target_arch=="x64")', { | 15 ['OS=="linux" and (target_arch=="ia32" or target_arch=="x64")', { |
| 23 'compile_seccomp_bpf_demo': 1, | 16 'compile_seccomp_bpf_demo': 1, |
| 24 }, { | 17 }, { |
| 25 'compile_seccomp_bpf_demo': 0, | 18 'compile_seccomp_bpf_demo': 0, |
| 26 }], | 19 }], |
| 27 ], | 20 ], |
| 28 }, | 21 }, |
| 29 'target_defaults': { | 22 'target_defaults': { |
| 30 'target_conditions': [ | 23 'target_conditions': [ |
| 31 # All linux/ files will automatically be excluded on Android | 24 # All linux/ files will automatically be excluded on Android |
| 32 # so make sure we re-include them explicitly. | 25 # so make sure we re-include them explicitly. |
| 33 ['OS == "android"', { | 26 ['OS == "android"', { |
| 34 'sources/': [ | 27 'sources/': [ |
| 35 ['include', '^linux/'], | 28 ['include', '^linux/'], |
| 36 ], | 29 ], |
| 37 }], | 30 }], |
| 38 ], | 31 ], |
| 39 }, | 32 }, |
| 40 'targets': [ | 33 'targets': [ |
| 41 # We have two principal targets: sandbox and sandbox_linux_unittests | 34 # We have two principal targets: sandbox and sandbox_linux_unittests |
| 42 # All other targets are listed as dependencies. | 35 # All other targets are listed as dependencies. |
| 43 # FIXME(jln): for historial reasons, sandbox_linux is the setuid sandbox | 36 # There is one notable exception: for historical reasons, chrome_sandbox is |
| 44 # and is its own target. | 37 # the setuid sandbox and is its own target. |
| 45 { | 38 { |
| 46 'target_name': 'sandbox', | 39 'target_name': 'sandbox', |
| 47 'type': 'none', | 40 'type': 'none', |
| 48 'dependencies': [ | 41 'dependencies': [ |
| 49 'sandbox_services', | 42 'sandbox_services', |
| 50 ], | 43 ], |
| 51 'conditions': [ | 44 'conditions': [ |
| 52 [ 'compile_suid_client==1', { | 45 [ 'compile_suid_client==1', { |
| 53 'dependencies': [ | 46 'dependencies': [ |
| 54 'suid_sandbox_client', | 47 'suid_sandbox_client', |
| 55 ], | 48 ], |
| 56 }], | 49 }], |
| 57 # Compile seccomp BPF when we support it. | 50 # Compile seccomp BPF when we support it. |
| 58 [ 'compile_seccomp_bpf==1', { | 51 [ 'use_seccomp_bpf==1', { |
| 59 'dependencies': [ | 52 'dependencies': [ |
| 60 'seccomp_bpf', | 53 'seccomp_bpf', |
| 61 'seccomp_bpf_helpers', | 54 'seccomp_bpf_helpers', |
| 62 ], | 55 ], |
| 63 }], | 56 }], |
| 64 ], | 57 ], |
| 65 }, | 58 }, |
| 66 { | 59 { |
| 67 # The main sandboxing test target. | 60 # The main sandboxing test target. |
| 68 'target_name': 'sandbox_linux_unittests', | 61 'target_name': 'sandbox_linux_unittests', |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 }, | 271 }, |
| 279 'dependencies': [ | 272 'dependencies': [ |
| 280 'sandbox_linux_jni_unittests', | 273 'sandbox_linux_jni_unittests', |
| 281 ], | 274 ], |
| 282 'includes': [ '../../build/apk_test.gypi' ], | 275 'includes': [ '../../build/apk_test.gypi' ], |
| 283 } | 276 } |
| 284 ], | 277 ], |
| 285 }], | 278 }], |
| 286 ], | 279 ], |
| 287 } | 280 } |
| OLD | NEW |