Bug 1837643 [wpt PR 40475] - [RemoveLegacy] GridTrackList::legacy_track_list_, a...
[gecko.git] / netwerk / base / moz.build
blobd35714df2133048e1c867e8b25367632c2e289a7
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 XPIDL_SOURCES += [
8     "mozIThirdPartyUtil.idl",
9     "nsIArrayBufferInputStream.idl",
10     "nsIAsyncStreamCopier.idl",
11     "nsIAsyncStreamCopier2.idl",
12     "nsIAsyncVerifyRedirectCallback.idl",
13     "nsIAuthInformation.idl",
14     "nsIAuthModule.idl",
15     "nsIAuthPrompt.idl",
16     "nsIAuthPrompt2.idl",
17     "nsIAuthPromptAdapterFactory.idl",
18     "nsIAuthPromptCallback.idl",
19     "nsIAuthPromptProvider.idl",
20     "nsIBackgroundFileSaver.idl",
21     "nsIBufferedStreams.idl",
22     "nsIByteRangeRequest.idl",
23     "nsICacheInfoChannel.idl",
24     "nsICachingChannel.idl",
25     "nsICancelable.idl",
26     "nsICaptivePortalService.idl",
27     "nsIChannel.idl",
28     "nsIChannelEventSink.idl",
29     "nsIChildChannel.idl",
30     "nsIClassifiedChannel.idl",
31     "nsIClassOfService.idl",
32     "nsIContentSniffer.idl",
33     "nsIDashboard.idl",
34     "nsIDashboardEventNotifier.idl",
35     "nsIDHCPClient.idl",
36     "nsIDownloader.idl",
37     "nsIEncodedChannel.idl",
38     "nsIExternalProtocolHandler.idl",
39     "nsIFileStreams.idl",
40     "nsIFileURL.idl",
41     "nsIForcePendingChannel.idl",
42     "nsIFormPOSTActionChannel.idl",
43     "nsIHttpAuthenticatorCallback.idl",
44     "nsIHttpPushListener.idl",
45     "nsIIncrementalDownload.idl",
46     "nsIIncrementalStreamLoader.idl",
47     "nsIInputStreamChannel.idl",
48     "nsIInputStreamPump.idl",
49     "nsIInterceptionInfo.idl",
50     "nsIIOService.idl",
51     "nsILoadContextInfo.idl",
52     "nsILoadGroup.idl",
53     "nsILoadGroupChild.idl",
54     "nsILoadInfo.idl",
55     "nsIMIMEInputStream.idl",
56     "nsIMultiPartChannel.idl",
57     "nsINestedURI.idl",
58     "nsINetAddr.idl",
59     "nsINetUtil.idl",
60     "nsINetworkConnectivityService.idl",
61     "nsINetworkInfoService.idl",
62     "nsINetworkInterceptController.idl",
63     "nsINetworkLinkService.idl",
64     "nsINetworkPredictor.idl",
65     "nsINetworkPredictorVerifier.idl",
66     "nsINullChannel.idl",
67     "nsIParentChannel.idl",
68     "nsIParentRedirectingChannel.idl",
69     "nsIPermission.idl",
70     "nsIPermissionManager.idl",
71     "nsIPrivateBrowsingChannel.idl",
72     "nsIProgressEventSink.idl",
73     "nsIPrompt.idl",
74     "nsIProtocolHandler.idl",
75     "nsIProtocolProxyCallback.idl",
76     "nsIProtocolProxyFilter.idl",
77     "nsIProtocolProxyService.idl",
78     "nsIProtocolProxyService2.idl",
79     "nsIProxiedChannel.idl",
80     "nsIProxiedProtocolHandler.idl",
81     "nsIProxyInfo.idl",
82     "nsIRandomGenerator.idl",
83     "nsIRedirectChannelRegistrar.idl",
84     "nsIRedirectHistoryEntry.idl",
85     "nsIRedirectResultListener.idl",
86     "nsIRequest.idl",
87     "nsIRequestContext.idl",
88     "nsIRequestObserver.idl",
89     "nsIRequestObserverProxy.idl",
90     "nsIResumableChannel.idl",
91     "nsISecCheckWrapChannel.idl",
92     "nsISecureBrowserUI.idl",
93     "nsISensitiveInfoHiddenURI.idl",
94     "nsISerializationHelper.idl",
95     "nsIServerSocket.idl",
96     "nsISimpleStreamListener.idl",
97     "nsISimpleURIMutator.idl",
98     "nsISocketFilter.idl",
99     "nsISocketTransport.idl",
100     "nsISocketTransportService.idl",
101     "nsISpeculativeConnect.idl",
102     "nsIStandardURL.idl",
103     "nsIStreamListener.idl",
104     "nsIStreamListenerTee.idl",
105     "nsIStreamLoader.idl",
106     "nsIStreamTransportService.idl",
107     "nsISyncStreamListener.idl",
108     "nsISystemProxySettings.idl",
109     "nsIThreadRetargetableRequest.idl",
110     "nsIThreadRetargetableStreamListener.idl",
111     "nsIThrottledInputChannel.idl",
112     "nsITimedChannel.idl",
113     "nsITLSServerSocket.idl",
114     "nsITraceableChannel.idl",
115     "nsITransport.idl",
116     "nsIUDPSocket.idl",
117     "nsIUploadChannel.idl",
118     "nsIUploadChannel2.idl",
119     "nsIURI.idl",
120     "nsIURIMutator.idl",
121     "nsIURIWithSpecialOrigin.idl",
122     "nsIURL.idl",
123     "nsIURLParser.idl",
124     "nsPISocketTransportService.idl",
127 XPIDL_MODULE = "necko"
129 EXPORTS += [
130     "netCore.h",
131     "nsASocketHandler.h",
132     "nsAsyncRedirectVerifyHelper.h",
133     "nsBaseChannel.h",
134     "nsFileStreams.h",
135     "nsInputStreamPump.h",
136     "nsMIMEInputStream.h",
137     "nsNetUtil.h",
138     "nsReadLine.h",
139     "nsSerializationHelper.h",
140     "nsSimpleNestedURI.h",
141     "nsSimpleURI.h",
142     "nsStandardURL.h",
143     "nsStreamListenerWrapper.h",
144     "nsURIHashKey.h",
145     "nsURLHelper.h",
146     "nsURLParsers.h",
147     "SimpleChannel.h",
150 EXPORTS.mozilla += [
151     "LoadContextInfo.h",
152     "LoadInfo.h",
153     "LoadTainting.h",
154     "nsRedirectHistoryEntry.h",
157 EXPORTS.mozilla.net += [
158     "CacheInfoIPCTypes.h",
159     "CaptivePortalService.h",
160     "Dashboard.h",
161     "DashboardTypes.h",
162     "DefaultURI.h",
163     "InterceptionInfo.h",
164     "IOActivityMonitor.h",
165     "MemoryDownloader.h",
166     "NetworkConnectivityService.h",
167     "Predictor.h",
168     "PrivateBrowsingChannel.h",
169     "ProtocolHandlerInfo.h",
170     "RedirectChannelRegistrar.h",
171     "RequestContextService.h",
172     "SimpleChannelParent.h",
173     "SSLTokensCache.h",
174     "ThrottleQueue.h",
177 UNIFIED_SOURCES += [
178     "ArrayBufferInputStream.cpp",
179     "BackgroundFileSaver.cpp",
180     "CaptivePortalService.cpp",
181     "Dashboard.cpp",
182     "DefaultURI.cpp",
183     "EventTokenBucket.cpp",
184     "InterceptionInfo.cpp",
185     "IOActivityMonitor.cpp",
186     "LoadContextInfo.cpp",
187     "LoadInfo.cpp",
188     "MemoryDownloader.cpp",
189     "NetworkConnectivityService.cpp",
190     "NetworkDataCountLayer.cpp",
191     "nsAsyncRedirectVerifyHelper.cpp",
192     "nsAsyncStreamCopier.cpp",
193     "nsAuthInformationHolder.cpp",
194     "nsBase64Encoder.cpp",
195     "nsBaseChannel.cpp",
196     "nsBaseContentStream.cpp",
197     "nsBufferedStreams.cpp",
198     "nsDirectoryIndexStream.cpp",
199     "nsDNSPrefetch.cpp",
200     "nsDownloader.cpp",
201     "nsFileStreams.cpp",
202     "nsIncrementalDownload.cpp",
203     "nsIncrementalStreamLoader.cpp",
204     "nsInputStreamChannel.cpp",
205     "nsInputStreamPump.cpp",
206     "nsIOService.cpp",
207     "nsIURIMutatorUtils.cpp",
208     "nsLoadGroup.cpp",
209     "nsMIMEInputStream.cpp",
210     "nsNetAddr.cpp",
211     "nsNetUtil.cpp",
212     "nsPACMan.cpp",
213     "nsPreloadedStream.cpp",
214     "nsProtocolProxyService.cpp",
215     "nsProxyInfo.cpp",
216     "nsRedirectHistoryEntry.cpp",
217     "nsRequestObserverProxy.cpp",
218     "nsSerializationHelper.cpp",
219     "nsServerSocket.cpp",
220     "nsSimpleNestedURI.cpp",
221     "nsSimpleStreamListener.cpp",
222     "nsSimpleURI.cpp",
223     "nsSocketTransport2.cpp",
224     "nsSocketTransportService2.cpp",
225     "nsStandardURL.cpp",
226     "nsStreamListenerTee.cpp",
227     "nsStreamListenerWrapper.cpp",
228     "nsStreamLoader.cpp",
229     "nsStreamTransportService.cpp",
230     "nsSyncStreamListener.cpp",
231     "nsTransportUtils.cpp",
232     "nsUDPSocket.cpp",
233     "PollableEvent.cpp",
234     "Predictor.cpp",
235     "ProtocolHandlerInfo.cpp",
236     "ProxyAutoConfig.cpp",
237     "RedirectChannelRegistrar.cpp",
238     "RequestContextService.cpp",
239     "SimpleBuffer.cpp",
240     "SimpleChannel.cpp",
241     "SimpleChannelParent.cpp",
242     "SSLTokensCache.cpp",
243     "ThrottleQueue.cpp",
244     "Tickler.cpp",
245     "TLSServerSocket.cpp",
246     "TRRLoadInfo.cpp",
249 if CONFIG["FUZZING"]:
250     SOURCES += [
251         "FuzzyLayer.cpp",
252         "FuzzySecurityInfo.cpp",
253         "FuzzySocketControl.cpp",
254     ]
256 if CONFIG["FUZZING_INTERFACES"] and CONFIG["LIBFUZZER"]:
257     include("/tools/fuzzing/libfuzzer-flags.mozbuild")
258     SOURCES += [
259         "nsMediaFragmentURIParser.cpp",
260         "nsURLHelper.cpp",
261         "nsURLParsers.cpp",
262     ]
263     SOURCES["nsMediaFragmentURIParser.cpp"].flags += libfuzzer_flags
264     SOURCES["nsURLHelper.cpp"].flags += libfuzzer_flags
265     SOURCES["nsURLParsers.cpp"].flags += libfuzzer_flags
266 else:
267     UNIFIED_SOURCES += [
268         "nsMediaFragmentURIParser.cpp",
269         "nsURLHelper.cpp",
270         "nsURLParsers.cpp",
271     ]
274 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
275     SOURCES += [
276         "nsURLHelperWin.cpp",
277         "ShutdownLayer.cpp",
278     ]
279 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
280     SOURCES += [
281         "nsURLHelperOSX.cpp",
282     ]
283 else:
284     SOURCES += [
285         "nsURLHelperUnix.cpp",
286     ]
288 # nsINetworkInfoService support.
289 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
290     SOURCES += [
291         "NetworkInfoServiceWindows.cpp",
292         "nsNetworkInfoService.cpp",
293     ]
294 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
295     SOURCES += [
296         "NetworkInfoServiceCocoa.cpp",
297         "nsNetworkInfoService.cpp",
298     ]
299 elif CONFIG["OS_ARCH"] == "Linux":
300     SOURCES += [
301         "NetworkInfoServiceLinux.cpp",
302         "nsNetworkInfoService.cpp",
303     ]
305 EXTRA_JS_MODULES += [
306     "NetUtil.sys.mjs",
309 DIRS += ["mozurl", "rust-helper", "http-sfv"]
311 include("/ipc/chromium/chromium-config.mozbuild")
313 FINAL_LIBRARY = "xul"
315 LOCAL_INCLUDES += [
316     "!/xpcom/components",
317     "/docshell/base",
318     "/dom/base",
319     "/js/xpconnect/src",
320     "/netwerk/dns",
321     "/netwerk/protocol/http",
322     "/netwerk/protocol/webtransport",
323     "/netwerk/socket",
324     "/netwerk/url-classifier",
325     "/security/manager/ssl",
326     "/xpcom/components",
329 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
330     LOCAL_INCLUDES += [
331         "/xpcom/base",
332     ]
334 GeneratedFile(
335     "ascii_pac_utils.inc", script="makecppstring.py", inputs=["ascii_pac_utils.js"]