2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:19:09 +04: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 21:52:37 +04:00
|
|
|
SPHINX_TREES['crashreporter'] = 'docs'
|
|
|
|
|
2017-10-02 21:22:56 +03:00
|
|
|
with Files('docs/**'):
|
|
|
|
SCHEDULES.exclusive = ['docs']
|
|
|
|
|
2017-11-14 16:49:33 +03:00
|
|
|
EXPORTS += [
|
Bug 1348273 - Convert crash annotations into a machine-readable list of constants; r=ted.mielczarek,njn,dholbert,mak,cpearce,mcmanus,froydnj,Dexter,jrmuizel,jchen,jimm,bz,surkov
This introduces the machinery needed to generate crash annotations from a YAML
file. The relevant C++ functions are updated to take a typed enum. JavaScript
calls are unaffected but they will throw if the string argument does not
correspond to one of the known entries in the C++ enum. The existing whitelists
and blacklists of annotations are also generated from the YAML file and all
duplicate code related to them has been consolidated. Once written out to the
.extra file the annotations are converted in string form and are no different
than the existing ones.
All existing annotations have been included in the list (and some obsolete ones
have been removed) and all call sites have been updated including tests where
appropriate.
--HG--
extra : source : 4f6c43f2830701ec5552e08e3f1b06fe6d045860
2018-07-05 16:42:11 +03:00
|
|
|
'!CrashAnnotations.h',
|
2017-11-14 16:49:33 +03:00
|
|
|
'nsExceptionHandler.h',
|
|
|
|
]
|
2017-11-14 16:49:33 +03:00
|
|
|
|
2017-11-14 16:49:33 +03:00
|
|
|
JAR_MANIFESTS += ['jar.mn']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2017-11-14 16:49:33 +03:00
|
|
|
UNIFIED_SOURCES = [
|
Bug 1348273 - Convert crash annotations into a machine-readable list of constants; r=ted.mielczarek,njn,dholbert,mak,cpearce,mcmanus,froydnj,Dexter,jrmuizel,jchen,jimm,bz,surkov
This introduces the machinery needed to generate crash annotations from a YAML
file. The relevant C++ functions are updated to take a typed enum. JavaScript
calls are unaffected but they will throw if the string argument does not
correspond to one of the known entries in the C++ enum. The existing whitelists
and blacklists of annotations are also generated from the YAML file and all
duplicate code related to them has been consolidated. Once written out to the
.extra file the annotations are converted in string form and are no different
than the existing ones.
All existing annotations have been included in the list (and some obsolete ones
have been removed) and all call sites have been updated including tests where
appropriate.
--HG--
extra : source : 4f6c43f2830701ec5552e08e3f1b06fe6d045860
2018-07-05 16:42:11 +03:00
|
|
|
'CrashAnnotations.cpp',
|
2017-11-14 16:49:33 +03:00
|
|
|
'nsExceptionHandlerUtils.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
|
|
|
|
if CONFIG['MOZ_CRASHREPORTER']:
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
DIRS += [
|
|
|
|
'google-breakpad/src/common',
|
|
|
|
'google-breakpad/src/processor',
|
|
|
|
'breakpad-windows-libxul',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_CRASHREPORTER_INJECTOR']:
|
|
|
|
DIRS += ['breakpad-windows-standalone']
|
|
|
|
|
|
|
|
elif CONFIG['OS_ARCH'] == 'Darwin':
|
|
|
|
DIRS += [
|
|
|
|
'breakpad-client',
|
|
|
|
'breakpad-client/mac/crash_generation',
|
|
|
|
'breakpad-client/mac/handler',
|
|
|
|
'google-breakpad/src/common',
|
|
|
|
'google-breakpad/src/common/mac',
|
|
|
|
'google-breakpad/src/processor',
|
|
|
|
]
|
2020-07-22 10:00:05 +03:00
|
|
|
if not CONFIG['DUMP_SYMS']:
|
|
|
|
DIRS += [
|
|
|
|
'google-breakpad/src/tools/mac/dump_syms',
|
|
|
|
'rust',
|
|
|
|
]
|
2017-11-14 16:49:33 +03:00
|
|
|
|
|
|
|
elif CONFIG['OS_ARCH'] == 'Linux':
|
|
|
|
DIRS += [
|
|
|
|
'breakpad-client',
|
|
|
|
'breakpad-client/linux/',
|
|
|
|
'google-breakpad/src/common',
|
|
|
|
'google-breakpad/src/common/linux',
|
|
|
|
'google-breakpad/src/processor',
|
|
|
|
]
|
2020-07-22 10:00:05 +03:00
|
|
|
if not CONFIG['DUMP_SYMS'] and CONFIG['HOST_OS_ARCH'] == 'Linux':
|
|
|
|
DIRS += [
|
|
|
|
'google-breakpad/src/tools/linux/dump_syms',
|
|
|
|
'rust',
|
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2017-11-23 01:11:44 +03:00
|
|
|
DIRS += [
|
2017-11-14 16:49:33 +03:00
|
|
|
'client',
|
|
|
|
'minidump-analyzer',
|
2017-11-23 01:11:44 +03:00
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2017-11-14 16:49:33 +03:00
|
|
|
if CONFIG['MOZ_CRASHREPORTER_INJECTOR']:
|
|
|
|
DIRS += ['injector']
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'InjectCrashReporter.cpp',
|
|
|
|
'LoadLibraryRemote.cpp',
|
|
|
|
]
|
2017-11-14 16:49:33 +03:00
|
|
|
|
2017-11-14 16:49:33 +03:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
|
|
DIRS += ['test/gtest']
|
|
|
|
|
|
|
|
TEST_DIRS += ['test']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2013-12-13 18:55:39 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2017-11-14 16:49:33 +03:00
|
|
|
'nsExceptionHandler.cpp',
|
|
|
|
'ThreadAnnotation.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2017-11-14 16:49:33 +03:00
|
|
|
if CONFIG['OS_ARCH'] == 'Darwin':
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'mac_utils.mm',
|
|
|
|
]
|
2013-03-19 22:47:00 +04:00
|
|
|
|
2017-11-14 16:49:33 +03:00
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'CrashReports.jsm',
|
|
|
|
'CrashSubmit.jsm',
|
2013-06-07 19:43:39 +04:00
|
|
|
]
|
2013-06-17 23:22:56 +04:00
|
|
|
|
2017-11-14 16:49:33 +03:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
2013-06-17 23:22:56 +04:00
|
|
|
|
2017-11-14 16:49:33 +03:00
|
|
|
if CONFIG['OS_TARGET'] == 'Android':
|
|
|
|
DEFINES['ANDROID_NDK_MAJOR_VERSION'] = CONFIG['ANDROID_NDK_MAJOR_VERSION']
|
|
|
|
DEFINES['ANDROID_NDK_MINOR_VERSION'] = CONFIG['ANDROID_NDK_MINOR_VERSION']
|
|
|
|
DEFINES['ANDROID_PACKAGE_NAME'] = '"%s"' % CONFIG['ANDROID_PACKAGE_NAME']
|
|
|
|
# NDK5 workarounds
|
|
|
|
DEFINES['_STLP_CONST_CONSTRUCTOR_BUG'] = True
|
|
|
|
DEFINES['_STLP_NO_MEMBER_TEMPLATES'] = True
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/toolkit/crashreporter/google-breakpad/src/common/android/include',
|
|
|
|
]
|
2013-10-02 21:17:55 +04:00
|
|
|
|
2017-11-14 16:49:33 +03:00
|
|
|
DEFINES['UNICODE'] = True
|
|
|
|
DEFINES['_UNICODE'] = True
|
2013-11-27 17:55:07 +04:00
|
|
|
|
2019-07-03 02:26:11 +03:00
|
|
|
if CONFIG['MOZ_PHC']:
|
|
|
|
DEFINES['MOZ_PHC'] = True
|
|
|
|
|
2016-06-16 10:43:51 +03:00
|
|
|
LOCAL_INCLUDES += [
|
2017-11-14 16:49:33 +03:00
|
|
|
'google-breakpad/src',
|
2016-06-16 10:43:51 +03:00
|
|
|
]
|
2013-11-27 17:55:07 +04:00
|
|
|
|
2017-11-14 16:49:33 +03:00
|
|
|
PYTHON_UNITTEST_MANIFESTS += [
|
|
|
|
'tools/python.ini',
|
|
|
|
]
|
2014-02-16 00:24:59 +04:00
|
|
|
|
2017-11-14 16:49:33 +03:00
|
|
|
include('/toolkit/crashreporter/crashreporter.mozbuild')
|
2017-11-23 01:11:44 +03:00
|
|
|
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2017-11-14 16:49:33 +03:00
|
|
|
CXXFLAGS += ['-Wno-shadow']
|
|
|
|
else:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsDummyExceptionHandler.cpp',
|
|
|
|
]
|
2016-01-27 17:39:53 +03:00
|
|
|
|
Bug 1348273 - Convert crash annotations into a machine-readable list of constants; r=ted.mielczarek,njn,dholbert,mak,cpearce,mcmanus,froydnj,Dexter,jrmuizel,jchen,jimm,bz,surkov
This introduces the machinery needed to generate crash annotations from a YAML
file. The relevant C++ functions are updated to take a typed enum. JavaScript
calls are unaffected but they will throw if the string argument does not
correspond to one of the known entries in the C++ enum. The existing whitelists
and blacklists of annotations are also generated from the YAML file and all
duplicate code related to them has been consolidated. Once written out to the
.extra file the annotations are converted in string form and are no different
than the existing ones.
All existing annotations have been included in the list (and some obsolete ones
have been removed) and all call sites have been updated including tests where
appropriate.
--HG--
extra : source : 4f6c43f2830701ec5552e08e3f1b06fe6d045860
2018-07-05 16:42:11 +03:00
|
|
|
# Generate CrashAnnotations.h
|
2019-10-08 00:15:19 +03:00
|
|
|
GeneratedFile('CrashAnnotations.h', script='generate_crash_reporter_sources.py',
|
|
|
|
entry_point='emit_header', inputs=[
|
|
|
|
'CrashAnnotations.h.in',
|
|
|
|
'CrashAnnotations.yaml',
|
|
|
|
])
|
2014-05-15 07:11:14 +04:00
|
|
|
|
2015-03-15 21:36:24 +03:00
|
|
|
with Files('**'):
|
2017-05-02 19:44:42 +03:00
|
|
|
BUG_COMPONENT = ('Toolkit', 'Crash Reporting')
|