Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 SPHINX_TREES['crashreporter'] = 'docs'
9 if CONFIG['OS_ARCH'] == 'WINNT':
10 DIRS += [
11 'google-breakpad/src/common',
12 'google-breakpad/src/processor',
13 'breakpad-windows-libxul'
14 ]
16 if CONFIG['MOZ_CRASHREPORTER_INJECTOR']:
17 DIRS += ['breakpad-windows-standalone']
19 elif CONFIG['OS_ARCH'] == 'Darwin':
20 DIRS += [
21 'google-breakpad/src/common',
22 'google-breakpad/src/common/mac',
23 'google-breakpad/src/client',
24 'google-breakpad/src/client/mac/crash_generation',
25 'google-breakpad/src/client/mac/handler',
26 'google-breakpad/src/processor',
27 'google-breakpad/src/tools/mac/dump_syms',
28 ]
30 elif CONFIG['OS_ARCH'] == 'Linux':
31 DIRS += [
32 'google-breakpad/src/common',
33 'google-breakpad/src/common/linux',
34 'google-breakpad/src/client',
35 'google-breakpad/src/client/linux/crash_generation',
36 'google-breakpad/src/client/linux/handler',
37 'google-breakpad/src/client/linux/minidump_writer',
38 'google-breakpad/src/processor',
39 'google-breakpad/src/tools/linux/dump_syms',
40 ]
42 elif CONFIG['OS_ARCH'] == 'SunOS':
43 DIRS += [
44 'google-breakpad/src/common',
45 'google-breakpad/src/common/solaris',
46 'google-breakpad/src/client',
47 'google-breakpad/src/client/solaris/handler',
48 'google-breakpad/src/tools/solaris/dump_syms',
49 ]
51 DIRS += ['client']
53 if CONFIG['MOZ_CRASHREPORTER_INJECTOR']:
54 DIRS += ['injector']
55 UNIFIED_SOURCES += [
56 'InjectCrashReporter.cpp',
57 'LoadLibraryRemote.cpp',
58 ]
60 TEST_TOOL_DIRS += ['test']
62 EXPORTS += [
63 'nsExceptionHandler.h',
64 ]
66 UNIFIED_SOURCES += [
67 'nsExceptionHandler.cpp',
68 ]
70 if CONFIG['OS_ARCH'] == 'Darwin':
71 UNIFIED_SOURCES += [
72 'mac_utils.mm',
73 ]
75 EXTRA_JS_MODULES += [
76 'CrashReports.jsm',
77 'CrashSubmit.jsm',
78 'KeyValueParser.jsm',
79 ]
81 MSVC_ENABLE_PGO = True
83 include('/ipc/chromium/chromium-config.mozbuild')
85 FINAL_LIBRARY = 'xulapp_s'
87 if CONFIG['OS_TARGET'] == 'Android':
88 DEFINES['ANDROID_PACKAGE_NAME'] = '"%s"' % CONFIG['ANDROID_PACKAGE_NAME']
89 # NDK5 workarounds
90 DEFINES['_STLP_CONST_CONSTRUCTOR_BUG'] = True
91 DEFINES['_STLP_NO_MEMBER_TEMPLATES'] = True
93 if CONFIG['OS_ARCH'] == 'SunOS':
94 # there's no define for this normally
95 DEFINES['XP_SOLARIS'] = True
97 DEFINES['UNICODE'] = True
98 DEFINES['_UNICODE'] = True
100 JAR_MANIFESTS += ['jar.mn']
102 LOCAL_INCLUDES += [
103 'google-breakpad/src',
104 ]