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 'target_defaults': { | 6 'target_defaults': { |
7 'variables': { | 7 'variables': { |
8 'sandbox_windows_target': 0, | 8 'sandbox_windows_target': 0, |
9 'target_arch%': 'ia32', | |
9 }, | 10 }, |
10 'target_conditions': [ | 11 'target_conditions': [ |
11 ['sandbox_windows_target==1', { | 12 ['sandbox_windows_target==1', { |
12 # Files that are shared between the 32-bit and the 64-bit versions | 13 # Files that are shared between the 32-bit and the 64-bit versions |
13 # of the Windows sandbox library. | 14 # of the Windows sandbox library. |
14 'sources': [ | 15 'sources': [ |
15 'src/acl.cc', | 16 'src/acl.cc', |
16 'src/acl.h', | 17 'src/acl.h', |
17 'src/app_container.cc', | 18 'src/app_container.cc', |
18 'src/app_container.h', | 19 'src/app_container.h', |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
127 'src/target_services.cc', | 128 'src/target_services.cc', |
128 'src/target_services.h', | 129 'src/target_services.h', |
129 'src/win_utils.cc', | 130 'src/win_utils.cc', |
130 'src/win_utils.h', | 131 'src/win_utils.h', |
131 'src/win2k_threadpool.cc', | 132 'src/win2k_threadpool.cc', |
132 'src/win2k_threadpool.h', | 133 'src/win2k_threadpool.h', |
133 'src/window.cc', | 134 'src/window.cc', |
134 'src/window.h', | 135 'src/window.h', |
135 ], | 136 ], |
136 }], | 137 }], |
138 ['target_arch=="x64"', { | |
139 'sources': [ | |
140 'src/interceptors_64.cc', | |
rvargas (doing something else)
2013/01/04 22:39:42
Very nice!.
Something we could consider for the f
| |
141 'src/interceptors_64.h', | |
142 'src/resolver_64.cc', | |
143 'src/service_resolver_64.cc', | |
144 'src/Wow64_64.cc', | |
145 ], | |
146 }], | |
147 ['target_arch=="ia32"', { | |
148 'sources': [ | |
149 'src/resolver_32.cc', | |
150 'src/service_resolver_32.cc', | |
151 'src/sidestep_resolver.cc', | |
152 'src/sidestep_resolver.h', | |
153 'src/sidestep\ia32_modrm_map.cpp', | |
154 'src/sidestep\ia32_opcode_map.cpp', | |
155 'src/sidestep\mini_disassembler_types.h', | |
156 'src/sidestep\mini_disassembler.cpp', | |
157 'src/sidestep\mini_disassembler.h', | |
158 'src/sidestep\preamble_patcher_with_stub.cpp', | |
159 'src/sidestep\preamble_patcher.h', | |
160 'src/Wow64.cc', | |
161 'src/Wow64.h', | |
162 ], | |
163 }], | |
137 ], | 164 ], |
138 }, | 165 }, |
139 'targets': [ | 166 'targets': [ |
140 { | 167 { |
141 'target_name': 'sandbox', | 168 'target_name': 'sandbox', |
142 'type': 'static_library', | 169 'type': 'static_library', |
143 'variables': { | 170 'variables': { |
144 'sandbox_windows_target': 1, | 171 'sandbox_windows_target': 1, |
145 }, | 172 }, |
146 'dependencies': [ | 173 'dependencies': [ |
147 '../testing/gtest.gyp:gtest', | 174 '../testing/gtest.gyp:gtest', |
148 '../base/base.gyp:base', | 175 '../base/base.gyp:base', |
149 '../base/base.gyp:base_static', | 176 '../base/base.gyp:base_static', |
150 ], | 177 ], |
151 'export_dependent_settings': [ | 178 'export_dependent_settings': [ |
152 '../base/base.gyp:base', | 179 '../base/base.gyp:base', |
153 ], | 180 ], |
154 'sources': [ | |
155 # Files that are used by the 32-bit version of Windows sandbox only. | |
156 'src/resolver_32.cc', | |
157 'src/service_resolver_32.cc', | |
158 'src/sidestep_resolver.cc', | |
159 'src/sidestep_resolver.h', | |
160 'src/sidestep\ia32_modrm_map.cpp', | |
161 'src/sidestep\ia32_opcode_map.cpp', | |
162 'src/sidestep\mini_disassembler_types.h', | |
163 'src/sidestep\mini_disassembler.cpp', | |
164 'src/sidestep\mini_disassembler.h', | |
165 'src/sidestep\preamble_patcher_with_stub.cpp', | |
166 'src/sidestep\preamble_patcher.h', | |
167 'src/Wow64.cc', | |
168 'src/Wow64.h', | |
169 ], | |
170 'include_dirs': [ | 181 'include_dirs': [ |
171 '../..', | 182 '../..', |
172 ], | 183 ], |
173 'copies': [ | 184 'copies': [ |
174 { | 185 { |
175 'destination': '<(PRODUCT_DIR)', | 186 'destination': '<(PRODUCT_DIR)', |
176 'files': [ | 187 'files': [ |
177 'wow_helper/wow_helper.exe', | 188 'wow_helper/wow_helper.exe', |
178 'wow_helper/wow_helper.pdb', | 189 'wow_helper/wow_helper.pdb', |
179 ], | 190 ], |
180 }, | 191 }, |
181 ], | 192 ], |
182 'direct_dependent_settings': { | 193 'direct_dependent_settings': { |
183 'include_dirs': [ | 194 'include_dirs': [ |
184 'src', | 195 'src', |
185 '../..', | 196 '../..', |
186 ], | 197 ], |
187 }, | 198 }, |
188 }, | 199 }, |
189 { | 200 { |
190 'target_name': 'sandbox_win64', | 201 'target_name': 'sandbox_win64', |
191 'type': 'static_library', | 202 'type': 'static_library', |
192 'variables': { | 203 'variables': { |
193 'sandbox_windows_target': 1, | 204 'sandbox_windows_target': 1, |
205 'target_arch': 'x64', | |
194 }, | 206 }, |
195 'dependencies': [ | 207 'dependencies': [ |
196 '../testing/gtest.gyp:gtest', | 208 '../testing/gtest.gyp:gtest', |
197 '../base/base.gyp:base_nacl_win64', | 209 '../base/base.gyp:base_nacl_win64', |
198 '../base/base.gyp:base_static_win64', | 210 '../base/base.gyp:base_static_win64', |
199 ], | 211 ], |
200 'configurations': { | 212 'configurations': { |
201 'Common_Base': { | 213 'Common_Base': { |
202 'msvs_target_platform': 'x64', | 214 'msvs_target_platform': 'x64', |
203 }, | 215 }, |
204 }, | 216 }, |
205 'sources': [ | |
206 # Files that are used by the 64-bit version of Windows sandbox only. | |
207 'src/interceptors_64.cc', | |
208 'src/interceptors_64.h', | |
209 'src/resolver_64.cc', | |
210 'src/service_resolver_64.cc', | |
211 'src/Wow64_64.cc', | |
212 ], | |
213 'include_dirs': [ | 217 'include_dirs': [ |
214 '../..', | 218 '../..', |
215 ], | 219 ], |
216 'direct_dependent_settings': { | 220 'direct_dependent_settings': { |
217 'include_dirs': [ | 221 'include_dirs': [ |
218 'src', | 222 'src', |
219 '../..', | 223 '../..', |
220 ], | 224 ], |
221 }, | 225 }, |
222 'defines': [ | 226 'defines': [ |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
338 ], | 342 ], |
339 'defines': [ | 343 'defines': [ |
340 'POCDLL_EXPORTS', | 344 'POCDLL_EXPORTS', |
341 ], | 345 ], |
342 'include_dirs': [ | 346 'include_dirs': [ |
343 '../..', | 347 '../..', |
344 ], | 348 ], |
345 }, | 349 }, |
346 ], | 350 ], |
347 } | 351 } |
OLD | NEW |