michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: SPHINX_TREES['crashreporter'] = 'docs' michael@0: michael@0: if CONFIG['OS_ARCH'] == 'WINNT': michael@0: DIRS += [ michael@0: 'google-breakpad/src/common', michael@0: 'google-breakpad/src/processor', michael@0: 'breakpad-windows-libxul' michael@0: ] michael@0: michael@0: if CONFIG['MOZ_CRASHREPORTER_INJECTOR']: michael@0: DIRS += ['breakpad-windows-standalone'] michael@0: michael@0: elif CONFIG['OS_ARCH'] == 'Darwin': michael@0: DIRS += [ michael@0: 'google-breakpad/src/common', michael@0: 'google-breakpad/src/common/mac', michael@0: 'google-breakpad/src/client', michael@0: 'google-breakpad/src/client/mac/crash_generation', michael@0: 'google-breakpad/src/client/mac/handler', michael@0: 'google-breakpad/src/processor', michael@0: 'google-breakpad/src/tools/mac/dump_syms', michael@0: ] michael@0: michael@0: elif CONFIG['OS_ARCH'] == 'Linux': michael@0: DIRS += [ michael@0: 'google-breakpad/src/common', michael@0: 'google-breakpad/src/common/linux', michael@0: 'google-breakpad/src/client', michael@0: 'google-breakpad/src/client/linux/crash_generation', michael@0: 'google-breakpad/src/client/linux/handler', michael@0: 'google-breakpad/src/client/linux/minidump_writer', michael@0: 'google-breakpad/src/processor', michael@0: 'google-breakpad/src/tools/linux/dump_syms', michael@0: ] michael@0: michael@0: elif CONFIG['OS_ARCH'] == 'SunOS': michael@0: DIRS += [ michael@0: 'google-breakpad/src/common', michael@0: 'google-breakpad/src/common/solaris', michael@0: 'google-breakpad/src/client', michael@0: 'google-breakpad/src/client/solaris/handler', michael@0: 'google-breakpad/src/tools/solaris/dump_syms', michael@0: ] michael@0: michael@0: DIRS += ['client'] michael@0: michael@0: if CONFIG['MOZ_CRASHREPORTER_INJECTOR']: michael@0: DIRS += ['injector'] michael@0: UNIFIED_SOURCES += [ michael@0: 'InjectCrashReporter.cpp', michael@0: 'LoadLibraryRemote.cpp', michael@0: ] michael@0: michael@0: TEST_TOOL_DIRS += ['test'] michael@0: michael@0: EXPORTS += [ michael@0: 'nsExceptionHandler.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsExceptionHandler.cpp', michael@0: ] michael@0: michael@0: if CONFIG['OS_ARCH'] == 'Darwin': michael@0: UNIFIED_SOURCES += [ michael@0: 'mac_utils.mm', michael@0: ] michael@0: michael@0: EXTRA_JS_MODULES += [ michael@0: 'CrashReports.jsm', michael@0: 'CrashSubmit.jsm', michael@0: 'KeyValueParser.jsm', michael@0: ] michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'xulapp_s' michael@0: michael@0: if CONFIG['OS_TARGET'] == 'Android': michael@0: DEFINES['ANDROID_PACKAGE_NAME'] = '"%s"' % CONFIG['ANDROID_PACKAGE_NAME'] michael@0: # NDK5 workarounds michael@0: DEFINES['_STLP_CONST_CONSTRUCTOR_BUG'] = True michael@0: DEFINES['_STLP_NO_MEMBER_TEMPLATES'] = True michael@0: michael@0: if CONFIG['OS_ARCH'] == 'SunOS': michael@0: # there's no define for this normally michael@0: DEFINES['XP_SOLARIS'] = True michael@0: michael@0: DEFINES['UNICODE'] = True michael@0: DEFINES['_UNICODE'] = True michael@0: michael@0: JAR_MANIFESTS += ['jar.mn'] michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: 'google-breakpad/src', michael@0: ] michael@0: