1 # -*- Mode: python; 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/.
8 BUG_COMPONENT = ("Core", "DOM: Content Processes")
11 'nsIContentChild.idl',
12 'nsIContentParent.idl',
14 'nsIRemoteWebProgress.idl',
15 'nsIRemoteWebProgressRequest.idl',
25 'ManifestMessagesChild.jsm',
28 EXPORTS.mozilla.dom.ipc += [
32 'SharedMapChangeEvent.h',
35 'StructuredCloneData.h',
38 EXPORTS.mozilla.dom += [
39 'BrowserBridgeChild.h',
40 'BrowserBridgeHost.h',
41 'BrowserBridgeParent.h',
45 'ClonedErrorHolder.h',
46 'CoalescedInputData.h',
47 'CoalescedMouseData.h',
48 'CoalescedWheelData.h',
52 'ContentProcessManager.h',
53 'CPOWManagerGetter.h',
55 'DocShellMessageUtils.h',
60 'JSProcessActorChild.h',
61 'JSProcessActorParent.h',
62 'JSProcessActorProtocol.h',
63 'JSWindowActorChild.h',
64 'JSWindowActorParent.h',
65 'JSWindowActorProtocol.h',
67 'MemoryReportRequest.h',
68 'PermissionMessageUtils.h',
71 'ReferrerInfoUtils.h',
72 'RefMessageBodyService.h',
74 'RemoteWebProgress.h',
75 'RemoteWebProgressRequest.h',
76 'SharedMessageBody.h',
79 'URLClassifierChild.h',
80 'URLClassifierParent.h',
81 'UserActivationIPCUtils.h',
82 'WindowGlobalActor.h',
83 'WindowGlobalChild.h',
84 'WindowGlobalParent.h',
88 'PreallocatedProcessManager.h',
89 'ProcessHangMonitor.h',
90 'ProcessHangMonitorIPC.h',
91 'ProcessPriorityManager.h',
99 'BrowserBridgeChild.cpp',
100 'BrowserBridgeHost.cpp',
101 'BrowserBridgeParent.cpp',
105 'ClonedErrorHolder.cpp',
106 'CoalescedMouseData.cpp',
107 'CoalescedWheelData.cpp',
108 'ColorPickerParent.cpp',
110 'ContentProcess.cpp',
111 'ContentProcessManager.cpp',
112 'CSPMessageUtils.cpp',
113 'DocShellMessageUtils.cpp',
114 'FilePickerParent.cpp',
116 'JSActorService.cpp',
117 'JSProcessActorChild.cpp',
118 'JSProcessActorParent.cpp',
119 'JSProcessActorProtocol.cpp',
120 'JSWindowActorChild.cpp',
121 'JSWindowActorParent.cpp',
122 'JSWindowActorProtocol.cpp',
123 'MemMapSnapshot.cpp',
124 'MemoryReportRequest.cpp',
126 'PermissionMessageUtils.cpp',
127 'PreallocatedProcessManager.cpp',
129 'ProcessPriorityManager.cpp',
130 'PropertyBagUtils.cpp',
131 'ReferrerInfoUtils.cpp',
132 'RefMessageBodyService.cpp',
134 'RemoteWebProgress.cpp',
135 'RemoteWebProgressRequest.cpp',
137 'SharedMessageBody.cpp',
138 'SharedStringMap.cpp',
139 'StructuredCloneData.cpp',
141 'TabMessageUtils.cpp',
142 'URLClassifierParent.cpp',
143 'WindowGlobalActor.cpp',
144 'WindowGlobalChild.cpp',
145 'WindowGlobalParent.cpp',
148 # ContentChild.cpp cannot be compiled in unified mode on linux due to Time conflict
151 'ProcessHangMonitor.cpp',
154 PREPROCESSED_IPDL_SOURCES += [
156 'PBrowserBridge.ipdl',
162 'MemoryReportTypes.ipdlh',
164 'PContentPermission.ipdlh',
165 'PContentPermissionRequest.ipdl',
166 'PCycleCollectWithLogs.ipdl',
168 'PLoginReputation.ipdl',
169 'PPluginWidget.ipdl',
170 'PProcessHangMonitor.ipdl',
173 'PURLClassifier.ipdl',
174 'PURLClassifierInfo.ipdlh',
175 'PURLClassifierLocal.ipdl',
176 'PWindowGlobal.ipdl',
177 'ServiceWorkerConfiguration.ipdlh',
180 include('/ipc/chromium/chromium-config.mozbuild')
182 FINAL_LIBRARY = 'xul'
184 if CONFIG['MOZ_SANDBOX'] and (CONFIG['OS_TARGET'] in ['Darwin', 'Linux']):
198 '/dom/media/webspeech/synth/ipc',
201 '/extensions/spellcheck/src',
204 '/js/xpconnect/loader',
209 '/netwerk/protocol/http',
210 '/toolkit/components/printingui/ipc',
211 '/toolkit/crashreporter',
213 '/uriloader/exthandler',
219 if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
221 '/security/sandbox/chromium',
222 '/security/sandbox/chromium-shim',
225 if CONFIG['OS_ARCH'] != 'WINNT':
230 DEFINES['BIN_SUFFIX'] = '"%s"' % CONFIG['BIN_SUFFIX']
232 DEFINES['MOZ_APP_NAME'] = '"%s"' % CONFIG['MOZ_APP_NAME']
234 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
235 DEFINES['MOZ_ENABLE_FREETYPE'] = True
237 JAR_MANIFESTS += ['jar.mn']
239 BROWSER_CHROME_MANIFESTS += [
241 'tests/JSProcessActor/browser.ini',
242 'tests/JSWindowActor/browser.ini',
245 MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini']
246 MOCHITEST_MANIFESTS += ['tests/mochitest.ini']
247 XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell.ini']
249 CXXFLAGS += CONFIG['TK_CFLAGS']
251 if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
252 CXXFLAGS += ['-Wno-error=shadow']
254 if CONFIG['FUZZING'] and CONFIG['FUZZING_INTERFACES']:
259 # Add libFuzzer configuration directives
260 include('/tools/fuzzing/libfuzzer-config.mozbuild')