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. |
(...skipping 19 matching lines...) Expand all Loading... |
30 ], | 30 ], |
31 }, | 31 }, |
32 { | 32 { |
33 'target_name': 'sandbox_linux_unittests', | 33 'target_name': 'sandbox_linux_unittests', |
34 'type': 'executable', | 34 'type': 'executable', |
35 'dependencies': [ | 35 'dependencies': [ |
36 'sandbox', | 36 'sandbox', |
37 '../testing/gtest.gyp:gtest', | 37 '../testing/gtest.gyp:gtest', |
38 ], | 38 ], |
39 'sources': [ | 39 'sources': [ |
40 'linux/tests/unit_tests.cc', | 40 'tests/unit_tests.cc', |
41 ], | 41 ], |
42 'include_dirs': [ | 42 'include_dirs': [ |
43 '..', | 43 '../..', |
44 ], | 44 ], |
45 'conditions': [ | 45 'conditions': [ |
46 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64")', { | 46 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64")', { |
47 'sources': [ | 47 'sources': [ |
48 'linux/seccomp-bpf/sandbox_bpf_unittest.cc', | 48 'seccomp-bpf/sandbox_bpf_unittest.cc', |
49 ], | 49 ], |
50 }], | 50 }], |
51 ], | 51 ], |
52 }, | 52 }, |
53 { | 53 { |
54 'target_name': 'seccomp_bpf', | 54 'target_name': 'seccomp_bpf', |
55 'type': 'static_library', | 55 'type': 'static_library', |
56 'sources': [ | 56 'sources': [ |
57 'linux/seccomp-bpf/sandbox_bpf.cc', | 57 'seccomp-bpf/sandbox_bpf.cc', |
58 'linux/seccomp-bpf/sandbox_bpf.h', | 58 'seccomp-bpf/sandbox_bpf.h', |
59 'linux/seccomp-bpf/verifier.cc', | 59 'seccomp-bpf/verifier.cc', |
60 'linux/seccomp-bpf/verifier.h', | 60 'seccomp-bpf/verifier.h', |
61 ], | 61 ], |
62 'dependencies': [ | 62 'dependencies': [ |
63 '../base/base.gyp:base', | 63 '../base/base.gyp:base', |
64 ], | 64 ], |
65 'include_dirs': [ | 65 'include_dirs': [ |
66 '..', | 66 '../..', |
67 ], | 67 ], |
68 }, | 68 }, |
69 { | 69 { |
70 # The setuid sandbox, for Linux | 70 # The setuid sandbox, for Linux |
71 'target_name': 'chrome_sandbox', | 71 'target_name': 'chrome_sandbox', |
72 'type': 'executable', | 72 'type': 'executable', |
73 'sources': [ | 73 'sources': [ |
74 'linux/suid/linux_util.c', | 74 'suid/linux_util.c', |
75 'linux/suid/linux_util.h', | 75 'suid/linux_util.h', |
76 'linux/suid/process_util.h', | 76 'suid/process_util.h', |
77 'linux/suid/process_util_linux.c', | 77 'suid/process_util_linux.c', |
78 'linux/suid/sandbox.h', | 78 'suid/sandbox.h', |
79 'linux/suid/sandbox.c', | 79 'suid/sandbox.c', |
80 ], | 80 ], |
81 'cflags': [ | 81 'cflags': [ |
82 # For ULLONG_MAX | 82 # For ULLONG_MAX |
83 '-std=gnu99', | 83 '-std=gnu99', |
84 ], | 84 ], |
85 'include_dirs': [ | 85 'include_dirs': [ |
86 '..', | 86 '../..', |
87 ], | 87 ], |
88 }, | 88 }, |
89 { | 89 { |
90 'target_name': 'libc_urandom_override', | 90 'target_name': 'libc_urandom_override', |
91 'type': 'static_library', | 91 'type': 'static_library', |
92 'sources': [ | 92 'sources': [ |
93 'linux/services/libc_urandom_override.cc', | 93 'services/libc_urandom_override.cc', |
94 'linux/services/libc_urandom_override.h', | 94 'services/libc_urandom_override.h', |
95 ], | 95 ], |
96 'dependencies': [ | 96 'dependencies': [ |
97 '../base/base.gyp:base', | 97 '../base/base.gyp:base', |
98 ], | 98 ], |
99 'include_dirs': [ | 99 'include_dirs': [ |
100 '..', | 100 '..', |
101 ], | 101 ], |
102 }, | 102 }, |
103 ], | 103 ], |
104 } | 104 } |
OLD | NEW |