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

Unified Diff: chrome_frame/crash_reporting/crash_reporting.gyp

Issue 882001: Utility functions to interact with the NT loader's data structures and associ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome_frame/crash_reporting/crash_reporting.gyp
===================================================================
--- chrome_frame/crash_reporting/crash_reporting.gyp (revision 40924)
+++ chrome_frame/crash_reporting/crash_reporting.gyp (working copy)
@@ -19,6 +19,8 @@
'sources': [
'crash_report.cc',
'crash_report.h',
+ 'nt_loader.cc',
+ 'nt_loader.h',
'vectored_handler-impl.h',
'vectored_handler.h',
],
@@ -31,14 +33,61 @@
],
},
{
+ 'target_name': 'crash_dll',
+ 'type': 'loadable_module',
+ 'sources': [
+ 'crash_dll.cc',
+ 'crash_dll.h',
+ ],
+ 'msvs_settings': {
+ # To work around a bug in some versions of the CRT, which cause
+ # crashes on program exit if a DLL crashes at process attach time,
+ # we cut out the CRT entirely, and set our DLL main routine as the
+ # entry point for the DLL.
+ 'VCLinkerTool': {
+ 'EntryPointSymbol': 'DllMain',
+ 'IgnoreAllDefaultLibraries': 1,
+ },
+ # Turn off buffer security checks, since we don't have CRT
+ # support for them, given that we don't link the CRT.
+ 'VCCLCompilerTool': {
+ 'BufferSecurityCheck': 'false',
+ },
+ },
+ 'configurations': {
+ 'Debug': {
+ 'msvs_settings': {
+ # Turn off basic CRT checks, since we don't have CRT support.
+ # We have to do this per configuration, as base.gypi specifies
+ # this per-config, which binds tighter than the defaults above.
+ 'VCCLCompilerTool': {
+ 'BasicRuntimeChecks': '0',
+ },
+ },
+ },
+ 'Debug_x64': {
+ 'msvs_settings': {
+ # Turn off basic CRT checks, since we don't have CRT support.
+ # We have to do this per configuration, as base.gypi specifies
+ # this per-config, which binds tighter than the defaults above.
+ 'VCCLCompilerTool': {
+ 'BasicRuntimeChecks': '0',
+ },
+ },
+ },
+ },
+ },
+ {
'target_name': 'vectored_handler_tests',
'type': 'executable',
'sources': [
+ 'nt_loader_unittest.cc',
'vectored_handler_unittest.cc',
'veh_test.cc',
'veh_test.h',
],
'dependencies': [
+ 'crash_dll',
'crash_report',
'../../base/base.gyp:base',
'../../testing/gmock.gyp:gmock',

Powered by Google App Engine
This is Rietveld 408576698