toolkit/crashreporter/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/crashreporter/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,105 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +SPHINX_TREES['crashreporter'] = 'docs'
    1.11 +
    1.12 +if CONFIG['OS_ARCH'] == 'WINNT':
    1.13 +    DIRS += [
    1.14 +    'google-breakpad/src/common',
    1.15 +    'google-breakpad/src/processor',
    1.16 +    'breakpad-windows-libxul'
    1.17 +    ]
    1.18 +
    1.19 +    if CONFIG['MOZ_CRASHREPORTER_INJECTOR']:
    1.20 +        DIRS += ['breakpad-windows-standalone']
    1.21 +
    1.22 +elif CONFIG['OS_ARCH'] == 'Darwin':
    1.23 +    DIRS += [
    1.24 +        'google-breakpad/src/common',
    1.25 +        'google-breakpad/src/common/mac',
    1.26 +        'google-breakpad/src/client',
    1.27 +        'google-breakpad/src/client/mac/crash_generation',
    1.28 +        'google-breakpad/src/client/mac/handler',
    1.29 +        'google-breakpad/src/processor',
    1.30 +        'google-breakpad/src/tools/mac/dump_syms',
    1.31 +    ]
    1.32 +
    1.33 +elif CONFIG['OS_ARCH'] == 'Linux':
    1.34 +    DIRS += [
    1.35 +        'google-breakpad/src/common',
    1.36 +        'google-breakpad/src/common/linux',
    1.37 +        'google-breakpad/src/client',
    1.38 +        'google-breakpad/src/client/linux/crash_generation',
    1.39 +        'google-breakpad/src/client/linux/handler',
    1.40 +        'google-breakpad/src/client/linux/minidump_writer',
    1.41 +        'google-breakpad/src/processor',
    1.42 +        'google-breakpad/src/tools/linux/dump_syms',
    1.43 +    ]
    1.44 +
    1.45 +elif CONFIG['OS_ARCH'] == 'SunOS':
    1.46 +    DIRS += [
    1.47 +        'google-breakpad/src/common',
    1.48 +        'google-breakpad/src/common/solaris',
    1.49 +        'google-breakpad/src/client',
    1.50 +        'google-breakpad/src/client/solaris/handler',
    1.51 +        'google-breakpad/src/tools/solaris/dump_syms',
    1.52 +    ]
    1.53 +
    1.54 +DIRS += ['client']
    1.55 +
    1.56 +if CONFIG['MOZ_CRASHREPORTER_INJECTOR']:
    1.57 +    DIRS += ['injector']
    1.58 +    UNIFIED_SOURCES += [
    1.59 +        'InjectCrashReporter.cpp',
    1.60 +        'LoadLibraryRemote.cpp',
    1.61 +    ]
    1.62 +
    1.63 +TEST_TOOL_DIRS += ['test']
    1.64 +
    1.65 +EXPORTS += [
    1.66 +    'nsExceptionHandler.h',
    1.67 +]
    1.68 +
    1.69 +UNIFIED_SOURCES += [
    1.70 +    'nsExceptionHandler.cpp',
    1.71 +]
    1.72 +
    1.73 +if CONFIG['OS_ARCH'] == 'Darwin':
    1.74 +    UNIFIED_SOURCES += [
    1.75 +        'mac_utils.mm',
    1.76 +    ]
    1.77 +
    1.78 +EXTRA_JS_MODULES += [
    1.79 +    'CrashReports.jsm',
    1.80 +    'CrashSubmit.jsm',
    1.81 +    'KeyValueParser.jsm',
    1.82 +]
    1.83 +
    1.84 +MSVC_ENABLE_PGO = True
    1.85 +
    1.86 +include('/ipc/chromium/chromium-config.mozbuild')
    1.87 +
    1.88 +FINAL_LIBRARY = 'xulapp_s'
    1.89 +
    1.90 +if CONFIG['OS_TARGET'] == 'Android':
    1.91 +    DEFINES['ANDROID_PACKAGE_NAME'] = '"%s"' % CONFIG['ANDROID_PACKAGE_NAME']
    1.92 +    # NDK5 workarounds
    1.93 +    DEFINES['_STLP_CONST_CONSTRUCTOR_BUG'] = True
    1.94 +    DEFINES['_STLP_NO_MEMBER_TEMPLATES'] = True
    1.95 +
    1.96 +if CONFIG['OS_ARCH'] == 'SunOS':
    1.97 +    # there's no define for this normally
    1.98 +    DEFINES['XP_SOLARIS'] = True
    1.99 +
   1.100 +DEFINES['UNICODE'] = True
   1.101 +DEFINES['_UNICODE'] = True
   1.102 +
   1.103 +JAR_MANIFESTS += ['jar.mn']
   1.104 +
   1.105 +LOCAL_INCLUDES += [
   1.106 +    'google-breakpad/src',
   1.107 +]
   1.108 +

mercurial