2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 21:19:09 +00: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 17:52:37 +00:00
|
|
|
SPHINX_TREES['crashreporter'] = 'docs'
|
|
|
|
|
2013-02-25 21:19:09 +00:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
2013-03-05 14:41:26 +00:00
|
|
|
DIRS += [
|
|
|
|
'google-breakpad/src/common',
|
|
|
|
'google-breakpad/src/processor',
|
|
|
|
'breakpad-windows-libxul'
|
|
|
|
]
|
2013-02-25 21:19:09 +00: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 14:41:26 +00:00
|
|
|
'google-breakpad/src/processor',
|
2013-02-25 21:19:09 +00: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 14:41:26 +00:00
|
|
|
'google-breakpad/src/processor',
|
2013-02-25 21:19:09 +00: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 14:55:39 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'InjectCrashReporter.cpp',
|
2013-10-23 23:00:23 +00:00
|
|
|
'LoadLibraryRemote.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
2013-02-25 21:19:09 +00:00
|
|
|
|
|
|
|
TEST_TOOL_DIRS += ['test']
|
2013-03-19 18:47:00 +00:00
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'nsExceptionHandler.h',
|
|
|
|
]
|
|
|
|
|
2013-12-13 14:55:39 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsExceptionHandler.cpp',
|
|
|
|
]
|
|
|
|
|
2013-06-07 15:43:39 +00:00
|
|
|
if CONFIG['OS_ARCH'] == 'Darwin':
|
2013-12-13 14:55:39 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-06-07 15:43:39 +00:00
|
|
|
'mac_utils.mm',
|
|
|
|
]
|
2013-06-17 19:22:56 +00:00
|
|
|
|
|
|
|
EXTRA_JS_MODULES += [
|
2013-10-27 23:18:14 +00:00
|
|
|
'CrashReports.jsm',
|
2013-06-17 19:22:56 +00:00
|
|
|
'CrashSubmit.jsm',
|
|
|
|
'KeyValueParser.jsm',
|
|
|
|
]
|
|
|
|
|
2013-08-22 06:56:01 +00:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-10-02 17:17:55 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-19 02:47:14 +00:00
|
|
|
FINAL_LIBRARY = 'xulapp_s'
|
2013-11-27 13:55:07 +00: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-10 07:18:11 +00:00
|
|
|
|
2014-02-15 20:24:59 +00:00
|
|
|
JAR_MANIFESTS += ['jar.mn']
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'google-breakpad/src',
|
|
|
|
]
|
|
|
|
|
2014-06-09 15:12:06 +00:00
|
|
|
include('/toolkit/crashreporter/crashreporter.mozbuild')
|
2014-05-15 03:11:14 +00:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|