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