|
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/. |
|
6 |
|
7 SPHINX_TREES['crashreporter'] = 'docs' |
|
8 |
|
9 if CONFIG['OS_ARCH'] == 'WINNT': |
|
10 DIRS += [ |
|
11 'google-breakpad/src/common', |
|
12 'google-breakpad/src/processor', |
|
13 'breakpad-windows-libxul' |
|
14 ] |
|
15 |
|
16 if CONFIG['MOZ_CRASHREPORTER_INJECTOR']: |
|
17 DIRS += ['breakpad-windows-standalone'] |
|
18 |
|
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 ] |
|
29 |
|
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 ] |
|
41 |
|
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 ] |
|
50 |
|
51 DIRS += ['client'] |
|
52 |
|
53 if CONFIG['MOZ_CRASHREPORTER_INJECTOR']: |
|
54 DIRS += ['injector'] |
|
55 UNIFIED_SOURCES += [ |
|
56 'InjectCrashReporter.cpp', |
|
57 'LoadLibraryRemote.cpp', |
|
58 ] |
|
59 |
|
60 TEST_TOOL_DIRS += ['test'] |
|
61 |
|
62 EXPORTS += [ |
|
63 'nsExceptionHandler.h', |
|
64 ] |
|
65 |
|
66 UNIFIED_SOURCES += [ |
|
67 'nsExceptionHandler.cpp', |
|
68 ] |
|
69 |
|
70 if CONFIG['OS_ARCH'] == 'Darwin': |
|
71 UNIFIED_SOURCES += [ |
|
72 'mac_utils.mm', |
|
73 ] |
|
74 |
|
75 EXTRA_JS_MODULES += [ |
|
76 'CrashReports.jsm', |
|
77 'CrashSubmit.jsm', |
|
78 'KeyValueParser.jsm', |
|
79 ] |
|
80 |
|
81 MSVC_ENABLE_PGO = True |
|
82 |
|
83 include('/ipc/chromium/chromium-config.mozbuild') |
|
84 |
|
85 FINAL_LIBRARY = 'xulapp_s' |
|
86 |
|
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 |
|
92 |
|
93 if CONFIG['OS_ARCH'] == 'SunOS': |
|
94 # there's no define for this normally |
|
95 DEFINES['XP_SOLARIS'] = True |
|
96 |
|
97 DEFINES['UNICODE'] = True |
|
98 DEFINES['_UNICODE'] = True |
|
99 |
|
100 JAR_MANIFESTS += ['jar.mn'] |
|
101 |
|
102 LOCAL_INCLUDES += [ |
|
103 'google-breakpad/src', |
|
104 ] |
|
105 |