toolkit/crashreporter/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 SPHINX_TREES['crashreporter'] = 'docs'
michael@0 8
michael@0 9 if CONFIG['OS_ARCH'] == 'WINNT':
michael@0 10 DIRS += [
michael@0 11 'google-breakpad/src/common',
michael@0 12 'google-breakpad/src/processor',
michael@0 13 'breakpad-windows-libxul'
michael@0 14 ]
michael@0 15
michael@0 16 if CONFIG['MOZ_CRASHREPORTER_INJECTOR']:
michael@0 17 DIRS += ['breakpad-windows-standalone']
michael@0 18
michael@0 19 elif CONFIG['OS_ARCH'] == 'Darwin':
michael@0 20 DIRS += [
michael@0 21 'google-breakpad/src/common',
michael@0 22 'google-breakpad/src/common/mac',
michael@0 23 'google-breakpad/src/client',
michael@0 24 'google-breakpad/src/client/mac/crash_generation',
michael@0 25 'google-breakpad/src/client/mac/handler',
michael@0 26 'google-breakpad/src/processor',
michael@0 27 'google-breakpad/src/tools/mac/dump_syms',
michael@0 28 ]
michael@0 29
michael@0 30 elif CONFIG['OS_ARCH'] == 'Linux':
michael@0 31 DIRS += [
michael@0 32 'google-breakpad/src/common',
michael@0 33 'google-breakpad/src/common/linux',
michael@0 34 'google-breakpad/src/client',
michael@0 35 'google-breakpad/src/client/linux/crash_generation',
michael@0 36 'google-breakpad/src/client/linux/handler',
michael@0 37 'google-breakpad/src/client/linux/minidump_writer',
michael@0 38 'google-breakpad/src/processor',
michael@0 39 'google-breakpad/src/tools/linux/dump_syms',
michael@0 40 ]
michael@0 41
michael@0 42 elif CONFIG['OS_ARCH'] == 'SunOS':
michael@0 43 DIRS += [
michael@0 44 'google-breakpad/src/common',
michael@0 45 'google-breakpad/src/common/solaris',
michael@0 46 'google-breakpad/src/client',
michael@0 47 'google-breakpad/src/client/solaris/handler',
michael@0 48 'google-breakpad/src/tools/solaris/dump_syms',
michael@0 49 ]
michael@0 50
michael@0 51 DIRS += ['client']
michael@0 52
michael@0 53 if CONFIG['MOZ_CRASHREPORTER_INJECTOR']:
michael@0 54 DIRS += ['injector']
michael@0 55 UNIFIED_SOURCES += [
michael@0 56 'InjectCrashReporter.cpp',
michael@0 57 'LoadLibraryRemote.cpp',
michael@0 58 ]
michael@0 59
michael@0 60 TEST_TOOL_DIRS += ['test']
michael@0 61
michael@0 62 EXPORTS += [
michael@0 63 'nsExceptionHandler.h',
michael@0 64 ]
michael@0 65
michael@0 66 UNIFIED_SOURCES += [
michael@0 67 'nsExceptionHandler.cpp',
michael@0 68 ]
michael@0 69
michael@0 70 if CONFIG['OS_ARCH'] == 'Darwin':
michael@0 71 UNIFIED_SOURCES += [
michael@0 72 'mac_utils.mm',
michael@0 73 ]
michael@0 74
michael@0 75 EXTRA_JS_MODULES += [
michael@0 76 'CrashReports.jsm',
michael@0 77 'CrashSubmit.jsm',
michael@0 78 'KeyValueParser.jsm',
michael@0 79 ]
michael@0 80
michael@0 81 MSVC_ENABLE_PGO = True
michael@0 82
michael@0 83 include('/ipc/chromium/chromium-config.mozbuild')
michael@0 84
michael@0 85 FINAL_LIBRARY = 'xulapp_s'
michael@0 86
michael@0 87 if CONFIG['OS_TARGET'] == 'Android':
michael@0 88 DEFINES['ANDROID_PACKAGE_NAME'] = '"%s"' % CONFIG['ANDROID_PACKAGE_NAME']
michael@0 89 # NDK5 workarounds
michael@0 90 DEFINES['_STLP_CONST_CONSTRUCTOR_BUG'] = True
michael@0 91 DEFINES['_STLP_NO_MEMBER_TEMPLATES'] = True
michael@0 92
michael@0 93 if CONFIG['OS_ARCH'] == 'SunOS':
michael@0 94 # there's no define for this normally
michael@0 95 DEFINES['XP_SOLARIS'] = True
michael@0 96
michael@0 97 DEFINES['UNICODE'] = True
michael@0 98 DEFINES['_UNICODE'] = True
michael@0 99
michael@0 100 JAR_MANIFESTS += ['jar.mn']
michael@0 101
michael@0 102 LOCAL_INCLUDES += [
michael@0 103 'google-breakpad/src',
michael@0 104 ]
michael@0 105

mercurial