1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/crashreporter/google-breakpad/src/common/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,94 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +if CONFIG['OS_ARCH'] in ('Darwin', 'Linux'): 1.11 + DIRS += ['dwarf'] 1.12 + 1.13 +UNIFIED_SOURCES += [ 1.14 + 'convert_UTF.c', 1.15 + 'logging.cc', 1.16 + 'module.cc', 1.17 + 'pathname_stripper.cc', 1.18 + 'string_conversion.cc', 1.19 + 'unique_string.cc', 1.20 +] 1.21 + 1.22 +if CONFIG['OS_TARGET'] != 'WINNT': 1.23 + UNIFIED_SOURCES += [ 1.24 + 'arm_ex_reader.cc', 1.25 + 'arm_ex_to_module.cc', 1.26 + 'dwarf/bytereader.cc', 1.27 + 'dwarf/dwarf2diehandler.cc', 1.28 + 'dwarf/dwarf2reader.cc', 1.29 + 'dwarf_cfi_to_module.cc', 1.30 + 'dwarf_cu_to_module.cc', 1.31 + 'dwarf_line_to_module.cc', 1.32 + 'language.cc', 1.33 + 'md5.cc', 1.34 + ] 1.35 + 1.36 +if CONFIG['OS_ARCH'] == 'Linux': 1.37 + UNIFIED_SOURCES += [ 1.38 + 'linux/dump_symbols.cc', 1.39 + 'linux/elf_symbols_to_module.cc', 1.40 + ] 1.41 + 1.42 +if CONFIG['OS_TARGET'] == 'Android': 1.43 + pass 1.44 +else: 1.45 + if CONFIG['OS_TARGET'] != 'WINNT': 1.46 + UNIFIED_SOURCES += [ 1.47 + 'stabs_reader.cc', 1.48 + 'stabs_to_module.cc', 1.49 + ] 1.50 + 1.51 +if CONFIG['OS_TARGET'] != 'WINNT' and CONFIG['MOZ_CRASHREPORTER']: 1.52 + HOST_SOURCES += [ 'convert_UTF.c' ] 1.53 + HOST_LIBRARY_NAME = 'host_breakpad_common_s' 1.54 + HOST_SOURCES += [ 1.55 + 'arm_ex_reader.cc', 1.56 + 'arm_ex_to_module.cc', 1.57 + 'dwarf_cfi_to_module.cc', 1.58 + 'dwarf_cu_to_module.cc', 1.59 + 'dwarf_line_to_module.cc', 1.60 + 'language.cc', 1.61 + 'logging.cc', 1.62 + 'md5.cc', 1.63 + 'module.cc', 1.64 + 'pathname_stripper.cc', 1.65 + 'stabs_reader.cc', 1.66 + 'stabs_to_module.cc', 1.67 + 'string_conversion.cc', 1.68 + 'unique_string.cc', 1.69 + ] 1.70 + 1.71 +if CONFIG['OS_ARCH'] == 'Darwin': 1.72 + UNIFIED_SOURCES += [ 1.73 + 'mac/dump_syms.mm', 1.74 + ] 1.75 + 1.76 +if CONFIG['OS_TARGET'] == 'Android': 1.77 + # We don't support unifying assembly files. 1.78 + SOURCES += [ 1.79 + 'android/breakpad_getcontext.S', 1.80 + ] 1.81 + 1.82 +LIBRARY_NAME = 'breakpad_common_s' 1.83 + 1.84 +MSVC_ENABLE_PGO = True 1.85 + 1.86 +FINAL_LIBRARY = 'xulapp_s' 1.87 + 1.88 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': 1.89 + DEFINES['ELFSIZE'] = 32 1.90 + 1.91 +if CONFIG['OS_TARGET'] == 'Android': 1.92 + DEFINES['NO_STABS_SUPPORT'] = True 1.93 + 1.94 +LOCAL_INCLUDES += [ 1.95 + '..', 1.96 +] 1.97 +