- add sources.
[platform/framework/web/crosswalk.git] / src / chrome_frame / crash_reporting / crash_reporting.gyp
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       'sources': [
86         'nt_loader_unittest.cc',
87         'vectored_handler_unittest.cc',
88         'veh_test.cc',
89         'veh_test.h',
90       ],
91       'dependencies': [
92         'crash_dll',
93         'crash_report',
94         '../../base/base.gyp:base',
95         '../../testing/gmock.gyp:gmock',
96         '../../testing/gtest.gyp:gtest',
97         '../../testing/gtest.gyp:gtest_main',
98         '../../breakpad/breakpad.gyp:breakpad_handler',
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 }