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': { | |
7 'variables': { | |
8 'breakpad_component_target': 0, | |
9 }, | |
10 'target_conditions': [ | |
11 ['breakpad_component_target==1', { | |
12 'defines': ['BREAKPAD_IMPLEMENTATION'], | |
13 'sources': [ | |
14 'breakpad/app/breakpad_client.cc', | |
15 'breakpad/app/breakpad_client.h', | |
16 'breakpad/app/breakpad_linux.cc', | |
17 'breakpad/app/breakpad_linux.h', | |
18 'breakpad/app/breakpad_linux_impl.h', | |
19 'breakpad/app/breakpad_mac.h', | |
20 'breakpad/app/breakpad_mac.mm', | |
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 ], | |
28 }, | |
29 'targets': [ | 6 'targets': [ |
30 { | 7 { |
| 8 'target_name': 'breakpad_component_lib', |
| 9 'type': 'static_library', |
| 10 'sources': [ |
| 11 'breakpad/app/breakpad_client.cc', |
| 12 'breakpad/app/breakpad_client.h', |
| 13 'breakpad/app/crash_keys_win.cc', |
| 14 'breakpad/app/crash_keys_win.h', |
| 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. |
| 27 'breakpad_component_target_type%': 'none', |
| 28 }, { |
| 29 'breakpad_component_target_type%': 'static_library', |
| 30 }], |
| 31 ], |
| 32 }, |
31 # 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 |
32 # content.gyp:content_common, or add | 34 # content.gyp:content_common, or add |
33 # content/public/common/content_switches.cc to your sources. | 35 # content/public/common/content_switches.cc to your sources. |
34 'target_name': 'breakpad_component', | 36 'target_name': 'breakpad_component', |
35 'type': 'static_library', | 37 'type': '<(breakpad_component_target_type)', |
36 'variables': { | 38 'sources': [ |
37 'breakpad_component_target': 1, | 39 'breakpad/app/breakpad_linux.cc', |
38 }, | 40 'breakpad/app/breakpad_linux.h', |
| 41 'breakpad/app/breakpad_linux_impl.h', |
| 42 'breakpad/app/breakpad_mac.h', |
| 43 'breakpad/app/breakpad_mac.mm', |
| 44 'breakpad/app/breakpad_win.cc', |
| 45 'breakpad/app/breakpad_win.h', |
| 46 'breakpad/app/hard_error_handler_win.cc', |
| 47 'breakpad/app/hard_error_handler_win.h', |
| 48 ], |
39 'dependencies': [ | 49 'dependencies': [ |
| 50 'breakpad_component_lib', |
40 '../base/base.gyp:base', | 51 '../base/base.gyp:base', |
41 ], | 52 ], |
| 53 'defines': ['BREAKPAD_IMPLEMENTATION'], |
42 'conditions': [ | 54 'conditions': [ |
43 ['OS=="mac"', { | 55 ['OS=="mac"', { |
44 'dependencies': [ | 56 'dependencies': [ |
45 '../breakpad/breakpad.gyp:breakpad', | 57 '../breakpad/breakpad.gyp:breakpad', |
46 ], | 58 ], |
47 }], | 59 }], |
48 ['OS=="win"', { | 60 ['OS=="win"', { |
49 'dependencies': [ | 61 'dependencies': [ |
50 '../breakpad/breakpad.gyp:breakpad_handler', | 62 '../breakpad/breakpad.gyp:breakpad_handler', |
51 '../breakpad/breakpad.gyp:breakpad_sender', | 63 '../breakpad/breakpad.gyp:breakpad_sender', |
(...skipping 12 matching lines...) Expand all Loading... |
64 'target_conditions': [ | 76 'target_conditions': [ |
65 # Need 'target_conditions' to override default filename_rules to include | 77 # Need 'target_conditions' to override default filename_rules to include |
66 # the files on Android. | 78 # the files on Android. |
67 ['OS=="android"', { | 79 ['OS=="android"', { |
68 'sources/': [ | 80 'sources/': [ |
69 ['include', '^breakpad/app/breakpad_linux\\.cc$'], | 81 ['include', '^breakpad/app/breakpad_linux\\.cc$'], |
70 ], | 82 ], |
71 }], | 83 }], |
72 ], | 84 ], |
73 }, | 85 }, |
| 86 { |
| 87 'target_name': 'breakpad_test_support', |
| 88 'type': 'none', |
| 89 'dependencies': [ |
| 90 'breakpad_component_lib', |
| 91 ], |
| 92 'direct_dependent_settings': { |
| 93 'include_dirs' : [ |
| 94 '../breakpad/src', |
| 95 ], |
| 96 } |
| 97 }, |
74 ], | 98 ], |
75 'conditions': [ | 99 'conditions': [ |
76 ['OS=="win"', { | 100 ['OS=="win"', { |
77 'targets': [ | 101 'targets': [ |
78 { | 102 { |
79 'target_name': 'breakpad_crash_service', | 103 'target_name': 'breakpad_crash_service', |
80 'type': 'static_library', | 104 'type': 'static_library', |
81 'dependencies': [ | 105 'dependencies': [ |
82 '../base/base.gyp:base', | 106 '../base/base.gyp:base', |
83 '../breakpad/breakpad.gyp:breakpad_handler', | 107 '../breakpad/breakpad.gyp:breakpad_handler', |
84 '../breakpad/breakpad.gyp:breakpad_sender', | 108 '../breakpad/breakpad.gyp:breakpad_sender', |
85 ], | 109 ], |
86 'sources': [ | 110 'sources': [ |
87 'breakpad/tools/crash_service.cc', | 111 'breakpad/tools/crash_service.cc', |
88 'breakpad/tools/crash_service.h', | 112 'breakpad/tools/crash_service.h', |
89 ], | 113 ], |
90 }, | 114 }, |
91 ], | 115 ], |
92 }], | 116 }], |
93 ['OS=="win" and target_arch=="ia32"', { | 117 ['OS=="win" and target_arch=="ia32"', { |
94 'targets': [ | 118 'targets': [ |
95 { | 119 { |
96 # Note: if you depend on this target, you need to either link in | 120 # Note: if you depend on this target, you need to either link in |
97 # content.gyp:content_common, or add | 121 # content.gyp:content_common, or add |
98 # content/public/common/content_switches.cc to your sources. | 122 # content/public/common/content_switches.cc to your sources. |
99 'target_name': 'breakpad_win64', | 123 'target_name': 'breakpad_win64', |
100 'type': 'static_library', | 124 'type': 'static_library', |
101 'variables': { | 125 'sources': [ |
102 'breakpad_component_target': 1, | 126 'breakpad/app/breakpad_client.cc', |
103 }, | 127 'breakpad/app/breakpad_client.h', |
| 128 'breakpad/app/breakpad_linux.cc', |
| 129 'breakpad/app/breakpad_linux.h', |
| 130 'breakpad/app/breakpad_linux_impl.h', |
| 131 'breakpad/app/breakpad_mac.h', |
| 132 'breakpad/app/breakpad_mac.mm', |
| 133 'breakpad/app/breakpad_win.cc', |
| 134 'breakpad/app/breakpad_win.h', |
| 135 # TODO(siggi): test the x64 version too. |
| 136 'breakpad/app/crash_keys_win.cc', |
| 137 'breakpad/app/crash_keys_win.h', |
| 138 'breakpad/app/hard_error_handler_win.cc', |
| 139 'breakpad/app/hard_error_handler_win.h', |
| 140 ], |
104 'defines': [ | 141 'defines': [ |
105 'COMPILE_CONTENT_STATICALLY', | 142 'COMPILE_CONTENT_STATICALLY', |
| 143 'BREAKPAD_IMPLEMENTATION', |
106 ], | 144 ], |
107 'dependencies': [ | 145 'dependencies': [ |
108 '../base/base.gyp:base_win64', | 146 '../base/base.gyp:base_win64', |
109 '../breakpad/breakpad.gyp:breakpad_handler_win64', | 147 '../breakpad/breakpad.gyp:breakpad_handler_win64', |
110 '../breakpad/breakpad.gyp:breakpad_sender_win64', | 148 '../breakpad/breakpad.gyp:breakpad_sender_win64', |
111 '../sandbox/sandbox.gyp:sandbox_win64', | 149 '../sandbox/sandbox.gyp:sandbox_win64', |
112 ], | 150 ], |
113 'configurations': { | 151 'configurations': { |
114 'Common_Base': { | 152 'Common_Base': { |
115 'msvs_target_platform': 'x64', | 153 'msvs_target_platform': 'x64', |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 'sources/': [ | 219 'sources/': [ |
182 ['include', '^breakpad/browser/crash_handler_host_linux\\.cc$'], | 220 ['include', '^breakpad/browser/crash_handler_host_linux\\.cc$'], |
183 ], | 221 ], |
184 }], | 222 }], |
185 ], | 223 ], |
186 }, | 224 }, |
187 ], | 225 ], |
188 }], | 226 }], |
189 ], | 227 ], |
190 } | 228 } |
OLD | NEW |