no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / dom / ipc / moz.build
blob68f82f5a38358e3755ef53405a7e0202aaf7e978
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/.
7 with Files("**"):
8     BUG_COMPONENT = ("Core", "DOM: Content Processes")
10 DIRS += ["jsactor"]
12 TEST_DIRS += ["gtest"]
14 XPIDL_SOURCES += [
15     "nsIDOMProcessChild.idl",
16     "nsIDOMProcessParent.idl",
17     "nsIHangReport.idl",
18     "nsILoginDetectionService.idl",
21 XPIDL_MODULE = "dom"
23 XPCOM_MANIFESTS += [
24     "components.conf",
27 EXTRA_JS_MODULES += [
28     "ManifestMessagesChild.sys.mjs",
31 EXPORTS.mozilla.dom.ipc += [
32     "IdType.h",
33     "MemMapSnapshot.h",
34     "SharedMap.h",
35     "SharedMapChangeEvent.h",
36     "SharedStringMap.h",
37     "StringTable.h",
38     "StructuredCloneData.h",
41 EXPORTS.mozilla.dom += [
42     "BrowserBridgeChild.h",
43     "BrowserBridgeHost.h",
44     "BrowserBridgeParent.h",
45     "BrowserChild.h",
46     "BrowserHost.h",
47     "BrowserParent.h",
48     "ClonedErrorHolder.h",
49     "CoalescedInputData.h",
50     "CoalescedMouseData.h",
51     "CoalescedTouchData.h",
52     "CoalescedWheelData.h",
53     "ContentChild.h",
54     "ContentParent.h",
55     "ContentProcess.h",
56     "ContentProcessManager.h",
57     "CSPMessageUtils.h",
58     "DocShellMessageUtils.h",
59     "EffectsInfo.h",
60     "FilePickerMessageUtils.h",
61     "FilePickerParent.h",
62     "InProcessChild.h",
63     "InProcessParent.h",
64     "JSOracleChild.h",
65     "JSOracleParent.h",
66     "JSValidatorChild.h",
67     "JSValidatorParent.h",
68     "JSValidatorUtils.h",
69     "LoginDetectionService.h",
70     "MaybeDiscarded.h",
71     "MemoryReportRequest.h",
72     "NativeThreadId.h",
73     "PageLoadEventUtils.h",
74     "PermissionMessageUtils.h",
75     "ProcessActor.h",
76     "ProcessIsolation.h",
77     "PropertyBagUtils.h",
78     "ReferrerInfoUtils.h",
79     "RefMessageBodyService.h",
80     "RemoteBrowser.h",
81     "RemoteType.h",
82     "RemoteWebProgressRequest.h",
83     "SharedMessageBody.h",
84     "TabContext.h",
85     "TabMessageTypes.h",
86     "TabMessageUtils.h",
87     "URLClassifierChild.h",
88     "URLClassifierParent.h",
89     "UserActivationIPCUtils.h",
90     "VsyncChild.h",
91     "VsyncMainChild.h",
92     "VsyncParent.h",
93     "VsyncWorkerChild.h",
94     "WindowGlobalActor.h",
95     "WindowGlobalChild.h",
96     "WindowGlobalParent.h",
99 EXPORTS.mozilla += [
100     "PreallocatedProcessManager.h",
101     "ProcessHangMonitor.h",
102     "ProcessHangMonitorIPC.h",
103     "ProcessPriorityManager.h",
106 UNIFIED_SOURCES += [
107     "BrowserBridgeChild.cpp",
108     "BrowserBridgeHost.cpp",
109     "BrowserBridgeParent.cpp",
110     "BrowserChild.cpp",
111     "BrowserHost.cpp",
112     "BrowserParent.cpp",
113     "ClonedErrorHolder.cpp",
114     "CoalescedInputData.cpp",
115     "CoalescedMouseData.cpp",
116     "CoalescedTouchData.cpp",
117     "CoalescedWheelData.cpp",
118     "ColorPickerParent.cpp",
119     "ContentParent.cpp",
120     "ContentProcess.cpp",
121     "ContentProcessManager.cpp",
122     "CSPMessageUtils.cpp",
123     "DocShellMessageUtils.cpp",
124     "FilePickerParent.cpp",
125     "InProcessImpl.cpp",
126     "JSOracleChild.cpp",
127     "JSOracleParent.cpp",
128     "JSValidatorChild.cpp",
129     "JSValidatorParent.cpp",
130     "JSValidatorUtils.cpp",
131     "LoginDetectionService.cpp",
132     "MemMapSnapshot.cpp",
133     "MemoryReportRequest.cpp",
134     "MMPrinter.cpp",
135     "PermissionMessageUtils.cpp",
136     "PreallocatedProcessManager.cpp",
137     "ProcessActor.cpp",
138     "ProcessIsolation.cpp",
139     "ProcessPriorityManager.cpp",
140     "PropertyBagUtils.cpp",
141     "ReferrerInfoUtils.cpp",
142     "RefMessageBodyService.cpp",
143     "RemoteBrowser.cpp",
144     "RemoteWebProgressRequest.cpp",
145     "SharedMap.cpp",
146     "SharedMessageBody.cpp",
147     "SharedStringMap.cpp",
148     "StructuredCloneData.cpp",
149     "TabContext.cpp",
150     "URLClassifierParent.cpp",
151     "WindowGlobalActor.cpp",
152     "WindowGlobalChild.cpp",
153     "WindowGlobalParent.cpp",
156 # ContentChild.cpp cannot be compiled in unified mode on  linux due to Time conflict
157 SOURCES += [
158     "ContentChild.cpp",
159     "ProcessHangMonitor.cpp",
160     "VsyncMainChild.cpp",
161     "VsyncParent.cpp",
162     "VsyncWorkerChild.cpp",
165 PREPROCESSED_IPDL_SOURCES += [
166     "PBrowser.ipdl",
167     "PBrowserBridge.ipdl",
168     "PContent.ipdl",
171 IPDL_SOURCES += [
172     "CustomElementTypes.ipdlh",
173     "DOMTypes.ipdlh",
174     "IPCTransferable.ipdlh",
175     "MemoryReportTypes.ipdlh",
176     "PColorPicker.ipdl",
177     "PContentPermission.ipdlh",
178     "PContentPermissionRequest.ipdl",
179     "PCycleCollectWithLogs.ipdl",
180     "PFilePicker.ipdl",
181     "PInProcess.ipdl",
182     "PJSOracle.ipdl",
183     "PJSValidator.ipdl",
184     "PProcessHangMonitor.ipdl",
185     "PrefsTypes.ipdlh",
186     "PTabContext.ipdlh",
187     "PURLClassifier.ipdl",
188     "PURLClassifierInfo.ipdlh",
189     "PURLClassifierLocal.ipdl",
190     "PVsync.ipdl",
191     "PWindowGlobal.ipdl",
192     "ServiceWorkerConfiguration.ipdlh",
193     "WindowGlobalTypes.ipdlh",
196 include("/ipc/chromium/chromium-config.mozbuild")
198 FINAL_LIBRARY = "xul"
200 if CONFIG["MOZ_SANDBOX"] and (CONFIG["OS_TARGET"] in ["Darwin", "Linux"]):
201     USE_LIBS += [
202         "mozsandbox",
203     ]
205 LOCAL_INCLUDES += [
206     "/caps",
207     "/chrome",
208     "/docshell/base",
209     "/dom/base",
210     "/dom/bindings",
211     "/dom/events",
212     "/dom/filesystem",
213     "/dom/geolocation",
214     "/dom/media/webrtc",
215     "/dom/media/webspeech/synth/ipc",
216     "/dom/security",
217     "/dom/storage",
218     "/extensions/spellcheck/src",
219     "/gfx/2d",
220     "/hal/sandbox",
221     "/js/xpconnect/loader",
222     "/js/xpconnect/src",
223     "/layout/base",
224     "/media/webrtc",
225     "/netwerk/base",
226     "/netwerk/dns",
227     "/netwerk/protocol/http",
228     "/toolkit/components/printingui/ipc",
229     "/toolkit/crashreporter",
230     "/toolkit/xre",
231     "/uriloader/exthandler",
232     "/widget",
233     "/xpcom/base",
234     "/xpcom/threads",
237 if CONFIG["MOZ_SANDBOX"] and CONFIG["OS_ARCH"] == "WINNT":
238     LOCAL_INCLUDES += [
239         "/security/sandbox/chromium",
240         "/security/sandbox/chromium-shim",
241     ]
243 if CONFIG["MOZ_SANDBOX"] and CONFIG["OS_ARCH"] == "OpenBSD":
244     LOCAL_INCLUDES += [
245         "/xpcom/build",
246     ]
248 if CONFIG["OS_ARCH"] != "WINNT":
249     LOCAL_INCLUDES += [
250         "/modules/libjar",
251     ]
253 DEFINES["BIN_SUFFIX"] = '"%s"' % CONFIG["BIN_SUFFIX"]
255 DEFINES["MOZ_APP_NAME"] = '"%s"' % CONFIG["MOZ_APP_NAME"]
257 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
258     DEFINES["MOZ_ENABLE_FREETYPE"] = True
260 JAR_MANIFESTS += ["jar.mn"]
262 BROWSER_CHROME_MANIFESTS += [
263     "tests/browser.toml",
264     "tests/JSProcessActor/browser.toml",
265     "tests/JSWindowActor/browser.toml",
268 MOCHITEST_CHROME_MANIFESTS += ["tests/chrome.toml"]
269 MOCHITEST_MANIFESTS += ["tests/mochitest.toml"]
270 XPCSHELL_TESTS_MANIFESTS += ["tests/xpcshell.toml"]
272 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
273     CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
275 # Add libFuzzer configuration directives
276 include("/tools/fuzzing/libfuzzer-config.mozbuild")