Bug 1526591 - Remove devtools.inspector.shapesHighlighter.enabled pref. r=rcaliman
[gecko.git] / netwerk / base / moz.build
blobf1fc40656a317b0860733c54ef086c7a6159ea8e
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     'nsIApplicationCache.idl',
10     'nsIApplicationCacheChannel.idl',
11     'nsIApplicationCacheContainer.idl',
12     'nsIApplicationCacheService.idl',
13     'nsIArrayBufferInputStream.idl',
14     'nsIAsyncStreamCopier.idl',
15     'nsIAsyncStreamCopier2.idl',
16     'nsIAsyncVerifyRedirectCallback.idl',
17     'nsIAuthInformation.idl',
18     'nsIAuthModule.idl',
19     'nsIAuthPrompt.idl',
20     'nsIAuthPrompt2.idl',
21     'nsIAuthPromptAdapterFactory.idl',
22     'nsIAuthPromptCallback.idl',
23     'nsIAuthPromptProvider.idl',
24     'nsIBackgroundFileSaver.idl',
25     'nsIBufferedStreams.idl',
26     'nsIByteRangeRequest.idl',
27     'nsICacheInfoChannel.idl',
28     'nsICachingChannel.idl',
29     'nsICancelable.idl',
30     'nsICaptivePortalService.idl',
31     'nsIChannel.idl',
32     'nsIChannelEventSink.idl',
33     'nsIChannelWithDivertableParentListener.idl',
34     'nsIChildChannel.idl',
35     'nsIClassifiedChannel.idl',
36     'nsIClassOfService.idl',
37     'nsIContentSniffer.idl',
38     'nsIDashboard.idl',
39     'nsIDashboardEventNotifier.idl',
40     'nsIDeprecationWarner.idl',
41     'nsIDHCPClient.idl',
42     'nsIDivertableChannel.idl',
43     'nsIDownloader.idl',
44     'nsIEncodedChannel.idl',
45     'nsIExternalProtocolHandler.idl',
46     'nsIFileStreams.idl',
47     'nsIFileURL.idl',
48     'nsIForcePendingChannel.idl',
49     'nsIFormPOSTActionChannel.idl',
50     'nsIHttpAuthenticatorCallback.idl',
51     'nsIHttpPushListener.idl',
52     'nsIIncrementalDownload.idl',
53     'nsIIncrementalStreamLoader.idl',
54     'nsIInputStreamChannel.idl',
55     'nsIInputStreamPump.idl',
56     'nsIIOService.idl',
57     'nsILoadContextInfo.idl',
58     'nsILoadGroup.idl',
59     'nsILoadGroupChild.idl',
60     'nsILoadInfo.idl',
61     'nsIMIMEInputStream.idl',
62     'nsIMultiPartChannel.idl',
63     'nsINestedURI.idl',
64     'nsINetAddr.idl',
65     'nsINetUtil.idl',
66     'nsINetworkConnectivityService.idl',
67     'nsINetworkInfoService.idl',
68     'nsINetworkInterceptController.idl',
69     'nsINetworkLinkService.idl',
70     'nsINetworkPredictor.idl',
71     'nsINetworkPredictorVerifier.idl',
72     'nsINullChannel.idl',
73     'nsIParentChannel.idl',
74     'nsIParentRedirectingChannel.idl',
75     'nsIPermission.idl',
76     'nsIPermissionManager.idl',
77     'nsIPrivateBrowsingChannel.idl',
78     'nsIProgressEventSink.idl',
79     'nsIPrompt.idl',
80     'nsIProtocolHandler.idl',
81     'nsIProtocolProxyCallback.idl',
82     'nsIProtocolProxyFilter.idl',
83     'nsIProtocolProxyService.idl',
84     'nsIProtocolProxyService2.idl',
85     'nsIProxiedChannel.idl',
86     'nsIProxiedProtocolHandler.idl',
87     'nsIProxyInfo.idl',
88     'nsIRandomGenerator.idl',
89     'nsIRedirectChannelRegistrar.idl',
90     'nsIRedirectHistoryEntry.idl',
91     'nsIRedirectResultListener.idl',
92     'nsIRequest.idl',
93     'nsIRequestContext.idl',
94     'nsIRequestObserver.idl',
95     'nsIRequestObserverProxy.idl',
96     'nsIResumableChannel.idl',
97     'nsISecCheckWrapChannel.idl',
98     'nsISecureBrowserUI.idl',
99     'nsISensitiveInfoHiddenURI.idl',
100     'nsISerializationHelper.idl',
101     'nsIServerSocket.idl',
102     'nsISimpleStreamListener.idl',
103     'nsISocketFilter.idl',
104     'nsISocketTransport.idl',
105     'nsISocketTransportService.idl',
106     'nsISpeculativeConnect.idl',
107     'nsIStandardURL.idl',
108     'nsIStreamListener.idl',
109     'nsIStreamListenerTee.idl',
110     'nsIStreamLoader.idl',
111     'nsIStreamTransportService.idl',
112     'nsISyncStreamListener.idl',
113     'nsISystemProxySettings.idl',
114     'nsIThreadRetargetableRequest.idl',
115     'nsIThreadRetargetableStreamListener.idl',
116     'nsIThrottledInputChannel.idl',
117     'nsITimedChannel.idl',
118     'nsITLSServerSocket.idl',
119     'nsITraceableChannel.idl',
120     'nsITransport.idl',
121     'nsIUDPSocket.idl',
122     'nsIUploadChannel.idl',
123     'nsIUploadChannel2.idl',
124     'nsIURI.idl',
125     'nsIURIMutator.idl',
126     'nsIURIWithSpecialOrigin.idl',
127     'nsIURL.idl',
128     'nsIURLParser.idl',
129     'nsPISocketTransportService.idl',
132 XPIDL_MODULE = 'necko'
134 EXPORTS += [
135     'netCore.h',
136     'nsASocketHandler.h',
137     'nsAsyncRedirectVerifyHelper.h',
138     'nsFileStreams.h',
139     'nsInputStreamPump.h',
140     'nsMIMEInputStream.h',
141     'nsNetUtil.h',
142     'nsReadLine.h',
143     'nsSerializationHelper.h',
144     'nsSimpleNestedURI.h',
145     'nsSimpleURI.h',
146     'nsStandardURL.h',
147     'nsStreamListenerWrapper.h',
148     'nsURIHashKey.h',
149     'nsURLHelper.h',
150     'nsURLParsers.h',
151     'SimpleChannel.h',
154 EXPORTS.mozilla += [
155     'LoadContextInfo.h',
156     'LoadInfo.h',
157     'LoadTainting.h',
158     'nsRedirectHistoryEntry.h',
161 EXPORTS.mozilla.net += [
162     'CaptivePortalService.h',
163     'ChannelDiverterChild.h',
164     'ChannelDiverterParent.h',
165     'Dashboard.h',
166     'DashboardTypes.h',
167     'IOActivityMonitor.h',
168     'MemoryDownloader.h',
169     'NetworkConnectivityService.h',
170     'PartiallySeekableInputStream.h',
171     'Predictor.h',
172     'RedirectChannelRegistrar.h',
173     'ReferrerPolicy.h',
174     'RequestContextService.h',
175     'SimpleChannelParent.h',
176     'TCPFastOpen.h',
179 UNIFIED_SOURCES += [
180     'ArrayBufferInputStream.cpp',
181     'BackgroundFileSaver.cpp',
182     'CaptivePortalService.cpp',
183     'ChannelDiverterChild.cpp',
184     'ChannelDiverterParent.cpp',
185     'Dashboard.cpp',
186     'EventTokenBucket.cpp',
187     'IOActivityMonitor.cpp',
188     'LoadContextInfo.cpp',
189     'LoadInfo.cpp',
190     'MemoryDownloader.cpp',
191     'NetworkConnectivityService.cpp',
192     'nsAsyncRedirectVerifyHelper.cpp',
193     'nsAsyncStreamCopier.cpp',
194     'nsAuthInformationHolder.cpp',
195     'nsBase64Encoder.cpp',
196     'nsBaseChannel.cpp',
197     'nsBaseContentStream.cpp',
198     'nsBufferedStreams.cpp',
199     'nsDirectoryIndexStream.cpp',
200     'nsDNSPrefetch.cpp',
201     'nsDownloader.cpp',
202     'nsFileStreams.cpp',
203     'nsIncrementalDownload.cpp',
204     'nsIncrementalStreamLoader.cpp',
205     'nsInputStreamChannel.cpp',
206     'nsInputStreamPump.cpp',
207     'nsIOService.cpp',
208     'nsIURIMutatorUtils.cpp',
209     'nsLoadGroup.cpp',
210     'nsMediaFragmentURIParser.cpp',
211     'nsMIMEInputStream.cpp',
212     'nsNetAddr.cpp',
213     'nsNetUtil.cpp',
214     'nsPACMan.cpp',
215     'nsPreloadedStream.cpp',
216     'nsProtocolProxyService.cpp',
217     'nsProxyInfo.cpp',
218     'nsRedirectHistoryEntry.cpp',
219     'nsRequestObserverProxy.cpp',
220     'nsSecCheckWrapChannel.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     'nsURLHelper.cpp',
237     'nsURLParsers.cpp',
238     'PartiallySeekableInputStream.cpp',
239     'PollableEvent.cpp',
240     'Predictor.cpp',
241     'ProxyAutoConfig.cpp',
242     'RedirectChannelRegistrar.cpp',
243     'RequestContextService.cpp',
244     'SimpleBuffer.cpp',
245     'SimpleChannel.cpp',
246     'SimpleChannelParent.cpp',
247     'TCPFastOpenLayer.cpp',
248     'ThrottleQueue.cpp',
249     'Tickler.cpp',
250     'TLSServerSocket.cpp',
253 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
254     SOURCES += [
255         'nsURLHelperWin.cpp',
256         'ShutdownLayer.cpp',
257     ]
258 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
259     SOURCES += [
260         'nsURLHelperOSX.cpp',
261     ]
262 else:
263     SOURCES += [
264         'nsURLHelperUnix.cpp',
265     ]
267 # nsINetworkInfoService support.
268 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
269     SOURCES += [
270         'NetworkInfoServiceWindows.cpp',
271         'nsNetworkInfoService.cpp',
272     ]
273 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
274     SOURCES += [
275         'NetworkInfoServiceCocoa.cpp',
276         'nsNetworkInfoService.cpp',
277     ]
278 elif CONFIG['OS_ARCH'] == 'Linux':
279     SOURCES += [
280         'NetworkInfoServiceLinux.cpp',
281         'nsNetworkInfoService.cpp',
282     ]
284 EXTRA_JS_MODULES += [
285     'NetUtil.jsm',
288 DIRS += [ 'mozurl' ]
290 include('/ipc/chromium/chromium-config.mozbuild')
292 FINAL_LIBRARY = 'xul'
294 LOCAL_INCLUDES += [
295     '/docshell/base',
296     '/dom/base',
297     '/netwerk/protocol/http',
298     '/netwerk/socket',
299     '/netwerk/url-classifier',
302 if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
303     CXXFLAGS += ['-Wno-error=shadow']
305 if CONFIG['CC_TYPE'] == 'clang-cl':
306     AllowCompilerWarnings()  # workaround for bug 1090497