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