toolkit/crashreporter/client/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/crashreporter/client/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,51 @@
     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 +if CONFIG['OS_TARGET'] != 'Android':
    1.11 +    PROGRAM = 'crashreporter'
    1.12 +# The xpcshell test case here verifies that the CA certificate list
    1.13 +
    1.14 +UNIFIED_SOURCES += [
    1.15 +    'crashreporter.cpp',
    1.16 +]
    1.17 +
    1.18 +LOCAL_INCLUDES += [
    1.19 +    '../google-breakpad/src',
    1.20 +]
    1.21 +
    1.22 +if CONFIG['OS_ARCH'] == 'WINNT':
    1.23 +    UNIFIED_SOURCES += [
    1.24 +        'crashreporter_win.cpp',
    1.25 +    ]
    1.26 +    DEFINES['UNICODE'] = True
    1.27 +    DEFINES['_UNICODE'] = True
    1.28 +elif CONFIG['OS_ARCH'] == 'Darwin':
    1.29 +    UNIFIED_SOURCES += [
    1.30 +        'crashreporter_osx.mm',
    1.31 +        'crashreporter_unix_common.cpp',
    1.32 +    ]
    1.33 +    LOCAL_INCLUDES += [
    1.34 +        '../google-breakpad/src/common/mac',
    1.35 +    ]
    1.36 +    LDFLAGS += ['-framework Cocoa']
    1.37 +elif CONFIG['OS_ARCH'] == 'SunOS':
    1.38 +    SOURCES += [
    1.39 +        'crashreporter_linux.cpp',
    1.40 +        'crashreporter_unix.cpp',
    1.41 +    ]
    1.42 +
    1.43 +if CONFIG['MOZ_ENABLE_GTK']:
    1.44 +    UNIFIED_SOURCES += [
    1.45 +        'crashreporter_gtk_common.cpp',
    1.46 +        'crashreporter_linux.cpp',
    1.47 +        'crashreporter_unix_common.cpp'
    1.48 +    ]
    1.49 +
    1.50 +RCINCLUDE = 'crashreporter.rc'
    1.51 +
    1.52 +# Don't use the STL wrappers in the crashreporter clients; they don't
    1.53 +# link with -lmozalloc, and it really doesn't matter here anyway.
    1.54 +DISABLE_STL_WRAPPING = True

mercurial