OLD | NEW |
1 # Copyright 2012 Google Inc. All Rights Reserved. | 1 # Copyright 2012 Google Inc. All Rights Reserved. |
2 # | 2 # |
3 # Licensed under the Apache License, Version 2.0 (the "License"); | 3 # Licensed under the Apache License, Version 2.0 (the "License"); |
4 # you may not use this file except in compliance with the License. | 4 # you may not use this file except in compliance with the License. |
5 # You may obtain a copy of the License at | 5 # You may obtain a copy of the License at |
6 # | 6 # |
7 # http://www.apache.org/licenses/LICENSE-2.0 | 7 # http://www.apache.org/licenses/LICENSE-2.0 |
8 # | 8 # |
9 # Unless required by applicable law or agreed to in writing, software | 9 # Unless required by applicable law or agreed to in writing, software |
10 # distributed under the License is distributed on an "AS IS" BASIS, | 10 # distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 '<(src)/syzygy/trace/client/client.gyp:rpc_client_lib', | 116 '<(src)/syzygy/trace/client/client.gyp:rpc_client_lib', |
117 '<(src)/syzygy/trace/common/common.gyp:trace_common_lib', | 117 '<(src)/syzygy/trace/common/common.gyp:trace_common_lib', |
118 '<(src)/syzygy/trace/protocol/protocol.gyp:protocol_lib', | 118 '<(src)/syzygy/trace/protocol/protocol.gyp:protocol_lib', |
119 '<(src)/syzygy/trace/rpc/rpc.gyp:logger_rpc_lib', | 119 '<(src)/syzygy/trace/rpc/rpc.gyp:logger_rpc_lib', |
120 '<(src)/third_party/crashpad/files/client/client.gyp:crashpad_client', | 120 '<(src)/third_party/crashpad/files/client/client.gyp:crashpad_client', |
121 ], | 121 ], |
122 'conditions': [ | 122 'conditions': [ |
123 # By default, target_arch is set to ia32 on Windows. | 123 # By default, target_arch is set to ia32 on Windows. |
124 # To get a 64-bit build, one needs to explicitly set | 124 # To get a 64-bit build, one needs to explicitly set |
125 # `target_arch` and `host_arch` to `x64`. | 125 # `target_arch` and `host_arch` to `x64`. |
126 ['target_arch=="ia32"', { | 126 ['target_arch == "ia32"', { |
127 'sources': [ | 127 'sources': [ |
128 'gen/memory_interceptors_impl.asm', | 128 'gen/memory_interceptors_impl.asm', |
129 'gen/memory_redirectors.asm', | 129 'gen/memory_redirectors.asm', |
130 'reporters/kasko_reporter.cc', | 130 'reporters/kasko_reporter.cc', |
131 'reporters/kasko_reporter.h', | 131 'reporters/kasko_reporter.h', |
132 ], | 132 ], |
133 'dependencies': [ | 133 'dependencies': [ |
134 '<(src)/syzygy/kasko/kasko.gyp:kasko', | 134 '<(src)/syzygy/kasko/kasko.gyp:kasko', |
135 ], | 135 ], |
| 136 }, { |
| 137 'sources': [ |
| 138 'memory_interceptors_impl_x64.cc', |
| 139 'memory_interceptors_impl_x64.h', |
| 140 ] |
136 }], | 141 }], |
137 ], | 142 ], |
138 'export_dependent_settings': [ | 143 'export_dependent_settings': [ |
139 # We depend on crashdata_lib, which means we can see the include | 144 # We depend on crashdata_lib, which means we can see the include |
140 # directories it exports via 'all_dependent_settings' or | 145 # directories it exports via 'all_dependent_settings' or |
141 # 'direct_dependent_settings'. However, our dependents will have | 146 # 'direct_dependent_settings'. However, our dependents will have |
142 # this same dependency, so we forward these settings to them. | 147 # this same dependency, so we forward these settings to them. |
143 '<(src)/syzygy/crashdata/crashdata.gyp:crashdata_lib', | 148 '<(src)/syzygy/crashdata/crashdata.gyp:crashdata_lib', |
144 ], | 149 ], |
145 }, | 150 }, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 'heap_managers/deferred_free_thread_unittest.cc', | 208 'heap_managers/deferred_free_thread_unittest.cc', |
204 'memory_notifiers/shadow_memory_notifier_unittest.cc', | 209 'memory_notifiers/shadow_memory_notifier_unittest.cc', |
205 'quarantines/sharded_quarantine_unittest.cc', | 210 'quarantines/sharded_quarantine_unittest.cc', |
206 'quarantines/size_limited_quarantine_unittest.cc', | 211 'quarantines/size_limited_quarantine_unittest.cc', |
207 'reporters/breakpad_reporter_unittest.cc', | 212 'reporters/breakpad_reporter_unittest.cc', |
208 'reporters/crashpad_reporter_unittest.cc', | 213 'reporters/crashpad_reporter_unittest.cc', |
209 'reporters/exported_function_unittest.cc', | 214 'reporters/exported_function_unittest.cc', |
210 '<(src)/syzygy/testing/run_all_unittests.cc', | 215 '<(src)/syzygy/testing/run_all_unittests.cc', |
211 ], | 216 ], |
212 'conditions': [ | 217 'conditions': [ |
213 ['target_arch == "x64"', { | 218 ['target_arch == "ia32"', { |
214 'sources!': [ | |
215 'block_unittest.cc', | |
216 'error_info_unittest.cc', | |
217 'reporters/kasko_reporter_unittest.cc', | |
218 'crt_interceptors_unittest.cc', | |
219 'block_utils_unittest.cc', | |
220 'heap_checker_unittest.cc', | |
221 'iat_patcher_unittest.cc', | |
222 'logger_unittest.cc', | |
223 'memory_interceptors_patcher_unittest.cc', | |
224 'memory_interceptors_unittest.cc', | |
225 'page_protection_helpers_unittest.cc', | |
226 'registry_cache_unittest.cc', | |
227 'rtl_unittest.cc', | |
228 'shadow_unittest.cc', | |
229 'runtime_unittest.cc', | |
230 'rtl_impl_unittest.cc', | |
231 'rtl_utils_unittest.cc', | |
232 'system_interceptors_unittest.cc', | |
233 'heap_managers/block_heap_manager_unittest.cc', | |
234 'memory_notifiers/shadow_memory_notifier_unittest.cc', | |
235 ], | |
236 }, { | |
237 'msvs_settings': { | 219 'msvs_settings': { |
238 'VCLinkerTool': { | 220 'VCLinkerTool': { |
239 # Disable support for large address spaces. | 221 # Disable support for large address spaces. |
240 'LargeAddressAware': 1, | 222 'LargeAddressAware': 1, |
241 }, | 223 }, |
242 }, | 224 }, |
| 225 }, { |
| 226 'sources!': [ |
| 227 # Static shadow doesn't work for large address spaces. |
| 228 'static_shadow.cc', |
| 229 # Kasko is to be removed. |
| 230 'reporters/kasko_reporter_unittest.cc', |
| 231 # Redirectors are not currently implemented for win64. |
| 232 'memory_interceptors_patcher_unittest.cc', |
| 233 # Relies on full set of probes. |
| 234 'memory_interceptors_unittest.cc', |
| 235 # Win64 binaries currently don't have the version info. |
| 236 'registry_cache_unittest.cc', |
| 237 'logger_unittest.cc', |
| 238 # PE lib for win64 is sort of stub, so there's nothing |
| 239 # to test there. |
| 240 'iat_patcher_unittest.cc', |
| 241 # IsHeapCorrupt fails. |
| 242 # TODO(loskutov): fix IsHeapCorrupt. |
| 243 'heap_checker_unittest.cc', |
| 244 # Uses 32bit assembler. |
| 245 'heap_managers/block_heap_manager_unittest.cc', |
| 246 ], |
| 247 'sources': ['dummy_shadow.cc'] |
243 }], | 248 }], |
244 ], | 249 ], |
245 'dependencies': [ | 250 'dependencies': [ |
246 'syzyasan_rtl_lib', | 251 'syzyasan_rtl_lib', |
247 'syzyasan_rtl', | 252 'syzyasan_rtl', |
248 'syzyasan_rtl_unittest_utils', | 253 'syzyasan_rtl_unittest_utils', |
249 '<(src)/base/base.gyp:base', | 254 '<(src)/base/base.gyp:base', |
250 '<(src)/base/base.gyp:test_support_base', | 255 '<(src)/base/base.gyp:test_support_base', |
251 '<(src)/syzygy/agent/common/common.gyp:agent_common_lib', | 256 '<(src)/syzygy/agent/common/common.gyp:agent_common_lib', |
252 '<(src)/syzygy/assm/assm.gyp:assm_lib', | 257 '<(src)/syzygy/assm/assm.gyp:assm_lib', |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 }, | 344 }, |
340 }, | 345 }, |
341 { | 346 { |
342 'target_name': 'syzyasan_rtl', | 347 'target_name': 'syzyasan_rtl', |
343 'type': 'loadable_module', | 348 'type': 'loadable_module', |
344 'includes': [ | 349 'includes': [ |
345 '../agent.gypi', | 350 '../agent.gypi', |
346 'agent_link_settings.gypi', | 351 'agent_link_settings.gypi', |
347 ], | 352 ], |
348 'sources': [ | 353 'sources': [ |
349 # This file must have a .def extension in order for GYP to | |
350 # automatically configure it as the ModuleDefinitionFile | |
351 # (we usually suffix generated files with .gen). | |
352 'gen/system_interceptors.def', | |
353 'dummy_shadow.cc', | 354 'dummy_shadow.cc', |
354 'syzyasan_rtl.cc', | 355 'syzyasan_rtl.cc', |
355 'syzyasan_rtl.rc', | 356 'syzyasan_rtl.rc', |
356 ], | 357 ], |
357 'dependencies': [ | 358 'dependencies': [ |
358 'syzyasan_rtl_lib', | 359 'syzyasan_rtl_lib', |
359 '<(src)/syzygy/agent/common/common.gyp:agent_common_lib', | 360 '<(src)/syzygy/agent/common/common.gyp:agent_common_lib', |
360 '<(src)/syzygy/common/common.gyp:common_lib', | 361 '<(src)/syzygy/common/common.gyp:common_lib', |
361 '<(src)/syzygy/core/core.gyp:core_lib', | 362 '<(src)/syzygy/core/core.gyp:core_lib', |
362 '<(src)/syzygy/version/version.gyp:syzygy_version', | 363 '<(src)/syzygy/version/version.gyp:syzygy_version', |
363 ], | 364 ], |
364 'msvs_settings': { | 365 'msvs_settings': { |
365 'VCLinkerTool': { | 366 'VCLinkerTool': { |
366 # This module should delay load nothing. | 367 # This module should delay load nothing. |
367 'DelayLoadDLLs=': [ | 368 'DelayLoadDLLs=': [ |
368 ], | 369 ], |
369 }, | 370 }, |
370 }, | 371 }, |
371 'conditions': [ | 372 'conditions': [ |
| 373 ['target_arch == "ia32"', { |
| 374 'sources': [ |
| 375 # This file must have a .def extension in order for GYP to |
| 376 # automatically configure it as the ModuleDefinitionFile |
| 377 # (we usually suffix generated files with .gen). |
| 378 'gen/system_interceptors.def', |
| 379 ] |
| 380 }, { |
| 381 'sources': [ |
| 382 'system_interceptors_x64.def' |
| 383 ] |
| 384 }], |
372 ['pgo_phase==1', { | 385 ['pgo_phase==1', { |
373 'msvs_settings': { | 386 'msvs_settings': { |
374 'VCLinkerTool': { | 387 'VCLinkerTool': { |
375 # 2 corresponds to LTCG:PGINSTRUMENT. | 388 # 2 corresponds to LTCG:PGINSTRUMENT. |
376 'LinkTimeCodeGeneration': '2', | 389 'LinkTimeCodeGeneration': '2', |
377 }, | 390 }, |
378 }, | 391 }, |
379 }], | 392 }], |
380 ['pgo_phase==2', { | 393 ['pgo_phase==2', { |
381 'msvs_settings': { | 394 'msvs_settings': { |
382 'VCLinkerTool': { | 395 'VCLinkerTool': { |
383 # 3 corresponds to LTCG:PGOPTIMIZE. | 396 # 3 corresponds to LTCG:PGOPTIMIZE. |
384 'LinkTimeCodeGeneration': '3', | 397 'LinkTimeCodeGeneration': '3', |
385 }, | 398 }, |
386 }, | 399 }, |
387 }], | 400 }], |
388 ], | 401 ], |
389 }, | 402 }, |
390 ], | 403 ], |
391 } | 404 } |
OLD | NEW |