michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: if CONFIG['OS_ARCH'] in ('Darwin', 'Linux'): michael@0: DIRS += ['dwarf'] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'convert_UTF.c', michael@0: 'logging.cc', michael@0: 'module.cc', michael@0: 'pathname_stripper.cc', michael@0: 'string_conversion.cc', michael@0: 'unique_string.cc', michael@0: ] michael@0: michael@0: if CONFIG['OS_TARGET'] != 'WINNT': michael@0: UNIFIED_SOURCES += [ michael@0: 'arm_ex_reader.cc', michael@0: 'arm_ex_to_module.cc', michael@0: 'dwarf/bytereader.cc', michael@0: 'dwarf/dwarf2diehandler.cc', michael@0: 'dwarf/dwarf2reader.cc', michael@0: 'dwarf_cfi_to_module.cc', michael@0: 'dwarf_cu_to_module.cc', michael@0: 'dwarf_line_to_module.cc', michael@0: 'language.cc', michael@0: 'md5.cc', michael@0: ] michael@0: michael@0: if CONFIG['OS_ARCH'] == 'Linux': michael@0: UNIFIED_SOURCES += [ michael@0: 'linux/dump_symbols.cc', michael@0: 'linux/elf_symbols_to_module.cc', michael@0: ] michael@0: michael@0: if CONFIG['OS_TARGET'] == 'Android': michael@0: pass michael@0: else: michael@0: if CONFIG['OS_TARGET'] != 'WINNT': michael@0: UNIFIED_SOURCES += [ michael@0: 'stabs_reader.cc', michael@0: 'stabs_to_module.cc', michael@0: ] michael@0: michael@0: if CONFIG['OS_TARGET'] != 'WINNT' and CONFIG['MOZ_CRASHREPORTER']: michael@0: HOST_SOURCES += [ 'convert_UTF.c' ] michael@0: HOST_LIBRARY_NAME = 'host_breakpad_common_s' michael@0: HOST_SOURCES += [ michael@0: 'arm_ex_reader.cc', michael@0: 'arm_ex_to_module.cc', michael@0: 'dwarf_cfi_to_module.cc', michael@0: 'dwarf_cu_to_module.cc', michael@0: 'dwarf_line_to_module.cc', michael@0: 'language.cc', michael@0: 'logging.cc', michael@0: 'md5.cc', michael@0: 'module.cc', michael@0: 'pathname_stripper.cc', michael@0: 'stabs_reader.cc', michael@0: 'stabs_to_module.cc', michael@0: 'string_conversion.cc', michael@0: 'unique_string.cc', michael@0: ] michael@0: michael@0: if CONFIG['OS_ARCH'] == 'Darwin': michael@0: UNIFIED_SOURCES += [ michael@0: 'mac/dump_syms.mm', michael@0: ] michael@0: michael@0: if CONFIG['OS_TARGET'] == 'Android': michael@0: # We don't support unifying assembly files. michael@0: SOURCES += [ michael@0: 'android/breakpad_getcontext.S', michael@0: ] michael@0: michael@0: LIBRARY_NAME = 'breakpad_common_s' michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: FINAL_LIBRARY = 'xulapp_s' michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': michael@0: DEFINES['ELFSIZE'] = 32 michael@0: michael@0: if CONFIG['OS_TARGET'] == 'Android': michael@0: DEFINES['NO_STABS_SUPPORT'] = True michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '..', michael@0: ] michael@0: