Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: sandbox/linux/sandbox_linux.gypi

Issue 11573030: Revert 173064 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/posix/unix_domain_socket.cc ('k') | sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'sandbox_services',
17 ], 16 ],
18 'conditions': [ 17 'conditions': [
19 # 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
20 # where we support it. 19 # where we support it.
21 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64") ' 20 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64") '
22 'and toolkit_views==0 and selinux==0', { 21 'and toolkit_views==0 and selinux==0', {
23 'dependencies': [ 22 'dependencies': [
24 'linux/seccomp-legacy/seccomp.gyp:seccomp_sandbox', 23 'linux/seccomp-legacy/seccomp.gyp:seccomp_sandbox',
25 ], 24 ],
26 }], 25 }],
(...skipping 12 matching lines...) Expand all
39 'type': 'executable', 38 'type': 'executable',
40 'dependencies': [ 39 'dependencies': [
41 'sandbox', 40 'sandbox',
42 '../testing/gtest.gyp:gtest', 41 '../testing/gtest.gyp:gtest',
43 ], 42 ],
44 'sources': [ 43 'sources': [
45 'tests/main.cc', 44 'tests/main.cc',
46 'tests/unit_tests.cc', 45 'tests/unit_tests.cc',
47 'tests/unit_tests.h', 46 'tests/unit_tests.h',
48 'suid/client/setuid_sandbox_client_unittest.cc', 47 'suid/client/setuid_sandbox_client_unittest.cc',
49 'services/broker_process_unittest.cc',
50 ], 48 ],
51 'include_dirs': [ 49 'include_dirs': [
52 '../..', 50 '../..',
53 ], 51 ],
54 'conditions': [ 52 'conditions': [
55 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64" ' 53 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64" '
56 'or target_arch=="arm")', { 54 'or target_arch=="arm")', {
57 'sources': [ 55 'sources': [
58 'seccomp-bpf/bpf_tests.h', 56 'seccomp-bpf/bpf_tests.h',
59 'seccomp-bpf/codegen_unittest.cc', 57 'seccomp-bpf/codegen_unittest.cc',
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 'suid/sandbox.c', 106 'suid/sandbox.c',
109 ], 107 ],
110 'cflags': [ 108 'cflags': [
111 # For ULLONG_MAX 109 # For ULLONG_MAX
112 '-std=gnu99', 110 '-std=gnu99',
113 ], 111 ],
114 'include_dirs': [ 112 'include_dirs': [
115 '../..', 113 '../..',
116 ], 114 ],
117 }, 115 },
118 { 'target_name': 'sandbox_services',
119 'type': 'static_library',
120 'sources': [
121 'services/broker_process.cc',
122 'services/broker_process.h',
123 ],
124 'dependencies': [
125 '../base/base.gyp:base',
126 ],
127 'include_dirs': [
128 '..',
129 ],
130 },
131 { 116 {
132 # We make this its own target so that it does not interfere
133 # with our tests.
134 'target_name': 'libc_urandom_override', 117 'target_name': 'libc_urandom_override',
135 'type': 'static_library', 118 'type': 'static_library',
136 'sources': [ 119 'sources': [
137 'services/libc_urandom_override.cc', 120 'services/libc_urandom_override.cc',
138 'services/libc_urandom_override.h', 121 'services/libc_urandom_override.h',
139 ], 122 ],
140 'dependencies': [ 123 'dependencies': [
141 '../base/base.gyp:base', 124 '../base/base.gyp:base',
142 ], 125 ],
143 'include_dirs': [ 126 'include_dirs': [
(...skipping 12 matching lines...) Expand all
156 'dependencies': [ 139 'dependencies': [
157 '../base/base.gyp:base', 140 '../base/base.gyp:base',
158 ], 141 ],
159 'include_dirs': [ 142 'include_dirs': [
160 '..', 143 '..',
161 ], 144 ],
162 }, 145 },
163 146
164 ], 147 ],
165 } 148 }
OLDNEW
« no previous file with comments | « base/posix/unix_domain_socket.cc ('k') | sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698