OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'includes': [ | 6 'includes': [ |
7 'breakpad_sender.gypi', | 7 'breakpad_sender.gypi', |
8 'breakpad_handler.gypi', | 8 'breakpad_handler.gypi', |
9 ], | 9 ], |
10 'conditions': [ | 10 'conditions': [ |
| 11 # minidump_stackwalk and minidump_dump are tool-type executables that do |
| 12 # not build on iOS. |
| 13 ['OS!="ios" and OS!="win"', { |
| 14 'targets': [ |
| 15 { |
| 16 'target_name': 'minidump_stackwalk', |
| 17 'type': 'executable', |
| 18 'includes': ['breakpad_tools.gypi'], |
| 19 'sources': [ |
| 20 'src/processor/basic_code_module.h', |
| 21 'src/processor/basic_code_modules.cc', |
| 22 'src/processor/basic_code_modules.h', |
| 23 'src/processor/basic_source_line_resolver.cc', |
| 24 'src/processor/binarystream.cc', |
| 25 'src/processor/binarystream.h', |
| 26 'src/processor/call_stack.cc', |
| 27 'src/processor/cfi_frame_info.cc', |
| 28 'src/processor/cfi_frame_info.h', |
| 29 'src/processor/disassembler_x86.cc', |
| 30 'src/processor/disassembler_x86.h', |
| 31 'src/processor/exploitability.cc', |
| 32 'src/processor/exploitability_win.cc', |
| 33 'src/processor/exploitability_win.h', |
| 34 'src/processor/logging.cc', |
| 35 'src/processor/logging.h', |
| 36 'src/processor/minidump.cc', |
| 37 'src/processor/minidump_processor.cc', |
| 38 'src/processor/minidump_stackwalk.cc', |
| 39 'src/processor/pathname_stripper.cc', |
| 40 'src/processor/pathname_stripper.h', |
| 41 'src/processor/process_state.cc', |
| 42 'src/processor/simple_symbol_supplier.cc', |
| 43 'src/processor/simple_symbol_supplier.h', |
| 44 'src/processor/source_line_resolver_base.cc', |
| 45 'src/processor/stack_frame_symbolizer.cc', |
| 46 'src/processor/stackwalker.cc', |
| 47 'src/processor/stackwalker_amd64.cc', |
| 48 'src/processor/stackwalker_amd64.h', |
| 49 'src/processor/stackwalker_arm.cc', |
| 50 'src/processor/stackwalker_arm.h', |
| 51 'src/processor/stackwalker_ppc.cc', |
| 52 'src/processor/stackwalker_ppc.h', |
| 53 'src/processor/stackwalker_sparc.cc', |
| 54 'src/processor/stackwalker_sparc.h', |
| 55 'src/processor/stackwalker_x86.cc', |
| 56 'src/processor/stackwalker_x86.h', |
| 57 'src/processor/tokenize.cc', |
| 58 'src/processor/tokenize.h', |
| 59 # libdisasm |
| 60 'src/third_party/libdisasm/ia32_implicit.c', |
| 61 'src/third_party/libdisasm/ia32_implicit.h', |
| 62 'src/third_party/libdisasm/ia32_insn.c', |
| 63 'src/third_party/libdisasm/ia32_insn.h', |
| 64 'src/third_party/libdisasm/ia32_invariant.c', |
| 65 'src/third_party/libdisasm/ia32_invariant.h', |
| 66 'src/third_party/libdisasm/ia32_modrm.c', |
| 67 'src/third_party/libdisasm/ia32_modrm.h', |
| 68 'src/third_party/libdisasm/ia32_opcode_tables.c', |
| 69 'src/third_party/libdisasm/ia32_opcode_tables.h', |
| 70 'src/third_party/libdisasm/ia32_operand.c', |
| 71 'src/third_party/libdisasm/ia32_operand.h', |
| 72 'src/third_party/libdisasm/ia32_reg.c', |
| 73 'src/third_party/libdisasm/ia32_reg.h', |
| 74 'src/third_party/libdisasm/ia32_settings.c', |
| 75 'src/third_party/libdisasm/ia32_settings.h', |
| 76 'src/third_party/libdisasm/libdis.h', |
| 77 'src/third_party/libdisasm/qword.h', |
| 78 'src/third_party/libdisasm/x86_disasm.c', |
| 79 'src/third_party/libdisasm/x86_format.c', |
| 80 'src/third_party/libdisasm/x86_imm.c', |
| 81 'src/third_party/libdisasm/x86_imm.h', |
| 82 'src/third_party/libdisasm/x86_insn.c', |
| 83 'src/third_party/libdisasm/x86_misc.c', |
| 84 'src/third_party/libdisasm/x86_operand_list.c', |
| 85 'src/third_party/libdisasm/x86_operand_list.h', |
| 86 ], |
| 87 }, |
| 88 { |
| 89 'target_name': 'minidump_dump', |
| 90 'type': 'executable', |
| 91 'includes': ['breakpad_tools.gypi'], |
| 92 'sources': [ |
| 93 'src/processor/basic_code_module.h', |
| 94 'src/processor/basic_code_modules.cc', |
| 95 'src/processor/basic_code_modules.h', |
| 96 'src/processor/logging.cc', |
| 97 'src/processor/logging.h', |
| 98 'src/processor/minidump.cc', |
| 99 'src/processor/minidump_dump.cc', |
| 100 'src/processor/pathname_stripper.cc', |
| 101 'src/processor/pathname_stripper.h', |
| 102 ], |
| 103 }, |
| 104 ], |
| 105 }], |
11 [ 'OS=="mac"', { | 106 [ 'OS=="mac"', { |
12 'target_defaults': { | 107 'target_defaults': { |
13 'include_dirs': [ | 108 'include_dirs': [ |
14 'src', | 109 'src', |
15 ], | 110 ], |
16 'configurations': { | 111 'configurations': { |
17 'Debug_Base': { | 112 'Debug_Base': { |
18 'defines': [ | 113 'defines': [ |
19 # This is needed for GTMLogger to work correctly. | 114 # This is needed for GTMLogger to work correctly. |
20 'DEBUG', | 115 'DEBUG', |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 'conditions': [ | 319 'conditions': [ |
225 ['OS=="android"', { | 320 ['OS=="android"', { |
226 'defines': [ | 321 'defines': [ |
227 '__ANDROID__', | 322 '__ANDROID__', |
228 ], | 323 ], |
229 }], | 324 }], |
230 # Tools needed for archiving build symbols. | 325 # Tools needed for archiving build symbols. |
231 ['linux_breakpad==1', { | 326 ['linux_breakpad==1', { |
232 'targets': [ | 327 'targets': [ |
233 { | 328 { |
234 'target_name': 'minidump_stackwalk', | |
235 'type': 'executable', | |
236 | |
237 # This uses the system libcurl, so don't use the default 32-bit | |
238 # compile flags when building on a 64-bit machine. | |
239 'variables': { | |
240 'host_arch': '<!(uname -m)', | |
241 }, | |
242 'conditions': [ | |
243 ['host_arch=="x86_64"', { | |
244 'cflags!': ['-m32', '-march=pentium4', '-msse2', | |
245 '-mfpmath=sse'], | |
246 'ldflags!': ['-m32'], | |
247 'cflags': ['-O2'], | |
248 'include_dirs!': ['/usr/include32'], | |
249 }], | |
250 ['OS=="android"', { | |
251 'toolsets': [ 'host' ], | |
252 }], | |
253 ], | |
254 'include_dirs': [ | |
255 'src', | |
256 'src/third_party', | |
257 '..', | |
258 ], | |
259 'sources': [ | |
260 'src/google_breakpad/processor/call_stack.h', | |
261 'src/google_breakpad/processor/stack_frame_symbolizer.h', | |
262 'src/processor/minidump_stackwalk.cc', | |
263 'src/processor/stackwalker.cc', | |
264 'src/processor/stackwalker.h', | |
265 'src/processor/basic_code_module.h', | |
266 'src/processor/basic_code_modules.cc', | |
267 'src/processor/basic_code_modules.h', | |
268 'src/processor/basic_source_line_resolver.cc', | |
269 'src/processor/basic_source_line_resolver.h', | |
270 'src/processor/binarystream.cc', | |
271 'src/processor/binarystream.h', | |
272 'src/processor/call_stack.cc', | |
273 'src/processor/cfi_frame_info.cc', | |
274 'src/processor/cfi_frame_info.h', | |
275 'src/processor/disassembler_x86.cc', | |
276 'src/processor/disassembler_x86.h', | |
277 'src/processor/exploitability.cc', | |
278 'src/processor/exploitability.h', | |
279 'src/processor/exploitability_win.cc', | |
280 'src/processor/exploitability_win.h', | |
281 'src/processor/logging.cc', | |
282 'src/processor/logging.h', | |
283 'src/processor/minidump.cc', | |
284 'src/processor/minidump.h', | |
285 'src/processor/minidump_processor.cc', | |
286 'src/processor/minidump_processor.h', | |
287 'src/processor/pathname_stripper.cc', | |
288 'src/processor/pathname_stripper.h', | |
289 'src/processor/process_state.cc', | |
290 'src/processor/process_state.h', | |
291 'src/processor/simple_symbol_supplier.cc', | |
292 'src/processor/simple_symbol_supplier.h', | |
293 'src/processor/source_line_resolver_base.cc', | |
294 'src/processor/source_line_resolver_base.h', | |
295 'src/processor/stack_frame_symbolizer.cc', | |
296 'src/processor/stackwalker.cc', | |
297 'src/processor/stackwalker.h', | |
298 'src/processor/stackwalker_amd64.cc', | |
299 'src/processor/stackwalker_amd64.h', | |
300 'src/processor/stackwalker_arm.cc', | |
301 'src/processor/stackwalker_arm.h', | |
302 'src/processor/stackwalker_ppc.cc', | |
303 'src/processor/stackwalker_ppc.h', | |
304 'src/processor/stackwalker_sparc.cc', | |
305 'src/processor/stackwalker_sparc.h', | |
306 'src/processor/stackwalker_x86.cc', | |
307 'src/processor/stackwalker_x86.h', | |
308 'src/processor/tokenize.cc', | |
309 'src/processor/tokenize.h', | |
310 # libdisasm | |
311 'src/third_party/libdisasm/ia32_implicit.c', | |
312 'src/third_party/libdisasm/ia32_implicit.h', | |
313 'src/third_party/libdisasm/ia32_insn.c', | |
314 'src/third_party/libdisasm/ia32_insn.h', | |
315 'src/third_party/libdisasm/ia32_invariant.c', | |
316 'src/third_party/libdisasm/ia32_invariant.h', | |
317 'src/third_party/libdisasm/ia32_modrm.c', | |
318 'src/third_party/libdisasm/ia32_modrm.h', | |
319 'src/third_party/libdisasm/ia32_opcode_tables.c', | |
320 'src/third_party/libdisasm/ia32_opcode_tables.h', | |
321 'src/third_party/libdisasm/ia32_operand.c', | |
322 'src/third_party/libdisasm/ia32_operand.h', | |
323 'src/third_party/libdisasm/ia32_reg.c', | |
324 'src/third_party/libdisasm/ia32_reg.h', | |
325 'src/third_party/libdisasm/ia32_settings.c', | |
326 'src/third_party/libdisasm/ia32_settings.h', | |
327 'src/third_party/libdisasm/libdis.h', | |
328 'src/third_party/libdisasm/qword.h', | |
329 'src/third_party/libdisasm/x86_disasm.c', | |
330 'src/third_party/libdisasm/x86_format.c', | |
331 'src/third_party/libdisasm/x86_imm.c', | |
332 'src/third_party/libdisasm/x86_imm.h', | |
333 'src/third_party/libdisasm/x86_insn.c', | |
334 'src/third_party/libdisasm/x86_misc.c', | |
335 'src/third_party/libdisasm/x86_operand_list.c', | |
336 'src/third_party/libdisasm/x86_operand_list.h', | |
337 ], | |
338 }, | |
339 { | |
340 'target_name': 'minidump_dump', | |
341 'type': 'executable', | |
342 # This uses the system libcurl, so don't use the default 32-bit | |
343 # compile flags when building on a 64-bit machine. | |
344 'variables': { | |
345 'host_arch': '<!(uname -m)', | |
346 }, | |
347 'conditions': [ | |
348 ['host_arch=="x86_64"', { | |
349 'cflags!': ['-m32', '-march=pentium4', '-msse2', | |
350 '-mfpmath=sse'], | |
351 'ldflags!': ['-m32'], | |
352 'cflags': ['-O2'], | |
353 'include_dirs!': ['/usr/include32'], | |
354 }], | |
355 ['OS=="android"', { | |
356 'toolsets': [ 'host' ], | |
357 }], | |
358 ], | |
359 'sources': [ | |
360 'src/processor/minidump_dump.cc', | |
361 'src/processor/basic_code_module.h', | |
362 'src/processor/basic_code_modules.h', | |
363 'src/processor/basic_code_modules.cc', | |
364 'src/processor/logging.h', | |
365 'src/processor/logging.cc', | |
366 'src/processor/minidump.h', | |
367 'src/processor/minidump.cc', | |
368 'src/processor/pathname_stripper.h', | |
369 'src/processor/pathname_stripper.cc', | |
370 ], | |
371 'include_dirs': [ | |
372 'src', | |
373 'src/third_party', | |
374 '..', | |
375 ], | |
376 }, | |
377 { | |
378 'target_name': 'symupload', | 329 'target_name': 'symupload', |
379 'type': 'executable', | 330 'type': 'executable', |
380 | 331 |
381 # This uses the system libcurl, so don't use the default 32-bit | 332 'includes': ['breakpad_tools.gypi'], |
382 # compile flags when building on a 64-bit machine. | |
383 'variables': { | |
384 'host_arch': '<!(uname -m)', | |
385 }, | |
386 'conditions': [ | |
387 ['host_arch=="x86_64"', { | |
388 'cflags!': ['-m32', '-march=pentium4', '-msse2', | |
389 '-mfpmath=sse'], | |
390 'ldflags!': ['-m32'], | |
391 'cflags': ['-O2'], | |
392 'include_dirs!': ['/usr/include32'], | |
393 }], | |
394 ['OS=="android"', { | |
395 'toolsets': [ 'host' ], | |
396 }], | |
397 ], | |
398 | 333 |
399 'sources': [ | 334 'sources': [ |
400 'src/tools/linux/symupload/sym_upload.cc', | 335 'src/tools/linux/symupload/sym_upload.cc', |
401 'src/common/linux/http_upload.cc', | 336 'src/common/linux/http_upload.cc', |
402 'src/common/linux/http_upload.h', | 337 'src/common/linux/http_upload.h', |
403 ], | 338 ], |
404 'include_dirs': [ | 339 'include_dirs': [ |
405 'src', | 340 'src', |
406 'src/third_party', | 341 'src/third_party', |
407 ], | 342 ], |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 'include_dirs': [ | 810 'include_dirs': [ |
876 '<(DEPTH)/third_party/GTM', | 811 '<(DEPTH)/third_party/GTM', |
877 '<(DEPTH)/third_party/GTM/Foundation', | 812 '<(DEPTH)/third_party/GTM/Foundation', |
878 ], | 813 ], |
879 }, | 814 }, |
880 }, | 815 }, |
881 ], | 816 ], |
882 }], | 817 }], |
883 ], | 818 ], |
884 } | 819 } |
OLD | NEW |