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 'target_defaults': { | 6 'target_defaults': { |
7 'variables': { | 7 'variables': { |
8 'breakpad_component_target': 0, | 8 'breakpad_component_target': 0, |
9 }, | 9 }, |
10 'target_conditions': [ | 10 'target_conditions': [ |
11 ['breakpad_component_target==1', { | 11 ['breakpad_component_target==1', { |
| 12 'defines': ['BREAKPAD_IMPLEMENTATION'], |
12 'sources': [ | 13 'sources': [ |
13 'breakpad/breakpad_client.cc', | 14 'breakpad/app/breakpad_client.cc', |
14 'breakpad/breakpad_client.h', | 15 'breakpad/app/breakpad_client.h', |
15 'breakpad/breakpad_mac.h', | 16 'breakpad/app/breakpad_linux.cc', |
16 'breakpad/breakpad_mac.mm', | 17 'breakpad/app/breakpad_linux.h', |
17 'breakpad/breakpad_win.cc', | 18 'breakpad/app/breakpad_linux_impl.h', |
18 'breakpad/breakpad_win.h', | 19 'breakpad/app/breakpad_mac.h', |
19 'breakpad/hard_error_handler_win.cc', | 20 'breakpad/app/breakpad_mac.mm', |
20 'breakpad/hard_error_handler_win.h', | 21 'breakpad/app/breakpad_win.cc', |
| 22 'breakpad/app/breakpad_win.h', |
| 23 'breakpad/app/hard_error_handler_win.cc', |
| 24 'breakpad/app/hard_error_handler_win.h', |
| 25 ], |
| 26 }], |
| 27 # Need 'target_conditions' to override default filename_rules to include |
| 28 # the files on Android. |
| 29 ['breakpad_component_target==1 and OS=="android"', { |
| 30 'sources/': [ |
| 31 ['include', '^breakpad/breakpad_linux\\.cc$'], |
21 ], | 32 ], |
22 }], | 33 }], |
23 ], | 34 ], |
24 }, | 35 }, |
25 'targets': [ | 36 'targets': [ |
26 { | 37 { |
| 38 # Note: if you depend on this target, you need to either link in |
| 39 # content.gyp:content_common, or add |
| 40 # content/public/common/content_switches.cc to your sources. |
27 'target_name': 'breakpad_component', | 41 'target_name': 'breakpad_component', |
28 'type': 'static_library', | 42 'type': 'static_library', |
29 'variables': { | 43 'variables': { |
30 'breakpad_component_target': 1, | 44 'breakpad_component_target': 1, |
31 }, | 45 }, |
32 'dependencies': [ | 46 'dependencies': [ |
33 '../base/base.gyp:base', | 47 '../base/base.gyp:base', |
34 ], | 48 ], |
35 'conditions': [ | 49 'conditions': [ |
36 ['OS=="mac"', { | 50 ['OS=="mac"', { |
37 'dependencies': [ | 51 'dependencies': [ |
38 '../breakpad/breakpad.gyp:breakpad', | 52 '../breakpad/breakpad.gyp:breakpad', |
39 '../content/content.gyp:content_common', | |
40 ], | 53 ], |
41 }], | 54 }], |
42 ['OS=="win"', { | 55 ['OS=="win"', { |
43 'dependencies': [ | 56 'dependencies': [ |
44 '../breakpad/breakpad.gyp:breakpad_handler', | 57 '../breakpad/breakpad.gyp:breakpad_handler', |
45 '../breakpad/breakpad.gyp:breakpad_sender', | 58 '../breakpad/breakpad.gyp:breakpad_sender', |
46 '../sandbox/sandbox.gyp:sandbox', | 59 '../sandbox/sandbox.gyp:sandbox', |
47 ], | 60 ], |
48 }], | 61 }], |
| 62 ['os_posix == 1 and OS != "mac" and OS != "ios"', { |
| 63 'dependencies': [ |
| 64 '../breakpad/breakpad.gyp:breakpad_client', |
| 65 ], |
| 66 'include_dirs': [ |
| 67 '../breakpad/src', |
| 68 ], |
| 69 }], |
49 ], | 70 ], |
50 }, | 71 }, |
51 ], | 72 ], |
52 'conditions': [ | 73 'conditions': [ |
53 ['OS=="win"', { | 74 ['OS=="win"', { |
54 'targets': [ | 75 'targets': [ |
55 { | 76 { |
56 'target_name': 'breakpad_crash_service', | 77 'target_name': 'breakpad_crash_service', |
57 'type': 'static_library', | 78 'type': 'static_library', |
58 'dependencies': [ | 79 'dependencies': [ |
59 '../base/base.gyp:base', | 80 '../base/base.gyp:base', |
60 '../breakpad/breakpad.gyp:breakpad_handler', | 81 '../breakpad/breakpad.gyp:breakpad_handler', |
61 '../breakpad/breakpad.gyp:breakpad_sender', | 82 '../breakpad/breakpad.gyp:breakpad_sender', |
62 ], | 83 ], |
63 'sources': [ | 84 'sources': [ |
64 'breakpad/tools/crash_service.cc', | 85 'breakpad/tools/crash_service.cc', |
65 'breakpad/tools/crash_service.h', | 86 'breakpad/tools/crash_service.h', |
66 ], | 87 ], |
67 }, | 88 }, |
68 ], | 89 ], |
69 }], | 90 }], |
70 ['OS=="win" and target_arch=="ia32"', { | 91 ['OS=="win" and target_arch=="ia32"', { |
71 'targets': [ | 92 'targets': [ |
72 { | 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. |
73 'target_name': 'breakpad_win64', | 97 'target_name': 'breakpad_win64', |
74 'type': 'static_library', | 98 'type': 'static_library', |
75 'variables': { | 99 'variables': { |
76 'breakpad_component_target': 1, | 100 'breakpad_component_target': 1, |
77 }, | 101 }, |
78 'dependencies': [ | 102 'dependencies': [ |
79 '../base/base.gyp:base_nacl_win64', | 103 '../base/base.gyp:base_nacl_win64', |
80 '../breakpad/breakpad.gyp:breakpad_handler_win64', | 104 '../breakpad/breakpad.gyp:breakpad_handler_win64', |
81 '../breakpad/breakpad.gyp:breakpad_sender_win64', | 105 '../breakpad/breakpad.gyp:breakpad_sender_win64', |
82 '../sandbox/sandbox.gyp:sandbox_win64', | 106 '../sandbox/sandbox.gyp:sandbox_win64', |
(...skipping 26 matching lines...) Expand all Loading... |
109 }], | 133 }], |
110 ['OS=="mac"', { | 134 ['OS=="mac"', { |
111 'targets': [ | 135 'targets': [ |
112 { | 136 { |
113 'target_name': 'breakpad_stubs', | 137 'target_name': 'breakpad_stubs', |
114 'type': 'static_library', | 138 'type': 'static_library', |
115 'dependencies': [ | 139 'dependencies': [ |
116 '../base/base.gyp:base', | 140 '../base/base.gyp:base', |
117 ], | 141 ], |
118 'sources': [ | 142 'sources': [ |
119 'breakpad/breakpad_client.cc', | 143 'breakpad/app/breakpad_client.cc', |
120 'breakpad/breakpad_client.h', | 144 'breakpad/app/breakpad_client.h', |
121 'breakpad/breakpad_mac.h', | 145 'breakpad/app/breakpad_mac.h', |
122 'breakpad/breakpad_mac_stubs.mm', | 146 'breakpad/app/breakpad_mac_stubs.mm', |
123 ], | 147 ], |
124 }, | 148 }, |
125 ], | 149 ], |
| 150 }], |
| 151 ['os_posix == 1 and OS != "mac" and OS != "ios"', { |
| 152 'targets': [ |
| 153 { |
| 154 'target_name': 'breakpad_host', |
| 155 'type': 'static_library', |
| 156 'dependencies': [ |
| 157 'breakpad_component', |
| 158 '../base/base.gyp:base', |
| 159 '../breakpad/breakpad.gyp:breakpad_client', |
| 160 '../content/content.gyp:content_browser', |
| 161 '../content/content.gyp:content_common', |
| 162 ], |
| 163 'sources': [ |
| 164 'breakpad/browser/crash_dump_manager_android.cc', |
| 165 'breakpad/browser/crash_dump_manager_android.h', |
| 166 'breakpad/browser/crash_handler_host_linux.cc', |
| 167 'breakpad/browser/crash_handler_host_linux.h', |
| 168 ], |
| 169 'include_dirs': [ |
| 170 '../breakpad/src', |
| 171 ], |
| 172 'target_conditions': [ |
| 173 # Need 'target_conditions' to override default filename_rules to inc
lude |
| 174 # the files on Android. |
| 175 ['OS=="android"', { |
| 176 'sources/': [ |
| 177 ['include', '^breakpad/browser/crash_handler_host_linux\\.cc$'], |
| 178 ], |
| 179 }], |
| 180 ], |
| 181 }, |
| 182 ], |
126 }], | 183 }], |
127 ], | 184 ], |
128 } | 185 } |
OLD | NEW |