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
'nsIProcessSwitchRequestor.idl',
79
'nsIProgressEventSink.idl',
80
'nsIPrompt.idl',
81
'nsIProtocolHandler.idl',
82
'nsIProtocolProxyCallback.idl',
83
'nsIProtocolProxyFilter.idl',
84
'nsIProtocolProxyService.idl',
85
'nsIProtocolProxyService2.idl',
86
'nsIProxiedChannel.idl',
87
'nsIProxiedProtocolHandler.idl',
88
'nsIProxyInfo.idl',
89
'nsIRandomGenerator.idl',
90
'nsIRedirectChannelRegistrar.idl',
91
'nsIRedirectHistoryEntry.idl',
92
'nsIRedirectResultListener.idl',
93
'nsIRequest.idl',
94
'nsIRequestContext.idl',
95
'nsIRequestObserver.idl',
96
'nsIRequestObserverProxy.idl',
97
'nsIResumableChannel.idl',
98
'nsISecCheckWrapChannel.idl',
99
'nsISecureBrowserUI.idl',
100
'nsISensitiveInfoHiddenURI.idl',
101
'nsISerializationHelper.idl',
102
'nsIServerSocket.idl',
103
'nsISimpleStreamListener.idl',
104
'nsISocketFilter.idl',
105
'nsISocketTransport.idl',
106
'nsISocketTransportService.idl',
107
'nsISpeculativeConnect.idl',
108
'nsIStandardURL.idl',
109
'nsIStreamListener.idl',
110
'nsIStreamListenerTee.idl',
111
'nsIStreamLoader.idl',
112
'nsIStreamTransportService.idl',
113
'nsISyncStreamListener.idl',
114
'nsISystemProxySettings.idl',
115
'nsIThreadRetargetableRequest.idl',
116
'nsIThreadRetargetableStreamListener.idl',
117
'nsIThrottledInputChannel.idl',
118
'nsITimedChannel.idl',
119
'nsITLSServerSocket.idl',
120
'nsITraceableChannel.idl',
121
'nsITransport.idl',
122
'nsIUDPSocket.idl',
123
'nsIUploadChannel.idl',
124
'nsIUploadChannel2.idl',
125
'nsIURI.idl',
126
'nsIURIMutator.idl',
127
'nsIURIWithSpecialOrigin.idl',
128
'nsIURL.idl',
129
'nsIURLParser.idl',
130
'nsPISocketTransportService.idl',
131
]
132
133
XPIDL_MODULE = 'necko'
134
135
EXPORTS += [
136
'netCore.h',
137
'nsASocketHandler.h',
138
'nsAsyncRedirectVerifyHelper.h',
139
'nsBaseChannel.h',
140
'nsFileStreams.h',
141
'nsInputStreamPump.h',
142
'nsMIMEInputStream.h',
143
'nsNetUtil.h',
144
'nsReadLine.h',
145
'nsSerializationHelper.h',
146
'nsSimpleNestedURI.h',
147
'nsSimpleURI.h',
148
'nsStandardURL.h',
149
'nsStreamListenerWrapper.h',
150
'nsURIHashKey.h',
151
'nsURLHelper.h',
152
'nsURLParsers.h',
153
'SimpleChannel.h',
154
]
155
156
EXPORTS.mozilla += [
157
'LoadContextInfo.h',
158
'LoadInfo.h',
159
'LoadTainting.h',
160
'nsRedirectHistoryEntry.h',
161
]
162
163
EXPORTS.mozilla.net += [
164
'CaptivePortalService.h',
165
'ChannelDiverterChild.h',
166
'ChannelDiverterParent.h',
167
'Dashboard.h',
168
'DashboardTypes.h',
169
'IOActivityMonitor.h',
170
'MemoryDownloader.h',
171
'NetworkConnectivityService.h',
172
'PartiallySeekableInputStream.h',
173
'Predictor.h',
174
'PrivateBrowsingChannel.h',
175
'RedirectChannelRegistrar.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
'IOActivityMonitor.cpp',
191
'LoadContextInfo.cpp',
192
'LoadInfo.cpp',
193
'MemoryDownloader.cpp',
194
'NetworkConnectivityService.cpp',
195
'nsAsyncRedirectVerifyHelper.cpp',
196
'nsAsyncStreamCopier.cpp',
197
'nsAuthInformationHolder.cpp',
198
'nsBase64Encoder.cpp',
199
'nsBaseChannel.cpp',
200
'nsBaseContentStream.cpp',
201
'nsBufferedStreams.cpp',
202
'nsDirectoryIndexStream.cpp',
203
'nsDNSPrefetch.cpp',
204
'nsDownloader.cpp',
205
'nsFileStreams.cpp',
206
'nsIncrementalDownload.cpp',
207
'nsIncrementalStreamLoader.cpp',
208
'nsInputStreamChannel.cpp',
209
'nsInputStreamPump.cpp',
210
'nsIOService.cpp',
211
'nsIURIMutatorUtils.cpp',
212
'nsLoadGroup.cpp',
213
'nsMIMEInputStream.cpp',
214
'nsNetAddr.cpp',
215
'nsNetUtil.cpp',
216
'nsPACMan.cpp',
217
'nsPreloadedStream.cpp',
218
'nsProtocolProxyService.cpp',
219
'nsProxyInfo.cpp',
220
'nsRedirectHistoryEntry.cpp',
221
'nsRequestObserverProxy.cpp',
222
'nsSerializationHelper.cpp',
223
'nsServerSocket.cpp',
224
'nsSimpleNestedURI.cpp',
225
'nsSimpleStreamListener.cpp',
226
'nsSimpleURI.cpp',
227
'nsSocketTransport2.cpp',
228
'nsSocketTransportService2.cpp',
229
'nsStandardURL.cpp',
230
'nsStreamListenerTee.cpp',
231
'nsStreamListenerWrapper.cpp',
232
'nsStreamLoader.cpp',
233
'nsStreamTransportService.cpp',
234
'nsSyncStreamListener.cpp',
235
'nsTransportUtils.cpp',
236
'nsUDPSocket.cpp',
237
'PartiallySeekableInputStream.cpp',
238
'PollableEvent.cpp',
239
'Predictor.cpp',
240
'ProxyAutoConfig.cpp',
241
'RedirectChannelRegistrar.cpp',
242
'RequestContextService.cpp',
243
'SimpleBuffer.cpp',
244
'SimpleChannel.cpp',
245
'SimpleChannelParent.cpp',
246
'SSLTokensCache.cpp',
247
'TCPFastOpenLayer.cpp',
248
'ThrottleQueue.cpp',
249
'Tickler.cpp',
250
'TLSServerSocket.cpp',
251
]
252
253
if CONFIG['FUZZING']:
254
SOURCES += [
255
'FuzzyLayer.cpp',
256
'FuzzySecurityInfo.cpp',
257
]
258
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
]
275
276
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
]
290
291
# nsINetworkInfoService support.
292
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
293
SOURCES += [
294
'NetworkInfoServiceWindows.cpp',
295
'nsNetworkInfoService.cpp',
296
]
297
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
298
SOURCES += [
299
'NetworkInfoServiceCocoa.cpp',
300
'nsNetworkInfoService.cpp',
301
]
302
elif CONFIG['OS_ARCH'] == 'Linux':
303
SOURCES += [
304
'NetworkInfoServiceLinux.cpp',
305
'nsNetworkInfoService.cpp',
306
]
307
308
EXTRA_JS_MODULES += [
309
'NetUtil.jsm',
310
]
311
312
DIRS += [ 'mozurl' ]
313
314
include('/ipc/chromium/chromium-config.mozbuild')
315
316
FINAL_LIBRARY = 'xul'
317
318
LOCAL_INCLUDES += [
319
'/docshell/base',
320
'/dom/base',
321
'/extensions/permissions',
322
'/netwerk/protocol/http',
323
'/netwerk/socket',
324
'/netwerk/url-classifier',
325
'/security/manager/ssl',
326
]
327
328
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
329
LOCAL_INCLUDES += [
330
'/xpcom/base',
331
]
332
333
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
334
CXXFLAGS += ['-Wno-error=shadow']