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