Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: components/breakpad.gypi

Issue 31243002: Move Linux/Android breakpad implementation to breakpad component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/nacl/nacl_exe_win_64.cc ('k') | components/breakpad/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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',
21 ], 25 ],
22 }], 26 }],
23 ], 27 ],
24 }, 28 },
25 'targets': [ 29 'targets': [
26 { 30 {
31 # Note: if you depend on this target, you need to either link in
32 # content.gyp:content_common, or add
33 # content/public/common/content_switches.cc to your sources.
27 'target_name': 'breakpad_component', 34 'target_name': 'breakpad_component',
28 'type': 'static_library', 35 'type': 'static_library',
29 'variables': { 36 'variables': {
30 'breakpad_component_target': 1, 37 'breakpad_component_target': 1,
31 }, 38 },
32 'dependencies': [ 39 'dependencies': [
33 '../base/base.gyp:base', 40 '../base/base.gyp:base',
34 ], 41 ],
35 'conditions': [ 42 'conditions': [
36 ['OS=="mac"', { 43 ['OS=="mac"', {
37 'dependencies': [ 44 'dependencies': [
38 '../breakpad/breakpad.gyp:breakpad', 45 '../breakpad/breakpad.gyp:breakpad',
39 '../content/content.gyp:content_common',
40 ], 46 ],
41 }], 47 }],
42 ['OS=="win"', { 48 ['OS=="win"', {
43 'dependencies': [ 49 'dependencies': [
44 '../breakpad/breakpad.gyp:breakpad_handler', 50 '../breakpad/breakpad.gyp:breakpad_handler',
45 '../breakpad/breakpad.gyp:breakpad_sender', 51 '../breakpad/breakpad.gyp:breakpad_sender',
46 '../sandbox/sandbox.gyp:sandbox', 52 '../sandbox/sandbox.gyp:sandbox',
47 ], 53 ],
48 }], 54 }],
55 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
56 'dependencies': [
57 '../breakpad/breakpad.gyp:breakpad_client',
58 ],
59 'include_dirs': [
60 '../breakpad/src',
61 ],
62 }],
63 ],
64 'target_conditions': [
65 # Need 'target_conditions' to override default filename_rules to include
66 # the files on Android.
67 ['OS=="android"', {
68 'sources/': [
69 ['include', '^breakpad/app/breakpad_linux\\.cc$'],
70 ],
71 }],
49 ], 72 ],
50 }, 73 },
51 ], 74 ],
52 'conditions': [ 75 'conditions': [
53 ['OS=="win"', { 76 ['OS=="win"', {
54 'targets': [ 77 'targets': [
55 { 78 {
56 'target_name': 'breakpad_crash_service', 79 'target_name': 'breakpad_crash_service',
57 'type': 'static_library', 80 'type': 'static_library',
58 'dependencies': [ 81 'dependencies': [
59 '../base/base.gyp:base', 82 '../base/base.gyp:base',
60 '../breakpad/breakpad.gyp:breakpad_handler', 83 '../breakpad/breakpad.gyp:breakpad_handler',
61 '../breakpad/breakpad.gyp:breakpad_sender', 84 '../breakpad/breakpad.gyp:breakpad_sender',
62 ], 85 ],
63 'sources': [ 86 'sources': [
64 'breakpad/tools/crash_service.cc', 87 'breakpad/tools/crash_service.cc',
65 'breakpad/tools/crash_service.h', 88 'breakpad/tools/crash_service.h',
66 ], 89 ],
67 }, 90 },
68 ], 91 ],
69 }], 92 }],
70 ['OS=="win" and target_arch=="ia32"', { 93 ['OS=="win" and target_arch=="ia32"', {
71 'targets': [ 94 'targets': [
72 { 95 {
96 # Note: if you depend on this target, you need to either link in
97 # content.gyp:content_common, or add
98 # content/public/common/content_switches.cc to your sources.
73 'target_name': 'breakpad_win64', 99 'target_name': 'breakpad_win64',
74 'type': 'static_library', 100 'type': 'static_library',
75 'variables': { 101 'variables': {
76 'breakpad_component_target': 1, 102 'breakpad_component_target': 1,
77 }, 103 },
78 'dependencies': [ 104 'dependencies': [
79 '../base/base.gyp:base_nacl_win64', 105 '../base/base.gyp:base_nacl_win64',
80 '../breakpad/breakpad.gyp:breakpad_handler_win64', 106 '../breakpad/breakpad.gyp:breakpad_handler_win64',
81 '../breakpad/breakpad.gyp:breakpad_sender_win64', 107 '../breakpad/breakpad.gyp:breakpad_sender_win64',
82 '../sandbox/sandbox.gyp:sandbox_win64', 108 '../sandbox/sandbox.gyp:sandbox_win64',
(...skipping 26 matching lines...) Expand all
109 }], 135 }],
110 ['OS=="mac"', { 136 ['OS=="mac"', {
111 'targets': [ 137 'targets': [
112 { 138 {
113 'target_name': 'breakpad_stubs', 139 'target_name': 'breakpad_stubs',
114 'type': 'static_library', 140 'type': 'static_library',
115 'dependencies': [ 141 'dependencies': [
116 '../base/base.gyp:base', 142 '../base/base.gyp:base',
117 ], 143 ],
118 'sources': [ 144 'sources': [
119 'breakpad/breakpad_client.cc', 145 'breakpad/app/breakpad_client.cc',
120 'breakpad/breakpad_client.h', 146 'breakpad/app/breakpad_client.h',
121 'breakpad/breakpad_mac.h', 147 'breakpad/app/breakpad_mac.h',
122 'breakpad/breakpad_mac_stubs.mm', 148 'breakpad/app/breakpad_mac_stubs.mm',
123 ], 149 ],
124 }, 150 },
125 ], 151 ],
152 }],
153 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
154 'targets': [
155 {
156 'target_name': 'breakpad_host',
157 'type': 'static_library',
158 'dependencies': [
159 'breakpad_component',
160 '../base/base.gyp:base',
161 '../breakpad/breakpad.gyp:breakpad_client',
162 '../content/content.gyp:content_browser',
163 '../content/content.gyp:content_common',
164 ],
165 'sources': [
166 'breakpad/browser/crash_dump_manager_android.cc',
167 'breakpad/browser/crash_dump_manager_android.h',
168 'breakpad/browser/crash_handler_host_linux.cc',
169 'breakpad/browser/crash_handler_host_linux.h',
170 ],
171 'include_dirs': [
172 '../breakpad/src',
173 ],
174 'target_conditions': [
175 # Need 'target_conditions' to override default filename_rules to inc lude
176 # the files on Android.
177 ['OS=="android"', {
178 'sources/': [
179 ['include', '^breakpad/browser/crash_handler_host_linux\\.cc$'],
180 ],
181 }],
182 ],
183 },
184 ],
126 }], 185 }],
127 ], 186 ],
128 } 187 }
OLDNEW
« no previous file with comments | « chrome/nacl/nacl_exe_win_64.cc ('k') | components/breakpad/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698