moz.build (8860B)
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 "nsIAndroidContentInputStream.idl", 10 "nsIArrayBufferInputStream.idl", 11 "nsIAsyncStreamCopier.idl", 12 "nsIAsyncStreamCopier2.idl", 13 "nsIAsyncVerifyRedirectCallback.idl", 14 "nsIAuthInformation.idl", 15 "nsIAuthModule.idl", 16 "nsIAuthPrompt.idl", 17 "nsIAuthPrompt2.idl", 18 "nsIAuthPromptAdapterFactory.idl", 19 "nsIAuthPromptCallback.idl", 20 "nsIAuthPromptProvider.idl", 21 "nsIBackgroundFileSaver.idl", 22 "nsIBaseChannel.idl", 23 "nsIBufferedStreams.idl", 24 "nsIByteRangeRequest.idl", 25 "nsICacheInfoChannel.idl", 26 "nsICachingChannel.idl", 27 "nsICancelable.idl", 28 "nsICaptivePortalService.idl", 29 "nsIChannel.idl", 30 "nsIChannelEventSink.idl", 31 "nsIChildChannel.idl", 32 "nsIClassifiedChannel.idl", 33 "nsIClassOfService.idl", 34 "nsIContentSniffer.idl", 35 "nsIDashboard.idl", 36 "nsIDashboardEventNotifier.idl", 37 "nsIDHCPClient.idl", 38 "nsIDownloader.idl", 39 "nsIEncodedChannel.idl", 40 "nsIExternalProtocolHandler.idl", 41 "nsIFileStreams.idl", 42 "nsIFileURL.idl", 43 "nsIForcePendingChannel.idl", 44 "nsIFormPOSTActionChannel.idl", 45 "nsIHttpAuthenticatorCallback.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 "nsINullChannel.idl", 67 "nsIParentChannel.idl", 68 "nsIParentRedirectingChannel.idl", 69 "nsIPermission.idl", 70 "nsIPermissionManager.idl", 71 "nsIPrivateBrowsingChannel.idl", 72 "nsIProgressEventSink.idl", 73 "nsIPrompt.idl", 74 "nsIProtocolHandler.idl", 75 "nsIProtocolProxyCallback.idl", 76 "nsIProtocolProxyFilter.idl", 77 "nsIProtocolProxyService.idl", 78 "nsIProtocolProxyService2.idl", 79 "nsIProxiedChannel.idl", 80 "nsIProxiedProtocolHandler.idl", 81 "nsIProxyInfo.idl", 82 "nsIRandomGenerator.idl", 83 "nsIRedirectChannelRegistrar.idl", 84 "nsIRedirectHistoryEntry.idl", 85 "nsIRedirectResultListener.idl", 86 "nsIRequest.idl", 87 "nsIRequestContext.idl", 88 "nsIRequestObserver.idl", 89 "nsIRequestObserverProxy.idl", 90 "nsIResumableChannel.idl", 91 "nsISecCheckWrapChannel.idl", 92 "nsISecureBrowserUI.idl", 93 "nsISensitiveInfoHiddenURI.idl", 94 "nsISerializationHelper.idl", 95 "nsIServerSocket.idl", 96 "nsISimpleStreamListener.idl", 97 "nsISimpleURIMutator.idl", 98 "nsISocketFilter.idl", 99 "nsISocketTransport.idl", 100 "nsISocketTransportService.idl", 101 "nsISpeculativeConnect.idl", 102 "nsIStandardURL.idl", 103 "nsIStreamListener.idl", 104 "nsIStreamListenerTee.idl", 105 "nsIStreamLoader.idl", 106 "nsIStreamTransportService.idl", 107 "nsISuspendableChannelWrapper.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", 126 ] 127 128 XPIDL_MODULE = "necko" 129 130 EXPORTS += [ 131 "netCore.h", 132 "nsASocketHandler.h", 133 "nsAsyncRedirectVerifyHelper.h", 134 "nsBaseChannel.h", 135 "nsBaseParentChannel.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", 150 ] 151 152 EXPORTS.mozilla += [ 153 "LoadContextInfo.h", 154 "LoadInfo.h", 155 "LoadTainting.h", 156 "nsRedirectHistoryEntry.h", 157 ] 158 159 EXPORTS.mozilla.net += [ 160 "CacheInfoIPCTypes.h", 161 "CaptivePortalService.h", 162 "ContentRange.h", 163 "Dashboard.h", 164 "DashboardTypes.h", 165 "DefaultURI.h", 166 "ExecuteIfOnMainThreadEventTarget.h", 167 "InterceptionInfo.h", 168 "IPv4Parser.h", 169 "NetworkConnectivityService.h", 170 "PrivateBrowsingChannel.h", 171 "ProtocolHandlerInfo.h", 172 "RedirectChannelRegistrar.h", 173 "RequestContextService.h", 174 "SimpleURIUnknownSchemes.h", 175 "SSLTokensCache.h", 176 "ThrottleQueue.h", 177 ] 178 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 "ExecuteIfOnMainThreadEventTarget.cpp", 188 "InterceptionInfo.cpp", 189 "IPv4Parser.cpp", 190 "LNAPermissionRequest.cpp", 191 "LoadContextInfo.cpp", 192 "LoadInfo.cpp", 193 "MockNetworkLayer.cpp", 194 "MockNetworkLayerController.cpp", 195 "NetworkConnectivityService.cpp", 196 "NetworkDataCountLayer.cpp", 197 "nsAsyncRedirectVerifyHelper.cpp", 198 "nsAsyncStreamCopier.cpp", 199 "nsAuthInformationHolder.cpp", 200 "nsBase64Encoder.cpp", 201 "nsBaseChannel.cpp", 202 "nsBaseContentStream.cpp", 203 "nsBaseParentChannel.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 "ProtocolHandlerInfo.cpp", 242 "ProxyAutoConfig.cpp", 243 "RedirectChannelRegistrar.cpp", 244 "RequestContextService.cpp", 245 "SimpleBuffer.cpp", 246 "SimpleChannel.cpp", 247 "SimpleURIUnknownSchemes.cpp", 248 "SSLTokensCache.cpp", 249 "SuspendableChannelWrapper.cpp", 250 "ThrottleQueue.cpp", 251 "Tickler.cpp", 252 "TLSServerSocket.cpp", 253 "TRRLoadInfo.cpp", 254 ] 255 256 if CONFIG["FUZZING"]: 257 SOURCES += [ 258 "FuzzyLayer.cpp", 259 "FuzzySecurityInfo.cpp", 260 "FuzzySocketControl.cpp", 261 ] 262 263 if CONFIG["FUZZING_INTERFACES"] and CONFIG["LIBFUZZER"]: 264 include("/tools/fuzzing/libfuzzer-flags.mozbuild") 265 SOURCES += [ 266 "nsURLHelper.cpp", 267 "nsURLParsers.cpp", 268 ] 269 SOURCES["nsURLHelper.cpp"].flags += libfuzzer_flags 270 SOURCES["nsURLParsers.cpp"].flags += libfuzzer_flags 271 else: 272 UNIFIED_SOURCES += [ 273 "nsURLHelper.cpp", 274 "nsURLParsers.cpp", 275 ] 276 277 278 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows": 279 SOURCES += [ 280 "nsURLHelperWin.cpp", 281 "ShutdownLayer.cpp", 282 ] 283 else: 284 SOURCES += [ 285 "nsURLHelperUnix.cpp", 286 ] 287 288 EXTRA_JS_MODULES += [ 289 "EssentialDomainsRemoteSettings.sys.mjs", 290 "NetUtil.sys.mjs", 291 "SimpleURIUnknownSchemesRemoteObserver.sys.mjs", 292 ] 293 294 DIRS += [ 295 "mozurl", 296 "rust-helper", 297 "http-sfv", 298 "idna_glue", 299 "uritemplate_glue", 300 "urlpattern_glue", 301 ] 302 303 include("/ipc/chromium/chromium-config.mozbuild") 304 305 FINAL_LIBRARY = "xul" 306 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", 319 ] 320 321 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa": 322 LOCAL_INCLUDES += [ 323 "/xpcom/base", 324 ] 325 326 GeneratedFile( 327 "ascii_pac_utils.inc", script="makecppstring.py", inputs=["ascii_pac_utils.js"] 328 )