Source code

Revision control

Other Tools

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/.
6
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',
130
]
131
132
XPIDL_MODULE = 'necko'
133
134
EXPORTS += [
135
'netCore.h',
136
'nsASocketHandler.h',
137
'nsAsyncRedirectVerifyHelper.h',
138
'nsBaseChannel.h',
139
'nsFileStreams.h',
140
'nsInputStreamPump.h',
141
'nsMIMEInputStream.h',
142
'nsNetUtil.h',
143
'nsReadLine.h',
144
'nsSerializationHelper.h',
145
'nsSimpleNestedURI.h',
146
'nsSimpleURI.h',
147
'nsStandardURL.h',
148
'nsStreamListenerWrapper.h',
149
'nsURIHashKey.h',
150
'nsURLHelper.h',
151
'nsURLParsers.h',
152
'SimpleChannel.h',
153
]
154
155
EXPORTS.mozilla += [
156
'LoadContextInfo.h',
157
'LoadInfo.h',
158
'LoadTainting.h',
159
'nsRedirectHistoryEntry.h',
160
]
161
162
EXPORTS.mozilla.net += [
163
'CaptivePortalService.h',
164
'ChannelDiverterChild.h',
165
'ChannelDiverterParent.h',
166
'Dashboard.h',
167
'DashboardTypes.h',
168
'IOActivityMonitor.h',
169
'MemoryDownloader.h',
170
'NetworkConnectivityService.h',
171
'PartiallySeekableInputStream.h',
172
'Predictor.h',
173
'PrivateBrowsingChannel.h',
174
'RedirectChannelRegistrar.h',
175
'ReferrerPolicy.h',
176
'RequestContextService.h',
177
'SimpleChannelParent.h',
178
'SSLTokensCache.h',
179
'TCPFastOpen.h',
180
]
181
182
UNIFIED_SOURCES += [
183
'ArrayBufferInputStream.cpp',
184
'BackgroundFileSaver.cpp',
185
'CaptivePortalService.cpp',
186
'ChannelDiverterChild.cpp',
187
'ChannelDiverterParent.cpp',
188
'Dashboard.cpp',
189
'EventTokenBucket.cpp',
190
'FuzzyLayer.cpp',
191
'IOActivityMonitor.cpp',
192
'LoadContextInfo.cpp',
193
'LoadInfo.cpp',
194
'MemoryDownloader.cpp',
195
'NetworkConnectivityService.cpp',
196
'nsAsyncRedirectVerifyHelper.cpp',
197
'nsAsyncStreamCopier.cpp',
198
'nsAuthInformationHolder.cpp',
199
'nsBase64Encoder.cpp',
200
'nsBaseChannel.cpp',
201
'nsBaseContentStream.cpp',
202
'nsBufferedStreams.cpp',
203
'nsDirectoryIndexStream.cpp',
204
'nsDNSPrefetch.cpp',
205
'nsDownloader.cpp',
206
'nsFileStreams.cpp',
207
'nsIncrementalDownload.cpp',
208
'nsIncrementalStreamLoader.cpp',
209
'nsInputStreamChannel.cpp',
210
'nsInputStreamPump.cpp',
211
'nsIOService.cpp',
212
'nsIURIMutatorUtils.cpp',
213
'nsLoadGroup.cpp',
214
'nsMIMEInputStream.cpp',
215
'nsNetAddr.cpp',
216
'nsNetUtil.cpp',
217
'nsPACMan.cpp',
218
'nsPreloadedStream.cpp',
219
'nsProtocolProxyService.cpp',
220
'nsProxyInfo.cpp',
221
'nsRedirectHistoryEntry.cpp',
222
'nsRequestObserverProxy.cpp',
223
'nsSerializationHelper.cpp',
224
'nsServerSocket.cpp',
225
'nsSimpleNestedURI.cpp',
226
'nsSimpleStreamListener.cpp',
227
'nsSimpleURI.cpp',
228
'nsSocketTransport2.cpp',
229
'nsSocketTransportService2.cpp',
230
'nsStandardURL.cpp',
231
'nsStreamListenerTee.cpp',
232
'nsStreamListenerWrapper.cpp',
233
'nsStreamLoader.cpp',
234
'nsStreamTransportService.cpp',
235
'nsSyncStreamListener.cpp',
236
'nsTransportUtils.cpp',
237
'nsUDPSocket.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
'SSLTokensCache.cpp',
248
'TCPFastOpenLayer.cpp',
249
'ThrottleQueue.cpp',
250
'Tickler.cpp',
251
'TLSServerSocket.cpp',
252
]
253
254
if CONFIG['FUZZING_INTERFACES'] and CONFIG['LIBFUZZER']:
255
include('/tools/fuzzing/libfuzzer-flags.mozbuild')
256
SOURCES += [
257
'nsMediaFragmentURIParser.cpp',
258
'nsURLHelper.cpp',
259
'nsURLParsers.cpp',
260
]
261
SOURCES['nsMediaFragmentURIParser.cpp'].flags += libfuzzer_flags
262
SOURCES['nsURLHelper.cpp'].flags += libfuzzer_flags
263
SOURCES['nsURLParsers.cpp'].flags += libfuzzer_flags
264
else:
265
UNIFIED_SOURCES += [
266
'nsMediaFragmentURIParser.cpp',
267
'nsURLHelper.cpp',
268
'nsURLParsers.cpp',
269
]
270
271
272
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
273
SOURCES += [
274
'nsURLHelperWin.cpp',
275
'ShutdownLayer.cpp',
276
]
277
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
278
SOURCES += [
279
'nsURLHelperOSX.cpp',
280
]
281
else:
282
SOURCES += [
283
'nsURLHelperUnix.cpp',
284
]
285
286
# nsINetworkInfoService support.
287
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
288
SOURCES += [
289
'NetworkInfoServiceWindows.cpp',
290
'nsNetworkInfoService.cpp',
291
]
292
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
293
SOURCES += [
294
'NetworkInfoServiceCocoa.cpp',
295
'nsNetworkInfoService.cpp',
296
]
297
elif CONFIG['OS_ARCH'] == 'Linux':
298
SOURCES += [
299
'NetworkInfoServiceLinux.cpp',
300
'nsNetworkInfoService.cpp',
301
]
302
303
EXTRA_JS_MODULES += [
304
'NetUtil.jsm',
305
]
306
307
DIRS += [ 'mozurl' ]
308
309
include('/ipc/chromium/chromium-config.mozbuild')
310
311
FINAL_LIBRARY = 'xul'
312
313
LOCAL_INCLUDES += [
314
'/docshell/base',
315
'/dom/base',
316
'/netwerk/protocol/http',
317
'/netwerk/socket',
318
'/netwerk/url-classifier',
319
]
320
321
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
322
LOCAL_INCLUDES += [
323
'/xpcom/base',
324
]
325
326
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
327
CXXFLAGS += ['-Wno-error=shadow']