OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'breakpad_component_lib', | 8 'target_name': 'crash_component_lib', |
9 'type': 'static_library', | 9 'type': 'static_library', |
10 'sources': [ | 10 'sources': [ |
11 'breakpad/app/breakpad_client.cc', | 11 'crash/app/breakpad_client.cc', |
12 'breakpad/app/breakpad_client.h', | 12 'crash/app/breakpad_client.h', |
13 'breakpad/app/crash_keys_win.cc', | 13 'crash/app/crash_keys_win.cc', |
14 'breakpad/app/crash_keys_win.h', | 14 'crash/app/crash_keys_win.h', |
15 ], | 15 ], |
16 'include_dirs': [ | 16 'include_dirs': [ |
17 '..', | 17 '..', |
18 '../breakpad/src', | 18 '../breakpad/src', |
19 ], | 19 ], |
20 }, | 20 }, |
21 { | 21 { |
22 'variables': { | 22 'variables': { |
23 'conditions': [ | 23 'conditions': [ |
24 ['OS == "ios" ', { | 24 ['OS == "ios" ', { |
25 # On IOS there are no files compiled into the library, and we | 25 # On IOS there are no files compiled into the library, and we |
26 # can't have libraries with zero objects. | 26 # can't have libraries with zero objects. |
27 'breakpad_component_target_type%': 'none', | 27 'crash_component_target_type%': 'none', |
28 }, { | 28 }, { |
29 'breakpad_component_target_type%': 'static_library', | 29 'crash_component_target_type%': 'static_library', |
30 }], | 30 }], |
31 ], | 31 ], |
32 }, | 32 }, |
33 # Note: if you depend on this target, you need to either link in | 33 # Note: if you depend on this target, you need to either link in |
34 # content.gyp:content_common, or add | 34 # content.gyp:content_common, or add |
35 # content/public/common/content_switches.cc to your sources. | 35 # content/public/common/content_switches.cc to your sources. |
36 # | 36 # |
37 # GN version: //components/breakpad/app | 37 # GN version: //components/crash/app |
38 'target_name': 'breakpad_component', | 38 'target_name': 'crash_component', |
39 'type': '<(breakpad_component_target_type)', | 39 'type': '<(crash_component_target_type)', |
40 'sources': [ | 40 'sources': [ |
41 'breakpad/app/breakpad_linux.cc', | 41 'crash/app/breakpad_linux.cc', |
42 'breakpad/app/breakpad_linux.h', | 42 'crash/app/breakpad_linux.h', |
43 'breakpad/app/breakpad_linux_impl.h', | 43 'crash/app/breakpad_linux_impl.h', |
44 'breakpad/app/breakpad_mac.h', | 44 'crash/app/breakpad_mac.h', |
45 'breakpad/app/breakpad_mac.mm', | 45 'crash/app/breakpad_mac.mm', |
46 'breakpad/app/breakpad_win.cc', | 46 'crash/app/breakpad_win.cc', |
47 'breakpad/app/breakpad_win.h', | 47 'crash/app/breakpad_win.h', |
48 'breakpad/app/hard_error_handler_win.cc', | 48 'crash/app/hard_error_handler_win.cc', |
49 'breakpad/app/hard_error_handler_win.h', | 49 'crash/app/hard_error_handler_win.h', |
50 ], | 50 ], |
51 'dependencies': [ | 51 'dependencies': [ |
52 'breakpad_component_lib', | 52 'crash_component_lib', |
53 '../base/base.gyp:base', | 53 '../base/base.gyp:base', |
54 ], | 54 ], |
55 'defines': ['BREAKPAD_IMPLEMENTATION'], | 55 'defines': ['CRASH_IMPLEMENTATION'], |
56 'conditions': [ | 56 'conditions': [ |
57 ['OS=="mac"', { | 57 ['OS=="mac"', { |
58 'dependencies': [ | 58 'dependencies': [ |
59 '../breakpad/breakpad.gyp:breakpad', | 59 '../breakpad/breakpad.gyp:breakpad', |
60 ], | 60 ], |
61 }], | 61 }], |
62 ['OS=="win"', { | 62 ['OS=="win"', { |
63 'dependencies': [ | 63 'dependencies': [ |
64 '../breakpad/breakpad.gyp:breakpad_handler', | 64 '../breakpad/breakpad.gyp:breakpad_handler', |
65 '../breakpad/breakpad.gyp:breakpad_sender', | 65 '../breakpad/breakpad.gyp:breakpad_sender', |
66 '../sandbox/sandbox.gyp:sandbox', | 66 '../sandbox/sandbox.gyp:sandbox', |
67 ], | 67 ], |
68 }], | 68 }], |
69 ['os_posix == 1 and OS != "mac" and OS != "ios" and android_webview_buil
d != 1', { | 69 ['os_posix == 1 and OS != "mac" and OS != "ios" and android_webview_buil
d != 1', { |
70 'dependencies': [ | 70 'dependencies': [ |
71 '../breakpad/breakpad.gyp:breakpad_client', | 71 '../breakpad/breakpad.gyp:breakpad_client', |
72 ], | 72 ], |
73 'include_dirs': [ | 73 'include_dirs': [ |
74 '../breakpad/src', | 74 '../breakpad/src', |
75 ], | 75 ], |
76 }], | 76 }], |
77 ], | 77 ], |
78 'target_conditions': [ | 78 'target_conditions': [ |
79 # Need 'target_conditions' to override default filename_rules to include | 79 # Need 'target_conditions' to override default filename_rules to include |
80 # the files on Android. | 80 # the files on Android. |
81 ['OS=="android"', { | 81 ['OS=="android"', { |
82 'sources/': [ | 82 'sources/': [ |
83 ['include', '^breakpad/app/breakpad_linux\\.cc$'], | 83 ['include', '^crash/app/breakpad_linux\\.cc$'], |
84 ], | 84 ], |
85 }], | 85 }], |
86 ], | 86 ], |
87 }, | 87 }, |
88 { | 88 { |
89 # GN version: //components/breakpad/app:test_support | 89 # GN version: //components/crash/app:test_support |
90 'target_name': 'breakpad_test_support', | 90 'target_name': 'crash_test_support', |
91 'type': 'none', | 91 'type': 'none', |
92 'dependencies': [ | 92 'dependencies': [ |
93 'breakpad_component_lib', | 93 'crash_component_lib', |
94 ], | 94 ], |
95 'direct_dependent_settings': { | 95 'direct_dependent_settings': { |
96 'include_dirs' : [ | 96 'include_dirs' : [ |
97 '../breakpad/src', | 97 '../breakpad/src', |
98 ], | 98 ], |
99 } | 99 } |
100 }, | 100 }, |
101 ], | 101 ], |
102 'conditions': [ | 102 'conditions': [ |
103 ['OS=="win"', { | 103 ['OS=="win"', { |
104 'targets': [ | 104 'targets': [ |
105 { | 105 { |
106 # GN version: //components/breakpad/tools:crash_service | 106 # GN version: //components/crash/tools:crash_service |
107 'target_name': 'breakpad_crash_service', | 107 'target_name': 'breakpad_crash_service', |
108 'type': 'static_library', | 108 'type': 'static_library', |
109 'dependencies': [ | 109 'dependencies': [ |
110 '../base/base.gyp:base', | 110 '../base/base.gyp:base', |
111 '../breakpad/breakpad.gyp:breakpad_handler', | 111 '../breakpad/breakpad.gyp:breakpad_handler', |
112 '../breakpad/breakpad.gyp:breakpad_sender', | 112 '../breakpad/breakpad.gyp:breakpad_sender', |
113 ], | 113 ], |
114 'sources': [ | 114 'sources': [ |
115 'breakpad/tools/crash_service.cc', | 115 'crash/tools/crash_service.cc', |
116 'breakpad/tools/crash_service.h', | 116 'crash/tools/crash_service.h', |
117 ], | 117 ], |
118 }, | 118 }, |
119 ], | 119 ], |
120 }], | 120 }], |
121 ['OS=="win" and target_arch=="ia32"', { | 121 ['OS=="win" and target_arch=="ia32"', { |
122 'targets': [ | 122 'targets': [ |
123 { | 123 { |
124 # Note: if you depend on this target, you need to either link in | 124 # Note: if you depend on this target, you need to either link in |
125 # content.gyp:content_common, or add | 125 # content.gyp:content_common, or add |
126 # content/public/common/content_switches.cc to your sources. | 126 # content/public/common/content_switches.cc to your sources. |
127 'target_name': 'breakpad_win64', | 127 'target_name': 'breakpad_win64', |
128 'type': 'static_library', | 128 'type': 'static_library', |
129 'sources': [ | 129 'sources': [ |
130 'breakpad/app/breakpad_client.cc', | 130 'crash/app/breakpad_client.cc', |
131 'breakpad/app/breakpad_client.h', | 131 'crash/app/breakpad_client.h', |
132 'breakpad/app/breakpad_linux.cc', | 132 'crash/app/breakpad_linux.cc', |
133 'breakpad/app/breakpad_linux.h', | 133 'crash/app/breakpad_linux.h', |
134 'breakpad/app/breakpad_linux_impl.h', | 134 'crash/app/breakpad_linux_impl.h', |
135 'breakpad/app/breakpad_mac.h', | 135 'crash/app/breakpad_mac.h', |
136 'breakpad/app/breakpad_mac.mm', | 136 'crash/app/breakpad_mac.mm', |
137 'breakpad/app/breakpad_win.cc', | 137 'crash/app/breakpad_win.cc', |
138 'breakpad/app/breakpad_win.h', | 138 'crash/app/breakpad_win.h', |
139 # TODO(siggi): test the x64 version too. | 139 # TODO(siggi): test the x64 version too. |
140 'breakpad/app/crash_keys_win.cc', | 140 'crash/app/crash_keys_win.cc', |
141 'breakpad/app/crash_keys_win.h', | 141 'crash/app/crash_keys_win.h', |
142 'breakpad/app/hard_error_handler_win.cc', | 142 'crash/app/hard_error_handler_win.cc', |
143 'breakpad/app/hard_error_handler_win.h', | 143 'crash/app/hard_error_handler_win.h', |
144 ], | 144 ], |
145 'defines': [ | 145 'defines': [ |
146 'COMPILE_CONTENT_STATICALLY', | 146 'COMPILE_CONTENT_STATICALLY', |
147 'BREAKPAD_IMPLEMENTATION', | 147 'CRASH_IMPLEMENTATION', |
148 ], | 148 ], |
149 'dependencies': [ | 149 'dependencies': [ |
150 '../base/base.gyp:base_win64', | 150 '../base/base.gyp:base_win64', |
151 '../breakpad/breakpad.gyp:breakpad_handler_win64', | 151 '../breakpad/breakpad.gyp:breakpad_handler_win64', |
152 '../breakpad/breakpad.gyp:breakpad_sender_win64', | 152 '../breakpad/breakpad.gyp:breakpad_sender_win64', |
153 '../sandbox/sandbox.gyp:sandbox_win64', | 153 '../sandbox/sandbox.gyp:sandbox_win64', |
154 ], | 154 ], |
155 'configurations': { | 155 'configurations': { |
156 'Common_Base': { | 156 'Common_Base': { |
157 'msvs_target_platform': 'x64', | 157 'msvs_target_platform': 'x64', |
158 }, | 158 }, |
159 }, | 159 }, |
160 }, | 160 }, |
161 { | 161 { |
162 'target_name': 'breakpad_crash_service_win64', | 162 'target_name': 'breakpad_crash_service_win64', |
163 'type': 'static_library', | 163 'type': 'static_library', |
164 'dependencies': [ | 164 'dependencies': [ |
165 '../base/base.gyp:base_win64', | 165 '../base/base.gyp:base_win64', |
166 '../breakpad/breakpad.gyp:breakpad_handler_win64', | 166 '../breakpad/breakpad.gyp:breakpad_handler_win64', |
167 '../breakpad/breakpad.gyp:breakpad_sender_win64', | 167 '../breakpad/breakpad.gyp:breakpad_sender_win64', |
168 ], | 168 ], |
169 'sources': [ | 169 'sources': [ |
170 'breakpad/tools/crash_service.cc', | 170 'crash/tools/crash_service.cc', |
171 'breakpad/tools/crash_service.h', | 171 'crash/tools/crash_service.h', |
172 ], | 172 ], |
173 'configurations': { | 173 'configurations': { |
174 'Common_Base': { | 174 'Common_Base': { |
175 'msvs_target_platform': 'x64', | 175 'msvs_target_platform': 'x64', |
176 }, | 176 }, |
177 }, | 177 }, |
178 }, | 178 }, |
179 ], | 179 ], |
180 }], | 180 }], |
181 ['OS=="mac"', { | 181 ['OS=="mac"', { |
182 'targets': [ | 182 'targets': [ |
183 { | 183 { |
184 'target_name': 'breakpad_stubs', | 184 'target_name': 'breakpad_stubs', |
185 'type': 'static_library', | 185 'type': 'static_library', |
186 'dependencies': [ | 186 'dependencies': [ |
187 '../base/base.gyp:base', | 187 '../base/base.gyp:base', |
188 ], | 188 ], |
189 'sources': [ | 189 'sources': [ |
190 'breakpad/app/breakpad_client.cc', | 190 'crash/app/breakpad_client.cc', |
191 'breakpad/app/breakpad_client.h', | 191 'crash/app/breakpad_client.h', |
192 'breakpad/app/breakpad_mac.h', | 192 'crash/app/breakpad_mac.h', |
193 'breakpad/app/breakpad_mac_stubs.mm', | 193 'crash/app/breakpad_mac_stubs.mm', |
194 ], | 194 ], |
195 }, | 195 }, |
196 ], | 196 ], |
197 }], | 197 }], |
198 ['os_posix == 1 and OS != "mac" and OS != "ios" and android_webview_build !=
1', { | 198 ['os_posix == 1 and OS != "mac" and OS != "ios" and android_webview_build !=
1', { |
199 'targets': [ | 199 'targets': [ |
200 { | 200 { |
201 # GN version: //components/breakpad/browser | 201 # GN version: //components/crash/browser |
202 'target_name': 'breakpad_host', | 202 'target_name': 'breakpad_host', |
203 'type': 'static_library', | 203 'type': 'static_library', |
204 'dependencies': [ | 204 'dependencies': [ |
205 'breakpad_component', | 205 'crash_component', |
206 '../base/base.gyp:base', | 206 '../base/base.gyp:base', |
207 '../breakpad/breakpad.gyp:breakpad_client', | 207 '../breakpad/breakpad.gyp:breakpad_client', |
208 '../content/content.gyp:content_browser', | 208 '../content/content.gyp:content_browser', |
209 '../content/content.gyp:content_common', | 209 '../content/content.gyp:content_common', |
210 ], | 210 ], |
211 'sources': [ | 211 'sources': [ |
212 'breakpad/browser/crash_dump_manager_android.cc', | 212 'crash/browser/crash_dump_manager_android.cc', |
213 'breakpad/browser/crash_dump_manager_android.h', | 213 'crash/browser/crash_dump_manager_android.h', |
214 'breakpad/browser/crash_handler_host_linux.cc', | 214 'crash/browser/crash_handler_host_linux.cc', |
215 'breakpad/browser/crash_handler_host_linux.h', | 215 'crash/browser/crash_handler_host_linux.h', |
216 ], | 216 ], |
217 'include_dirs': [ | 217 'include_dirs': [ |
218 '../breakpad/src', | 218 '../breakpad/src', |
219 ], | 219 ], |
220 'target_conditions': [ | 220 'target_conditions': [ |
221 # Need 'target_conditions' to override default filename_rules to inc
lude | 221 # Need 'target_conditions' to override default filename_rules to inc
lude |
222 # the files on Android. | 222 # the files on Android. |
223 ['OS=="android"', { | 223 ['OS=="android"', { |
224 'sources/': [ | 224 'sources/': [ |
225 ['include', '^breakpad/browser/crash_handler_host_linux\\.cc$'], | 225 ['include', '^crash/browser/crash_handler_host_linux\\.cc$'], |
226 ], | 226 ], |
227 }], | 227 }], |
228 ], | 228 ], |
229 }, | 229 }, |
230 ], | 230 ], |
231 }], | 231 }], |
232 ], | 232 ], |
233 } | 233 } |
OLD | NEW |