Backed out 2 changesets (bug 1943998) for causing wd failures @ phases.py CLOSED...
[gecko.git] / netwerk / base / moz.build
blob9cc95cb3fed9e0255e19dd82cd3fa8c7ce8a8ae6
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     "nsIMockNetworkLayerController.idl",
58     "nsIMultiPartChannel.idl",
59     "nsINestedURI.idl",
60     "nsINetAddr.idl",
61     "nsINetUtil.idl",
62     "nsINetworkConnectivityService.idl",
63     "nsINetworkInfoService.idl",
64     "nsINetworkInterceptController.idl",
65     "nsINetworkLinkService.idl",
66     "nsINetworkPredictor.idl",
67     "nsINetworkPredictorVerifier.idl",
68     "nsINullChannel.idl",
69     "nsIParentChannel.idl",
70     "nsIParentRedirectingChannel.idl",
71     "nsIPermission.idl",
72     "nsIPermissionManager.idl",
73     "nsIPrivateBrowsingChannel.idl",
74     "nsIProgressEventSink.idl",
75     "nsIPrompt.idl",
76     "nsIProtocolHandler.idl",
77     "nsIProtocolProxyCallback.idl",
78     "nsIProtocolProxyFilter.idl",
79     "nsIProtocolProxyService.idl",
80     "nsIProtocolProxyService2.idl",
81     "nsIProxiedChannel.idl",
82     "nsIProxiedProtocolHandler.idl",
83     "nsIProxyInfo.idl",
84     "nsIRandomGenerator.idl",
85     "nsIRedirectChannelRegistrar.idl",
86     "nsIRedirectHistoryEntry.idl",
87     "nsIRedirectResultListener.idl",
88     "nsIRequest.idl",
89     "nsIRequestContext.idl",
90     "nsIRequestObserver.idl",
91     "nsIRequestObserverProxy.idl",
92     "nsIResumableChannel.idl",
93     "nsISecCheckWrapChannel.idl",
94     "nsISecureBrowserUI.idl",
95     "nsISensitiveInfoHiddenURI.idl",
96     "nsISerializationHelper.idl",
97     "nsIServerSocket.idl",
98     "nsISimpleStreamListener.idl",
99     "nsISimpleURIMutator.idl",
100     "nsISocketFilter.idl",
101     "nsISocketTransport.idl",
102     "nsISocketTransportService.idl",
103     "nsISpeculativeConnect.idl",
104     "nsIStandardURL.idl",
105     "nsIStreamListener.idl",
106     "nsIStreamListenerTee.idl",
107     "nsIStreamLoader.idl",
108     "nsIStreamTransportService.idl",
109     "nsISyncStreamListener.idl",
110     "nsISystemProxySettings.idl",
111     "nsIThreadRetargetableRequest.idl",
112     "nsIThreadRetargetableStreamListener.idl",
113     "nsIThrottledInputChannel.idl",
114     "nsITimedChannel.idl",
115     "nsITLSServerSocket.idl",
116     "nsITraceableChannel.idl",
117     "nsITransport.idl",
118     "nsIUDPSocket.idl",
119     "nsIUploadChannel.idl",
120     "nsIUploadChannel2.idl",
121     "nsIURI.idl",
122     "nsIURIMutator.idl",
123     "nsIURIWithSpecialOrigin.idl",
124     "nsIURL.idl",
125     "nsIURLParser.idl",
126     "nsPISocketTransportService.idl",
129 XPIDL_MODULE = "necko"
131 EXPORTS += [
132     "netCore.h",
133     "nsASocketHandler.h",
134     "nsAsyncRedirectVerifyHelper.h",
135     "nsBaseChannel.h",
136     "nsFileStreams.h",
137     "nsInputStreamPump.h",
138     "nsMIMEInputStream.h",
139     "nsNetUtil.h",
140     "nsReadLine.h",
141     "nsSerializationHelper.h",
142     "nsSimpleNestedURI.h",
143     "nsSimpleURI.h",
144     "nsStandardURL.h",
145     "nsStreamListenerWrapper.h",
146     "nsURIHashKey.h",
147     "nsURLHelper.h",
148     "nsURLParsers.h",
149     "SimpleChannel.h",
152 EXPORTS.mozilla += [
153     "LoadContextInfo.h",
154     "LoadInfo.h",
155     "LoadTainting.h",
156     "nsRedirectHistoryEntry.h",
159 EXPORTS.mozilla.net += [
160     "CacheInfoIPCTypes.h",
161     "CaptivePortalService.h",
162     "ContentRange.h",
163     "Dashboard.h",
164     "DashboardTypes.h",
165     "DefaultURI.h",
166     "InterceptionInfo.h",
167     "IPv4Parser.h",
168     "MemoryDownloader.h",
169     "NetworkConnectivityService.h",
170     "Predictor.h",
171     "PrivateBrowsingChannel.h",
172     "ProtocolHandlerInfo.h",
173     "RedirectChannelRegistrar.h",
174     "RequestContextService.h",
175     "SimpleChannelParent.h",
176     "SimpleURIUnknownSchemes.h",
177     "SSLTokensCache.h",
178     "ThrottleQueue.h",
181 UNIFIED_SOURCES += [
182     "ArrayBufferInputStream.cpp",
183     "BackgroundFileSaver.cpp",
184     "CaptivePortalService.cpp",
185     "ContentRange.cpp",
186     "Dashboard.cpp",
187     "DefaultURI.cpp",
188     "EventTokenBucket.cpp",
189     "InterceptionInfo.cpp",
190     "IPv4Parser.cpp",
191     "LoadContextInfo.cpp",
192     "LoadInfo.cpp",
193     "MemoryDownloader.cpp",
194     "MockNetworkLayer.cpp",
195     "MockNetworkLayerController.cpp",
196     "NetworkConnectivityService.cpp",
197     "NetworkDataCountLayer.cpp",
198     "nsAsyncRedirectVerifyHelper.cpp",
199     "nsAsyncStreamCopier.cpp",
200     "nsAuthInformationHolder.cpp",
201     "nsBase64Encoder.cpp",
202     "nsBaseChannel.cpp",
203     "nsBaseContentStream.cpp",
204     "nsBufferedStreams.cpp",
205     "nsDirectoryIndexStream.cpp",
206     "nsDNSPrefetch.cpp",
207     "nsDownloader.cpp",
208     "nsFileStreams.cpp",
209     "nsIncrementalDownload.cpp",
210     "nsIncrementalStreamLoader.cpp",
211     "nsInputStreamChannel.cpp",
212     "nsInputStreamPump.cpp",
213     "nsIOService.cpp",
214     "nsIURIMutatorUtils.cpp",
215     "nsLoadGroup.cpp",
216     "nsMIMEInputStream.cpp",
217     "nsNetAddr.cpp",
218     "nsNetUtil.cpp",
219     "nsPACMan.cpp",
220     "nsPreloadedStream.cpp",
221     "nsProtocolProxyService.cpp",
222     "nsProxyInfo.cpp",
223     "nsRedirectHistoryEntry.cpp",
224     "nsRequestObserverProxy.cpp",
225     "nsSerializationHelper.cpp",
226     "nsServerSocket.cpp",
227     "nsSimpleNestedURI.cpp",
228     "nsSimpleStreamListener.cpp",
229     "nsSimpleURI.cpp",
230     "nsSocketTransport2.cpp",
231     "nsSocketTransportService2.cpp",
232     "nsStandardURL.cpp",
233     "nsStreamListenerTee.cpp",
234     "nsStreamListenerWrapper.cpp",
235     "nsStreamLoader.cpp",
236     "nsStreamTransportService.cpp",
237     "nsSyncStreamListener.cpp",
238     "nsTransportUtils.cpp",
239     "nsUDPSocket.cpp",
240     "PollableEvent.cpp",
241     "Predictor.cpp",
242     "ProtocolHandlerInfo.cpp",
243     "ProxyAutoConfig.cpp",
244     "RedirectChannelRegistrar.cpp",
245     "RequestContextService.cpp",
246     "SimpleBuffer.cpp",
247     "SimpleChannel.cpp",
248     "SimpleChannelParent.cpp",
249     "SimpleURIUnknownSchemes.cpp",
250     "SSLTokensCache.cpp",
251     "ThrottleQueue.cpp",
252     "Tickler.cpp",
253     "TLSServerSocket.cpp",
254     "TRRLoadInfo.cpp",
257 if CONFIG["FUZZING"]:
258     SOURCES += [
259         "FuzzyLayer.cpp",
260         "FuzzySecurityInfo.cpp",
261         "FuzzySocketControl.cpp",
262     ]
264 if CONFIG["FUZZING_INTERFACES"] and CONFIG["LIBFUZZER"]:
265     include("/tools/fuzzing/libfuzzer-flags.mozbuild")
266     SOURCES += [
267         "nsMediaFragmentURIParser.cpp",
268         "nsURLHelper.cpp",
269         "nsURLParsers.cpp",
270     ]
271     SOURCES["nsMediaFragmentURIParser.cpp"].flags += libfuzzer_flags
272     SOURCES["nsURLHelper.cpp"].flags += libfuzzer_flags
273     SOURCES["nsURLParsers.cpp"].flags += libfuzzer_flags
274 else:
275     UNIFIED_SOURCES += [
276         "nsMediaFragmentURIParser.cpp",
277         "nsURLHelper.cpp",
278         "nsURLParsers.cpp",
279     ]
282 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
283     SOURCES += [
284         "nsURLHelperWin.cpp",
285         "ShutdownLayer.cpp",
286     ]
287 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
288     SOURCES += [
289         "nsURLHelperOSX.cpp",
290     ]
291 else:
292     SOURCES += [
293         "nsURLHelperUnix.cpp",
294     ]
296 EXTRA_JS_MODULES += [
297     "NetUtil.sys.mjs",
298     "SimpleURIUnknownSchemesRemoteObserver.sys.mjs",
301 DIRS += ["mozurl", "rust-helper", "http-sfv", "idna_glue"]
303 include("/ipc/chromium/chromium-config.mozbuild")
305 FINAL_LIBRARY = "xul"
307 LOCAL_INCLUDES += [
308     "!/xpcom/components",
309     "/docshell/base",
310     "/dom/base",
311     "/js/xpconnect/src",
312     "/netwerk/dns",
313     "/netwerk/protocol/http",
314     "/netwerk/protocol/webtransport",
315     "/netwerk/socket",
316     "/netwerk/url-classifier",
317     "/security/manager/ssl",
318     "/xpcom/components",
321 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
322     LOCAL_INCLUDES += [
323         "/xpcom/base",
324     ]
326 GeneratedFile(
327     "ascii_pac_utils.inc", script="makecppstring.py", inputs=["ascii_pac_utils.js"]