Chromium Code Reviews| 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': 'crash_component_lib', | 8 'target_name': 'crash_component_lib', |
| 9 'type': 'static_library', | 9 'type': 'static_library', |
| 10 'sources': [ | 10 'sources': [ |
| 11 'crash/app/crash_keys_win.cc', | 11 'crash/app/crash_keys_win.cc', |
| 12 'crash/app/crash_keys_win.h', | 12 'crash/app/crash_keys_win.h', |
| 13 'crash/app/crash_reporter_client.cc', | 13 'crash/app/crash_reporter_client.cc', |
| 14 'crash/app/crash_reporter_client.h', | 14 'crash/app/crash_reporter_client.h', |
| 15 ], | 15 ], |
| 16 'include_dirs': [ | 16 'include_dirs': [ |
| 17 '..', | 17 '..', |
| 18 '../breakpad/src', | 18 '../breakpad/src', |
| 19 ], | 19 ], |
| 20 }, | 20 }, |
| 21 { | 21 { |
| 22 # TODO(mark): https://crbug.com/466890: merge this target with | |
| 23 # crash_component. | |
| 24 # | |
| 25 # This is a temporary base target that is depended on by both | |
| 26 # crash_component and crash_component_breakpad_mac_to_be_deleted. It | |
| 27 # provides everything common to both of those targets. For a short period, | |
| 28 # there are two Mac crash component implementations. The new one uses a | |
| 29 # Crashpad implementation and is used by Chrome. The old one uses a | |
| 30 # Breakpad implementation and is used by content_shell. Consumers should | |
| 31 # depend on the desired target. All three targets behave identically on | |
| 32 # non-Mac. When content_shell and any other consumers are migrated to the | |
| 33 # Crashpad implementation on Mac, crash_component will merge back into | |
| 34 # this target, crash_component_base, which will be renamed | |
| 35 # crash_component. crash_component_breakpad_mac_to_be_deleted will be | |
| 36 # deleted. | |
| 37 'target_name': 'crash_component_base', | |
|
Robert Sesek
2015/03/13 04:26:32
This could also be crash_component_non_mac, and th
| |
| 22 'variables': { | 38 'variables': { |
| 23 'conditions': [ | 39 'conditions': [ |
| 24 ['OS == "ios" ', { | 40 ['OS == "ios" or OS == "mac"', { |
| 25 # On IOS there are no files compiled into the library, and we | 41 # On IOS there are no files compiled into the library, and we |
| 26 # can't have libraries with zero objects. | 42 # can't have libraries with zero objects. |
| 43 # For now, the same applies to Mac OS X, until this target merges | |
| 44 # with crash_component. | |
| 27 'crash_component_target_type%': 'none', | 45 'crash_component_target_type%': 'none', |
| 28 }, { | 46 }, { |
| 29 'crash_component_target_type%': 'static_library', | 47 'crash_component_target_type%': 'static_library', |
| 30 }], | 48 }], |
| 31 ], | 49 ], |
| 32 }, | 50 }, |
| 33 # Note: if you depend on this target, you need to either link in | |
| 34 # content.gyp:content_common, or add | |
| 35 # content/public/common/content_switches.cc to your sources. | |
| 36 # | |
| 37 # GN version: //components/crash/app | |
| 38 'target_name': 'crash_component', | |
| 39 'type': '<(crash_component_target_type)', | 51 'type': '<(crash_component_target_type)', |
| 40 'sources': [ | 52 'sources': [ |
| 41 'crash/app/breakpad_linux.cc', | 53 'crash/app/breakpad_linux.cc', |
| 42 'crash/app/breakpad_linux.h', | 54 'crash/app/breakpad_linux.h', |
| 43 'crash/app/breakpad_linux_impl.h', | 55 'crash/app/breakpad_linux_impl.h', |
| 44 'crash/app/breakpad_mac.h', | |
| 45 'crash/app/breakpad_mac.mm', | |
| 46 'crash/app/breakpad_win.cc', | 56 'crash/app/breakpad_win.cc', |
| 47 'crash/app/breakpad_win.h', | 57 'crash/app/breakpad_win.h', |
| 48 'crash/app/hard_error_handler_win.cc', | 58 'crash/app/hard_error_handler_win.cc', |
| 49 'crash/app/hard_error_handler_win.h', | 59 'crash/app/hard_error_handler_win.h', |
| 50 ], | 60 ], |
| 51 'dependencies': [ | 61 'dependencies': [ |
| 52 'crash_component_lib', | 62 'crash_component_lib', |
| 53 '../base/base.gyp:base', | 63 '../base/base.gyp:base', |
| 54 ], | 64 ], |
| 55 'defines': ['CRASH_IMPLEMENTATION'], | 65 'defines': ['CRASH_IMPLEMENTATION'], |
| 56 'conditions': [ | 66 'conditions': [ |
| 57 ['OS=="mac"', { | |
| 58 'dependencies': [ | |
| 59 '../breakpad/breakpad.gyp:breakpad', | |
| 60 ], | |
| 61 }], | |
| 62 ['OS=="win"', { | 67 ['OS=="win"', { |
| 63 'dependencies': [ | 68 'dependencies': [ |
| 64 '../breakpad/breakpad.gyp:breakpad_handler', | 69 '../breakpad/breakpad.gyp:breakpad_handler', |
| 65 '../breakpad/breakpad.gyp:breakpad_sender', | 70 '../breakpad/breakpad.gyp:breakpad_sender', |
| 66 '../sandbox/sandbox.gyp:sandbox', | 71 '../sandbox/sandbox.gyp:sandbox', |
| 67 ], | 72 ], |
| 68 }], | 73 }], |
| 69 ['os_posix == 1 and OS != "mac" and OS != "ios" and android_webview_buil d != 1', { | 74 ['os_posix == 1 and OS != "mac" and OS != "ios" and android_webview_buil d != 1', { |
| 70 'dependencies': [ | 75 'dependencies': [ |
| 71 '../breakpad/breakpad.gyp:breakpad_client', | 76 '../breakpad/breakpad.gyp:breakpad_client', |
| 72 ], | 77 ], |
| 73 'include_dirs': [ | 78 'include_dirs': [ |
| 74 '../breakpad/src', | 79 '../breakpad/src', |
| 75 ], | 80 ], |
| 76 }], | 81 }], |
| 77 ], | 82 ], |
| 78 'target_conditions': [ | 83 'target_conditions': [ |
| 79 # Need 'target_conditions' to override default filename_rules to include | 84 # Need 'target_conditions' to override default filename_rules to include |
| 80 # the files on Android. | 85 # the files on Android. |
| 81 ['OS=="android"', { | 86 ['OS=="android"', { |
| 82 'sources/': [ | 87 'sources/': [ |
| 83 ['include', '^crash/app/breakpad_linux\\.cc$'], | 88 ['include', '^crash/app/breakpad_linux\\.cc$'], |
| 84 ], | 89 ], |
| 85 }], | 90 }], |
| 86 ], | 91 ], |
| 87 }, | 92 }, |
| 88 { | 93 { |
| 94 # Note: if you depend on this target, you need to either link in | |
| 95 # content.gyp:content_common, or add | |
| 96 # content/public/common/content_switches.cc to your sources. | |
| 97 # | |
| 98 # GN version: //components/crash/app | |
| 99 | |
| 100 # TODO(mark): https://crbug.com/466890: merge this target with | |
| 101 # crash_component_base. | |
| 102 # | |
| 103 # Most of this target is actually in its dependency, crash_component_base. | |
| 104 # See the comment in that target for an explanation for the split. The | |
| 105 # split is temporary and the two targets will be unified again soon. | |
| 106 'target_name': 'crash_component', | |
| 107 'variables': { | |
| 108 'conditions': [ | |
| 109 ['OS != "mac" ', { | |
| 110 # There are no source files on any platform but Mac OS X. | |
| 111 'crash_component_target_type%': 'none', | |
| 112 }, { | |
| 113 'crash_component_target_type%': 'static_library', | |
| 114 }], | |
| 115 ], | |
| 116 }, | |
| 117 'type': '<(crash_component_target_type)', | |
| 118 'sources': [ | |
| 119 'crash/app/crashpad_mac.h', | |
| 120 'crash/app/crashpad_mac.mm', | |
| 121 ], | |
| 122 'dependencies': [ | |
| 123 'crash_component_base', | |
| 124 'crash_component_lib', | |
| 125 '../base/base.gyp:base', | |
| 126 ], | |
| 127 'defines': ['CRASH_IMPLEMENTATION'], | |
| 128 'conditions': [ | |
| 129 ['OS=="mac"', { | |
| 130 'dependencies': [ | |
| 131 '../third_party/crashpad/crashpad/client/client.gyp:crashpad_client' , | |
| 132 ], | |
| 133 }], | |
| 134 ], | |
| 135 }, | |
| 136 { | |
| 137 # TODO(mark): https://crbug.com/466890: remove this target. | |
| 138 # | |
| 139 # This is a temporary target provided for Mac Breakpad users that have not | |
| 140 # yet migrated to Crashpad (namely content_shell). This target will be | |
| 141 # removed shortly and all consumers will be expected to use Crashpad as | |
| 142 # the Mac crash-reporting client. See the comment in the | |
| 143 # crash_component_base target for more details. | |
| 144 'target_name': 'crash_component_breakpad_mac_to_be_deleted', | |
| 145 'variables': { | |
| 146 'conditions': [ | |
| 147 ['OS != "mac" ', { | |
| 148 # There are no source files on any platform but Mac OS X. | |
| 149 'crash_component_target_type%': 'none', | |
| 150 }, { | |
| 151 'crash_component_target_type%': 'static_library', | |
| 152 }], | |
| 153 ], | |
| 154 }, | |
| 155 'type': '<(crash_component_target_type)', | |
| 156 'sources': [ | |
| 157 'crash/app/breakpad_mac.h', | |
| 158 'crash/app/breakpad_mac.mm', | |
| 159 ], | |
| 160 'dependencies': [ | |
| 161 'crash_component_base', | |
| 162 'crash_component_lib', | |
| 163 ], | |
| 164 'defines': ['CRASH_IMPLEMENTATION'], | |
| 165 'conditions': [ | |
| 166 ['OS=="mac"', { | |
| 167 'dependencies': [ | |
| 168 '../breakpad/breakpad.gyp:breakpad', | |
| 169 ], | |
| 170 'include_dirs': [ | |
| 171 '..', | |
| 172 ], | |
| 173 }], | |
| 174 ], | |
| 175 }, | |
| 176 { | |
| 89 # GN version: //components/crash/app:test_support | 177 # GN version: //components/crash/app:test_support |
| 90 'target_name': 'crash_test_support', | 178 'target_name': 'crash_test_support', |
| 91 'type': 'none', | 179 'type': 'none', |
| 92 'dependencies': [ | 180 'dependencies': [ |
| 93 'crash_component_lib', | 181 'crash_component_lib', |
| 94 ], | 182 ], |
| 95 'direct_dependent_settings': { | 183 'direct_dependent_settings': { |
| 96 'include_dirs' : [ | 184 'include_dirs' : [ |
| 97 '../breakpad/src', | 185 '../breakpad/src', |
| 98 ], | 186 ], |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 'sources/': [ | 312 'sources/': [ |
| 225 ['include', '^crash/browser/crash_handler_host_linux\\.cc$'], | 313 ['include', '^crash/browser/crash_handler_host_linux\\.cc$'], |
| 226 ], | 314 ], |
| 227 }], | 315 }], |
| 228 ], | 316 ], |
| 229 }, | 317 }, |
| 230 ], | 318 ], |
| 231 }], | 319 }], |
| 232 ], | 320 ], |
| 233 } | 321 } |
| OLD | NEW |