2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 13:19:09 -08:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-11-16 09:52:37 -08:00
|
|
|
SPHINX_TREES['crashreporter'] = 'docs'
|
|
|
|
|
2013-02-25 13:19:09 -08:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
2013-03-05 06:41:26 -08:00
|
|
|
DIRS += [
|
|
|
|
'google-breakpad/src/common',
|
|
|
|
'google-breakpad/src/processor',
|
|
|
|
'breakpad-windows-libxul'
|
|
|
|
]
|
2013-02-25 13:19:09 -08:00
|
|
|
|
|
|
|
if CONFIG['MOZ_CRASHREPORTER_INJECTOR']:
|
|
|
|
DIRS += ['breakpad-windows-standalone']
|
|
|
|
|
|
|
|
elif CONFIG['OS_ARCH'] == 'Darwin':
|
|
|
|
DIRS += [
|
|
|
|
'google-breakpad/src/common',
|
|
|
|
'google-breakpad/src/common/mac',
|
|
|
|
'google-breakpad/src/client',
|
|
|
|
'google-breakpad/src/client/mac/crash_generation',
|
|
|
|
'google-breakpad/src/client/mac/handler',
|
2013-03-05 06:41:26 -08:00
|
|
|
'google-breakpad/src/processor',
|
2013-02-25 13:19:09 -08:00
|
|
|
'google-breakpad/src/tools/mac/dump_syms',
|
|
|
|
]
|
|
|
|
|
|
|
|
elif CONFIG['OS_ARCH'] == 'Linux':
|
|
|
|
DIRS += [
|
|
|
|
'google-breakpad/src/common',
|
|
|
|
'google-breakpad/src/common/linux',
|
|
|
|
'google-breakpad/src/client',
|
|
|
|
'google-breakpad/src/client/linux/crash_generation',
|
|
|
|
'google-breakpad/src/client/linux/handler',
|
|
|
|
'google-breakpad/src/client/linux/minidump_writer',
|
2013-03-05 06:41:26 -08:00
|
|
|
'google-breakpad/src/processor',
|
2013-02-25 13:19:09 -08:00
|
|
|
'google-breakpad/src/tools/linux/dump_syms',
|
|
|
|
]
|
|
|
|
|
|
|
|
elif CONFIG['OS_ARCH'] == 'SunOS':
|
|
|
|
DIRS += [
|
|
|
|
'google-breakpad/src/common',
|
|
|
|
'google-breakpad/src/common/solaris',
|
|
|
|
'google-breakpad/src/client',
|
|
|
|
'google-breakpad/src/client/solaris/handler',
|
|
|
|
'google-breakpad/src/tools/solaris/dump_syms',
|
|
|
|
]
|
|
|
|
|
|
|
|
DIRS += ['client']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_CRASHREPORTER_INJECTOR']:
|
|
|
|
DIRS += ['injector']
|
2013-12-13 06:55:39 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'InjectCrashReporter.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'LoadLibraryRemote.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-02-25 13:19:09 -08:00
|
|
|
|
|
|
|
TEST_TOOL_DIRS += ['test']
|
2013-03-19 11:47:00 -07:00
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'nsExceptionHandler.h',
|
|
|
|
]
|
|
|
|
|
2013-12-13 06:55:39 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsExceptionHandler.cpp',
|
|
|
|
]
|
|
|
|
|
2013-06-07 08:43:39 -07:00
|
|
|
if CONFIG['OS_ARCH'] == 'Darwin':
|
2013-12-13 06:55:39 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-06-07 08:43:39 -07:00
|
|
|
'mac_utils.mm',
|
|
|
|
]
|
2013-06-17 12:22:56 -07:00
|
|
|
|
|
|
|
EXTRA_JS_MODULES += [
|
2013-10-27 16:18:14 -07:00
|
|
|
'CrashReports.jsm',
|
2013-06-17 12:22:56 -07:00
|
|
|
'CrashSubmit.jsm',
|
|
|
|
'KeyValueParser.jsm',
|
|
|
|
]
|
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-18 18:47:14 -08:00
|
|
|
FINAL_LIBRARY = 'xulapp_s'
|
2013-11-27 05:55:07 -08:00
|
|
|
|
|
|
|
if CONFIG['OS_TARGET'] == 'Android':
|
|
|
|
DEFINES['ANDROID_PACKAGE_NAME'] = '"%s"' % CONFIG['ANDROID_PACKAGE_NAME']
|
|
|
|
# NDK5 workarounds
|
|
|
|
DEFINES['_STLP_CONST_CONSTRUCTOR_BUG'] = True
|
|
|
|
DEFINES['_STLP_NO_MEMBER_TEMPLATES'] = True
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'SunOS':
|
|
|
|
# there's no define for this normally
|
|
|
|
DEFINES['XP_SOLARIS'] = True
|
|
|
|
|
|
|
|
DEFINES['UNICODE'] = True
|
|
|
|
DEFINES['_UNICODE'] = True
|
2013-12-09 23:18:11 -08:00
|
|
|
|
2014-02-15 12:24:59 -08:00
|
|
|
JAR_MANIFESTS += ['jar.mn']
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'google-breakpad/src',
|
|
|
|
]
|
|
|
|
|
2014-06-09 08:12:06 -07:00
|
|
|
include('/toolkit/crashreporter/crashreporter.mozbuild')
|
2014-05-14 20:11:14 -07:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|