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 if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'cocoa':
8 TEST_DIRS += ['tests']
10 EXPORTS += [
11 'nsICachedFileDescriptorListener.h',
12 'PCOMContentPermissionRequestChild.h',
13 ]
15 EXPORTS.mozilla.dom.ipc += [
16 'Blob.h',
17 'nsIRemoteBlob.h',
18 ]
20 EXPORTS.mozilla.dom += [
21 'ContentChild.h',
22 'ContentParent.h',
23 'ContentProcess.h',
24 'CrashReporterChild.h',
25 'CrashReporterParent.h',
26 'FileDescriptorSetChild.h',
27 'FileDescriptorSetParent.h',
28 'FilePickerParent.h',
29 'PermissionMessageUtils.h',
30 'StructuredCloneUtils.h',
31 'TabChild.h',
32 'TabContext.h',
33 'TabMessageUtils.h',
34 'TabParent.h',
35 ]
37 EXPORTS.mozilla += [
38 'AppProcessChecker.h',
39 'PreallocatedProcessManager.h',
40 'ProcessPriorityManager.h',
41 ]
43 UNIFIED_SOURCES += [
44 'AppProcessChecker.cpp',
45 'ColorPickerParent.cpp',
46 'ContentParent.cpp',
47 'ContentProcess.cpp',
48 'CrashReporterParent.cpp',
49 'FileDescriptorSetChild.cpp',
50 'FileDescriptorSetParent.cpp',
51 'FilePickerParent.cpp',
52 'PermissionMessageUtils.cpp',
53 'PreallocatedProcessManager.cpp',
54 'ProcessPriorityManager.cpp',
55 'StructuredCloneUtils.cpp',
56 'TabChild.cpp',
57 'TabContext.cpp',
58 'TabMessageUtils.cpp',
59 'TabParent.cpp',
60 ]
62 # Blob.cpp cannot be compiled in unified mode because it triggers a fatal gcc warning.
63 # ContentChild.cpp cannot be compiled in unified mode because it forces NSPR logging.
64 # CrashReporterChild.cpp cannot be compiled in unified mode because of name clashes
65 # in OS X headers.
66 SOURCES += [
67 'Blob.cpp',
68 'ContentChild.cpp',
69 'CrashReporterChild.cpp',
70 ]
72 IPDL_SOURCES += [
73 'DOMTypes.ipdlh',
74 'PBlob.ipdl',
75 'PBlobStream.ipdl',
76 'PBrowser.ipdl',
77 'PColorPicker.ipdl',
78 'PContent.ipdl',
79 'PContentPermission.ipdlh',
80 'PContentPermissionRequest.ipdl',
81 'PCrashReporter.ipdl',
82 'PDocumentRenderer.ipdl',
83 'PFileDescriptorSet.ipdl',
84 'PFilePicker.ipdl',
85 'PMemoryReportRequest.ipdl',
86 'PTabContext.ipdlh',
87 ]
89 FAIL_ON_WARNINGS = True
91 include('/ipc/chromium/chromium-config.mozbuild')
93 FINAL_LIBRARY = 'xul'
94 LOCAL_INCLUDES += [
95 '../src/base',
96 '../src/geolocation',
97 '../src/storage',
98 '/chrome/src',
99 '/content/base/src',
100 '/content/media/webspeech/synth/ipc',
101 '/docshell/base',
102 '/dom/base',
103 '/dom/bluetooth',
104 '/dom/bluetooth/ipc',
105 '/dom/devicestorage',
106 '/dom/filesystem',
107 '/dom/fmradio/ipc',
108 '/dom/indexedDB',
109 '/dom/indexedDB/ipc',
110 '/dom/mobilemessage/src/ipc',
111 '/extensions/cookie',
112 '/hal/sandbox',
113 '/js/ipc',
114 '/layout/base',
115 '/netwerk/base/src',
116 '/toolkit/xre',
117 '/uriloader/exthandler',
118 '/widget/xpwidgets',
119 '/xpcom/base',
120 '/xpcom/threads',
121 ]
123 DEFINES['BIN_SUFFIX'] = '"%s"' % CONFIG['BIN_SUFFIX']
125 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gtk2', 'gonk', 'qt'):
126 DEFINES['MOZ_ENABLE_FREETYPE'] = True
128 for var in ('MOZ_PERMISSIONS', 'MOZ_CHILD_PERMISSIONS'):
129 if CONFIG[var]:
130 DEFINES[var] = True
132 if CONFIG['ENABLE_TESTS']:
133 DEFINES['ENABLE_TESTS'] = 1
134 LOCAL_INCLUDES += [
135 'ipc/glue',
136 ]
138 JAR_MANIFESTS += ['jar.mn']