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

Side by Side Diff: sandbox/sandbox.gyp

Issue 543058: Prepare the sandbox for integration with NaCl broker for 64-bit Windows. The ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 months 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 | « no previous file | sandbox/src/sandbox.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) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 'target_defaults': {
7 'variables': {
8 'sandbox_windows_target': 0,
9 },
10 'target_conditions': [
11 ['sandbox_windows_target==1', {
12 # Files that are shared between the 32-bit and the 64-bit versions
13 # of the Windows sandbox library.
14 'sources': [
15 'src/acl.cc',
16 'src/acl.h',
17 'src/broker_services.cc',
18 'src/broker_services.h',
19 'src/crosscall_client.h',
20 'src/crosscall_params.h',
21 'src/crosscall_server.cc',
22 'src/crosscall_server.h',
23 'src/dep.cc',
24 'src/dep.h',
25 'src/eat_resolver.cc',
26 'src/eat_resolver.h',
27 'src/filesystem_dispatcher.cc',
28 'src/filesystem_dispatcher.h',
29 'src/filesystem_policy.cc',
30 'src/filesystem_policy.h',
31 'src/internal_types.h',
32 'src/ipc_tags.h',
33 'src/job.cc',
34 'src/job.h',
35 'src/named_pipe_dispatcher.cc',
36 'src/named_pipe_dispatcher.h',
37 'src/named_pipe_policy.cc',
38 'src/named_pipe_policy.h',
39 'src/nt_internals.h',
40 'src/policy_broker.cc',
41 'src/policy_broker.h',
42 'src/policy_engine_opcodes.cc',
43 'src/policy_engine_opcodes.h',
44 'src/policy_engine_params.h',
45 'src/policy_engine_processor.cc',
46 'src/policy_engine_processor.h',
47 'src/policy_low_level.cc',
48 'src/policy_low_level.h',
49 'src/policy_params.h',
50 'src/policy_target.cc',
51 'src/policy_target.h',
52 'src/process_thread_dispatcher.cc',
53 'src/process_thread_dispatcher.h',
54 'src/process_thread_policy.cc',
55 'src/process_thread_policy.h',
56 'src/registry_dispatcher.cc',
57 'src/registry_dispatcher.h',
58 'src/registry_policy.cc',
59 'src/registry_policy.h',
60 'src/resolver.cc',
61 'src/resolver.h',
62 'src/restricted_token_utils.cc',
63 'src/restricted_token_utils.h',
64 'src/restricted_token.cc',
65 'src/restricted_token.h',
66 'src/sandbox_factory.h',
67 'src/sandbox_nt_types.h',
68 'src/sandbox_nt_util.cc',
69 'src/sandbox_nt_util.h',
70 'src/sandbox_policy_base.cc',
71 'src/sandbox_policy_base.h',
72 'src/sandbox_policy.h',
73 'src/sandbox_types.h',
74 'src/sandbox_utils.cc',
75 'src/sandbox_utils.h',
76 'src/sandbox.cc',
77 'src/sandbox.h',
78 'src/security_level.h',
79 'src/shared_handles.cc',
80 'src/shared_handles.h',
81 'src/sid.cc',
82 'src/sid.h',
83 'src/sync_dispatcher.cc',
84 'src/sync_dispatcher.h',
85 'src/sync_policy.cc',
86 'src/sync_policy.h',
87 'src/target_process.cc',
88 'src/target_process.h',
89 'src/target_services.cc',
90 'src/target_services.h',
91 'src/win_utils.cc',
92 'src/win_utils.h',
93 'src/win2k_threadpool.cc',
94 'src/win2k_threadpool.h',
95 'src/window.cc',
96 'src/window.h',
97 ],
98 }],
99 ],
100 },
6 'conditions': [ 101 'conditions': [
7 [ 'OS=="linux" and selinux==0', { 102 [ 'OS=="linux" and selinux==0', {
8 'targets': [ 103 'targets': [
9 { 104 {
10 'target_name': 'chrome_sandbox', 105 'target_name': 'chrome_sandbox',
11 'type': 'executable', 106 'type': 'executable',
12 'sources': [ 107 'sources': [
13 'linux/suid/linux_util.c', 108 'linux/suid/linux_util.c',
14 'linux/suid/linux_util.h', 109 'linux/suid/linux_util.h',
15 'linux/suid/process_util.h', 110 'linux/suid/process_util.h',
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 'target_name': 'sandbox', 176 'target_name': 'sandbox',
82 'type': 'settings', 177 'type': 'settings',
83 }, 178 },
84 ], 179 ],
85 }], 180 }],
86 [ 'OS=="win"', { 181 [ 'OS=="win"', {
87 'targets': [ 182 'targets': [
88 { 183 {
89 'target_name': 'sandbox', 184 'target_name': 'sandbox',
90 'type': '<(library)', 185 'type': '<(library)',
186 'variables': {
187 'sandbox_windows_target': 1,
188 },
91 'dependencies': [ 189 'dependencies': [
92 '../testing/gtest.gyp:gtest', 190 '../testing/gtest.gyp:gtest',
93 '../base/base.gyp:base', 191 '../base/base.gyp:base',
94 ], 192 ],
95 'msvs_guid': '881F6A97-D539-4C48-B401-DF04385B2343', 193 'msvs_guid': '881F6A97-D539-4C48-B401-DF04385B2343',
96 'sources': [ 194 'sources': [
97 'src/acl.cc', 195 # Files that are used by the 32-bit version of Windows sandbox only.
98 'src/acl.h',
99 'src/broker_services.cc',
100 'src/broker_services.h',
101 'src/crosscall_client.h',
102 'src/crosscall_params.h',
103 'src/crosscall_server.cc',
104 'src/crosscall_server.h',
105 'src/dep.cc',
106 'src/dep.h',
107 'src/eat_resolver.cc',
108 'src/eat_resolver.h',
109 'src/filesystem_dispatcher.cc',
110 'src/filesystem_dispatcher.h',
111 'src/filesystem_interception.cc', 196 'src/filesystem_interception.cc',
112 'src/filesystem_interception.h', 197 'src/filesystem_interception.h',
113 'src/filesystem_policy.cc',
114 'src/filesystem_policy.h',
115 'src/interception_agent.cc', 198 'src/interception_agent.cc',
116 'src/interception_agent.h', 199 'src/interception_agent.h',
117 'src/interception_internal.h', 200 'src/interception_internal.h',
118 'src/interception.cc', 201 'src/interception.cc',
119 'src/interception.h', 202 'src/interception.h',
120 'src/internal_types.h',
121 'src/ipc_tags.h',
122 'src/job.cc',
123 'src/job.h',
124 'src/named_pipe_dispatcher.cc',
125 'src/named_pipe_dispatcher.h',
126 'src/named_pipe_interception.cc', 203 'src/named_pipe_interception.cc',
127 'src/named_pipe_interception.h', 204 'src/named_pipe_interception.h',
128 'src/named_pipe_policy.cc',
129 'src/named_pipe_policy.h',
130 'src/nt_internals.h',
131 'src/policy_broker.cc',
132 'src/policy_broker.h',
133 'src/policy_engine_opcodes.cc',
134 'src/policy_engine_opcodes.h',
135 'src/policy_engine_params.h',
136 'src/policy_engine_processor.cc',
137 'src/policy_engine_processor.h',
138 'src/policy_low_level.cc',
139 'src/policy_low_level.h',
140 'src/policy_params.h',
141 'src/policy_target.cc',
142 'src/policy_target.h',
143 'src/process_thread_dispatcher.cc',
144 'src/process_thread_dispatcher.h',
145 'src/process_thread_interception.cc', 205 'src/process_thread_interception.cc',
146 'src/process_thread_interception.h', 206 'src/process_thread_interception.h',
147 'src/process_thread_policy.cc',
148 'src/process_thread_policy.h',
149 'src/registry_dispatcher.cc',
150 'src/registry_dispatcher.h',
151 'src/registry_interception.cc', 207 'src/registry_interception.cc',
152 'src/registry_interception.h', 208 'src/registry_interception.h',
153 'src/registry_policy.cc',
154 'src/registry_policy.h',
155 'src/resolver.cc',
156 'src/resolver.h',
157 'src/restricted_token_utils.cc',
158 'src/restricted_token_utils.h',
159 'src/restricted_token.cc',
160 'src/restricted_token.h',
161 'src/sandbox_factory.h',
162 'src/sandbox_nt_types.h',
163 'src/sandbox_nt_util.cc',
164 'src/sandbox_nt_util.h',
165 'src/sandbox_policy_base.cc',
166 'src/sandbox_policy_base.h',
167 'src/sandbox_policy.h',
168 'src/sandbox_types.h',
169 'src/sandbox_utils.cc',
170 'src/sandbox_utils.h',
171 'src/sandbox.cc',
172 'src/sandbox.h',
173 'src/security_level.h',
174 'src/service_resolver.cc', 209 'src/service_resolver.cc',
175 'src/service_resolver.h', 210 'src/service_resolver.h',
176 'src/shared_handles.cc',
177 'src/shared_handles.h',
178 'src/sharedmem_ipc_client.cc', 211 'src/sharedmem_ipc_client.cc',
179 'src/sharedmem_ipc_client.h', 212 'src/sharedmem_ipc_client.h',
180 'src/sharedmem_ipc_server.cc', 213 'src/sharedmem_ipc_server.cc',
181 'src/sharedmem_ipc_server.h', 214 'src/sharedmem_ipc_server.h',
182 'src/sid.cc',
183 'src/sid.h',
184 'src/sidestep_resolver.cc', 215 'src/sidestep_resolver.cc',
185 'src/sidestep_resolver.h', 216 'src/sidestep_resolver.h',
186 'src/sidestep\ia32_modrm_map.cpp', 217 'src/sidestep\ia32_modrm_map.cpp',
187 'src/sidestep\ia32_opcode_map.cpp', 218 'src/sidestep\ia32_opcode_map.cpp',
188 'src/sidestep\mini_disassembler_types.h', 219 'src/sidestep\mini_disassembler_types.h',
189 'src/sidestep\mini_disassembler.cpp', 220 'src/sidestep\mini_disassembler.cpp',
190 'src/sidestep\mini_disassembler.h', 221 'src/sidestep\mini_disassembler.h',
191 'src/sidestep\preamble_patcher_with_stub.cpp', 222 'src/sidestep\preamble_patcher_with_stub.cpp',
192 'src/sidestep\preamble_patcher.h', 223 'src/sidestep\preamble_patcher.h',
193 'src/sync_dispatcher.cc',
194 'src/sync_dispatcher.h',
195 'src/sync_interception.cc', 224 'src/sync_interception.cc',
196 'src/sync_interception.h', 225 'src/sync_interception.h',
197 'src/sync_policy.cc',
198 'src/sync_policy.h',
199 'src/target_interceptions.cc', 226 'src/target_interceptions.cc',
200 'src/target_interceptions.h', 227 'src/target_interceptions.h',
201 'src/target_process.cc',
202 'src/target_process.h',
203 'src/target_services.cc',
204 'src/target_services.h',
205 'src/win_utils.cc',
206 'src/win_utils.h',
207 'src/win2k_threadpool.cc',
208 'src/win2k_threadpool.h',
209 'src/window.cc',
210 'src/window.h',
211 'src/Wow64.cc', 228 'src/Wow64.cc',
212 'src/Wow64.h', 229 'src/Wow64.h',
213 ], 230 ],
214 'include_dirs': [ 231 'include_dirs': [
215 '..', 232 '..',
216 ], 233 ],
217 'copies': [ 234 'copies': [
218 { 235 {
219 'destination': '<(PRODUCT_DIR)', 236 'destination': '<(PRODUCT_DIR)',
220 'files': [ 237 'files': [
221 'wow_helper/wow_helper.exe', 238 'wow_helper/wow_helper.exe',
222 'wow_helper/wow_helper.pdb', 239 'wow_helper/wow_helper.pdb',
223 ], 240 ],
224 }, 241 },
225 ], 242 ],
226 'direct_dependent_settings': { 243 'direct_dependent_settings': {
227 'include_dirs': [ 244 'include_dirs': [
228 'src', 245 'src',
229 '..', 246 '..',
230 ], 247 ],
231 }, 248 },
232 }, 249 },
233 { 250 {
251 'target_name': 'sandbox_win64',
252 'type': '<(library)',
253 'variables': {
254 'sandbox_windows_target': 1,
255 },
256 'dependencies': [
257 '../testing/gtest.gyp:gtest',
258 '../base/base.gyp:base_nacl_win64',
259 ],
260 'configurations': {
261 'Common_Base': {
262 'msvs_target_platform': 'x64',
263 },
264 },
265 'msvs_guid': 'BE3468E6-B314-4310-B449-6FC0C52EE155',
266 'include_dirs': [
267 '..',
268 ],
269 'direct_dependent_settings': {
270 'include_dirs': [
271 'src',
272 '..',
273 ],
274 },
275 'defines': [
276 '<@(nacl_win64_defines)',
277 ]
278 },
279 {
234 'target_name': 'sbox_integration_tests', 280 'target_name': 'sbox_integration_tests',
235 'type': 'executable', 281 'type': 'executable',
236 'dependencies': [ 282 'dependencies': [
237 'sandbox', 283 'sandbox',
238 '../testing/gtest.gyp:gtest', 284 '../testing/gtest.gyp:gtest',
239 ], 285 ],
240 'sources': [ 286 'sources': [
241 'tests/common/controller.cc', 287 'tests/common/controller.cc',
242 'tests/common/controller.h', 288 'tests/common/controller.h',
243 'tests/integration_tests/integration_tests.cc', 289 'tests/integration_tests/integration_tests.cc',
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 ], 389 ],
344 }], 390 }],
345 ], 391 ],
346 } 392 }
347 393
348 # Local Variables: 394 # Local Variables:
349 # tab-width:2 395 # tab-width:2
350 # indent-tabs-mode:nil 396 # indent-tabs-mode:nil
351 # End: 397 # End:
352 # vim: set expandtab tabstop=2 shiftwidth=2: 398 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | sandbox/src/sandbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698