toolkit/crashreporter/google-breakpad/src/common/moz.build

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

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

mercurial