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.

     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/.
     7 if CONFIG['OS_ARCH'] in ('Darwin', 'Linux'):
     8     DIRS += ['dwarf']
    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 ]
    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     ]
    33 if CONFIG['OS_ARCH'] == 'Linux':
    34     UNIFIED_SOURCES += [
    35         'linux/dump_symbols.cc',
    36         'linux/elf_symbols_to_module.cc',
    37     ]
    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         ]
    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     ]
    68 if CONFIG['OS_ARCH'] == 'Darwin':
    69     UNIFIED_SOURCES += [
    70         'mac/dump_syms.mm',
    71     ]
    73 if CONFIG['OS_TARGET'] == 'Android':
    74     # We don't support unifying assembly files.
    75     SOURCES += [
    76         'android/breakpad_getcontext.S',
    77     ]
    79 LIBRARY_NAME = 'breakpad_common_s'
    81 MSVC_ENABLE_PGO = True
    83 FINAL_LIBRARY = 'xulapp_s'
    85 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
    86     DEFINES['ELFSIZE'] = 32
    88 if CONFIG['OS_TARGET'] == 'Android':
    89     DEFINES['NO_STABS_SUPPORT'] = True
    91 LOCAL_INCLUDES += [
    92     '..',
    93 ]

mercurial