|
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
|
2 # vim: set filetype=python: |
|
3 # This Source Code Form is subject to the terms of the Mozilla Public |
|
4 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
6 |
|
7 if CONFIG['OS_ARCH'] in ('Darwin', 'Linux'): |
|
8 DIRS += ['dwarf'] |
|
9 |
|
10 UNIFIED_SOURCES += [ |
|
11 'convert_UTF.c', |
|
12 'logging.cc', |
|
13 'module.cc', |
|
14 'pathname_stripper.cc', |
|
15 'string_conversion.cc', |
|
16 'unique_string.cc', |
|
17 ] |
|
18 |
|
19 if CONFIG['OS_TARGET'] != 'WINNT': |
|
20 UNIFIED_SOURCES += [ |
|
21 'arm_ex_reader.cc', |
|
22 'arm_ex_to_module.cc', |
|
23 'dwarf/bytereader.cc', |
|
24 'dwarf/dwarf2diehandler.cc', |
|
25 'dwarf/dwarf2reader.cc', |
|
26 'dwarf_cfi_to_module.cc', |
|
27 'dwarf_cu_to_module.cc', |
|
28 'dwarf_line_to_module.cc', |
|
29 'language.cc', |
|
30 'md5.cc', |
|
31 ] |
|
32 |
|
33 if CONFIG['OS_ARCH'] == 'Linux': |
|
34 UNIFIED_SOURCES += [ |
|
35 'linux/dump_symbols.cc', |
|
36 'linux/elf_symbols_to_module.cc', |
|
37 ] |
|
38 |
|
39 if CONFIG['OS_TARGET'] == 'Android': |
|
40 pass |
|
41 else: |
|
42 if CONFIG['OS_TARGET'] != 'WINNT': |
|
43 UNIFIED_SOURCES += [ |
|
44 'stabs_reader.cc', |
|
45 'stabs_to_module.cc', |
|
46 ] |
|
47 |
|
48 if CONFIG['OS_TARGET'] != 'WINNT' and CONFIG['MOZ_CRASHREPORTER']: |
|
49 HOST_SOURCES += [ 'convert_UTF.c' ] |
|
50 HOST_LIBRARY_NAME = 'host_breakpad_common_s' |
|
51 HOST_SOURCES += [ |
|
52 'arm_ex_reader.cc', |
|
53 'arm_ex_to_module.cc', |
|
54 'dwarf_cfi_to_module.cc', |
|
55 'dwarf_cu_to_module.cc', |
|
56 'dwarf_line_to_module.cc', |
|
57 'language.cc', |
|
58 'logging.cc', |
|
59 'md5.cc', |
|
60 'module.cc', |
|
61 'pathname_stripper.cc', |
|
62 'stabs_reader.cc', |
|
63 'stabs_to_module.cc', |
|
64 'string_conversion.cc', |
|
65 'unique_string.cc', |
|
66 ] |
|
67 |
|
68 if CONFIG['OS_ARCH'] == 'Darwin': |
|
69 UNIFIED_SOURCES += [ |
|
70 'mac/dump_syms.mm', |
|
71 ] |
|
72 |
|
73 if CONFIG['OS_TARGET'] == 'Android': |
|
74 # We don't support unifying assembly files. |
|
75 SOURCES += [ |
|
76 'android/breakpad_getcontext.S', |
|
77 ] |
|
78 |
|
79 LIBRARY_NAME = 'breakpad_common_s' |
|
80 |
|
81 MSVC_ENABLE_PGO = True |
|
82 |
|
83 FINAL_LIBRARY = 'xulapp_s' |
|
84 |
|
85 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': |
|
86 DEFINES['ELFSIZE'] = 32 |
|
87 |
|
88 if CONFIG['OS_TARGET'] == 'Android': |
|
89 DEFINES['NO_STABS_SUPPORT'] = True |
|
90 |
|
91 LOCAL_INCLUDES += [ |
|
92 '..', |
|
93 ] |
|
94 |