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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
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 'includes': [ 6 'includes': [
7 '../../build/common.gypi', 7 '../../build/common.gypi',
8 ], 8 ],
9 'target_defaults': { 9 'target_defaults': {
10 'include_dirs': [ 10 'include_dirs': [
11 # all our own includes are relative to src/ 11 # all our own includes are relative to src/
12 '../..', 12 '../..',
13 ], 13 ],
14 }, 14 },
15 'targets': [ 15 'targets': [
16 { 16 {
17 'target_name': 'crash_report', 17 'target_name': 'crash_report',
18 'type': 'static_library', 18 'type': 'static_library',
19 'sources': [ 19 'sources': [
20 'crash_report.cc', 20 'crash_report.cc',
21 'crash_report.h', 21 'crash_report.h',
22 'nt_loader.cc',
23 'nt_loader.h',
22 'vectored_handler-impl.h', 24 'vectored_handler-impl.h',
23 'vectored_handler.h', 25 'vectored_handler.h',
24 ], 26 ],
25 'conditions': [ 27 'conditions': [
26 ['OS=="win"', { 28 ['OS=="win"', {
27 'dependencies': [ 29 'dependencies': [
28 '../../breakpad/breakpad.gyp:breakpad_handler', 30 '../../breakpad/breakpad.gyp:breakpad_handler',
29 ], 31 ],
30 }], 32 }],
31 ], 33 ],
32 }, 34 },
33 { 35 {
36 'target_name': 'crash_dll',
37 'type': 'loadable_module',
38 'sources': [
39 'crash_dll.cc',
40 'crash_dll.h',
41 ],
42 'msvs_settings': {
43 # To work around a bug in some versions of the CRT, which cause
44 # crashes on program exit if a DLL crashes at process attach time,
45 # we cut out the CRT entirely, and set our DLL main routine as the
46 # entry point for the DLL.
47 'VCLinkerTool': {
48 'EntryPointSymbol': 'DllMain',
49 'IgnoreAllDefaultLibraries': 1,
50 },
51 # Turn off buffer security checks, since we don't have CRT
52 # support for them, given that we don't link the CRT.
53 'VCCLCompilerTool': {
54 'BufferSecurityCheck': 'false',
55 },
56 },
57 'configurations': {
58 'Debug': {
59 'msvs_settings': {
60 # Turn off basic CRT checks, since we don't have CRT support.
61 # We have to do this per configuration, as base.gypi specifies
62 # this per-config, which binds tighter than the defaults above.
63 'VCCLCompilerTool': {
64 'BasicRuntimeChecks': '0',
65 },
66 },
67 },
68 'Debug_x64': {
69 'msvs_settings': {
70 # Turn off basic CRT checks, since we don't have CRT support.
71 # We have to do this per configuration, as base.gypi specifies
72 # this per-config, which binds tighter than the defaults above.
73 'VCCLCompilerTool': {
74 'BasicRuntimeChecks': '0',
75 },
76 },
77 },
78 },
79 },
80 {
34 'target_name': 'vectored_handler_tests', 81 'target_name': 'vectored_handler_tests',
35 'type': 'executable', 82 'type': 'executable',
36 'sources': [ 83 'sources': [
84 'nt_loader_unittest.cc',
37 'vectored_handler_unittest.cc', 85 'vectored_handler_unittest.cc',
38 'veh_test.cc', 86 'veh_test.cc',
39 'veh_test.h', 87 'veh_test.h',
40 ], 88 ],
41 'dependencies': [ 89 'dependencies': [
90 'crash_dll',
42 'crash_report', 91 'crash_report',
43 '../../base/base.gyp:base', 92 '../../base/base.gyp:base',
44 '../../testing/gmock.gyp:gmock', 93 '../../testing/gmock.gyp:gmock',
45 '../../testing/gtest.gyp:gtest', 94 '../../testing/gtest.gyp:gtest',
46 '../../testing/gtest.gyp:gtestmain', 95 '../../testing/gtest.gyp:gtestmain',
47 '../../breakpad/breakpad.gyp:breakpad_handler', 96 '../../breakpad/breakpad.gyp:breakpad_handler',
48 ], 97 ],
49 }, 98 },
50 { 99 {
51 'target_name': 'minidump_test', 100 'target_name': 'minidump_test',
52 'type': 'executable', 101 'type': 'executable',
53 'dependencies': [ 102 'dependencies': [
54 '../../base/base.gyp:base', 103 '../../base/base.gyp:base',
55 '../../testing/gtest.gyp:gtest', 104 '../../testing/gtest.gyp:gtest',
56 ], 105 ],
57 'sources': [ 106 'sources': [
58 'minidump_test.cc', 107 'minidump_test.cc',
59 ], 108 ],
60 }, 109 },
61 ], 110 ],
62 } 111 }
63 112
64 # vim: shiftwidth=2:et:ai:tabstop=2 113 # vim: shiftwidth=2:et:ai:tabstop=2
65 114
66 # Local Variables: 115 # Local Variables:
67 # tab-width:2 116 # tab-width:2
68 # indent-tabs-mode:nil 117 # indent-tabs-mode:nil
69 # End: 118 # End:
70 # vim: set expandtab tabstop=2 shiftwidth=2: 119 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698