Bug 1814798 - pt 2. Add a PHCManager component to control PHC r=glandium,emilio
[gecko.git] / netwerk / protocol / http / moz.build
blob83c04ae21bd077f050fdeab5937e855cf710f412
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 with Files("**"):
8     BUG_COMPONENT = ("Core", "Networking: HTTP")
10 XPIDL_SOURCES += [
11     "nsIBackgroundChannelRegistrar.idl",
12     "nsIBinaryHttp.idl",
13     "nsIEarlyHintObserver.idl",
14     "nsIHttpActivityObserver.idl",
15     "nsIHttpAuthenticableChannel.idl",
16     "nsIHttpAuthenticator.idl",
17     "nsIHttpAuthManager.idl",
18     "nsIHttpChannel.idl",
19     "nsIHttpChannelAuthProvider.idl",
20     "nsIHttpChannelChild.idl",
21     "nsIHttpChannelInternal.idl",
22     "nsIHttpHeaderVisitor.idl",
23     "nsIHttpProtocolHandler.idl",
24     "nsIObliviousHttp.idl",
25     "nsIRaceCacheWithNetwork.idl",
26     "nsITlsHandshakeListener.idl",
27     "nsIWellKnownOpportunisticUtils.idl",
30 XPIDL_MODULE = "necko_http"
32 EXPORTS += [
33     "nsCORSListenerProxy.h",
34     "nsHttp.h",
35     "nsHttpAtomList.h",
36     "nsHttpHeaderArray.h",
37     "nsHttpRequestHead.h",
38     "nsHttpResponseHead.h",
41 EXPORTS.mozilla.net += [
42     "AltDataOutputStreamChild.h",
43     "AltDataOutputStreamParent.h",
44     "AltServiceChild.h",
45     "AltServiceParent.h",
46     "AltSvcTransactionChild.h",
47     "AltSvcTransactionParent.h",
48     "BackgroundChannelRegistrar.h",
49     "BackgroundDataBridgeChild.h",
50     "BackgroundDataBridgeParent.h",
51     "ClassOfService.h",
52     "EarlyHintPreloader.h",
53     "EarlyHintRegistrar.h",
54     "EarlyHintsService.h",
55     "HttpAuthUtils.h",
56     "HttpBackgroundChannelChild.h",
57     "HttpBackgroundChannelParent.h",
58     "HttpBaseChannel.h",
59     "HttpChannelChild.h",
60     "HttpChannelParent.h",
61     "HttpConnectionMgrChild.h",
62     "HttpConnectionMgrParent.h",
63     "HttpConnectionMgrShell.h",
64     "HttpInfo.h",
65     "HttpTransactionChild.h",
66     "HttpTransactionParent.h",
67     "HttpTransactionShell.h",
68     "nsAHttpTransaction.h",
69     "nsServerTiming.h",
70     "NullHttpChannel.h",
71     "NullHttpTransaction.h",
72     "OpaqueResponseUtils.h",
73     "ParentChannelListener.h",
74     "PHttpChannelParams.h",
75     "PSpdyPush.h",
76     "SpeculativeTransaction.h",
77     "TimingStruct.h",
80 SOURCES += [
81     "nsHttpChannelAuthProvider.cpp",  # redefines GetAuthType
84 UNIFIED_SOURCES += [
85     "AltDataOutputStreamChild.cpp",
86     "AltDataOutputStreamParent.cpp",
87     "AlternateServices.cpp",
88     "AltServiceChild.cpp",
89     "AltServiceParent.cpp",
90     "AltSvcTransactionChild.cpp",
91     "AltSvcTransactionParent.cpp",
92     "ASpdySession.cpp",
93     "BackgroundChannelRegistrar.cpp",
94     "BackgroundDataBridgeChild.cpp",
95     "BackgroundDataBridgeParent.cpp",
96     "BinaryHttpRequest.cpp",
97     "CacheControlParser.cpp",
98     "CachePushChecker.cpp",
99     "ConnectionDiagnostics.cpp",
100     "ConnectionEntry.cpp",
101     "ConnectionHandle.cpp",
102     "DnsAndConnectSocket.cpp",
103     "EarlyHintPreconnect.cpp",
104     "EarlyHintPreloader.cpp",
105     "EarlyHintRegistrar.cpp",
106     "EarlyHintsService.cpp",
107     "Http2Compression.cpp",
108     "Http2Push.cpp",
109     "Http2Session.cpp",
110     "Http2Stream.cpp",
111     "Http2StreamBase.cpp",
112     "Http2StreamTunnel.cpp",
113     "Http3Session.cpp",
114     "Http3Stream.cpp",
115     "Http3WebTransportSession.cpp",
116     "Http3WebTransportStream.cpp",
117     "HttpAuthUtils.cpp",
118     "HttpBackgroundChannelChild.cpp",
119     "HttpBackgroundChannelParent.cpp",
120     "HttpBaseChannel.cpp",
121     "HttpChannelChild.cpp",
122     "HttpChannelParent.cpp",
123     "HttpConnectionBase.cpp",
124     "HttpConnectionMgrChild.cpp",
125     "HttpConnectionMgrParent.cpp",
126     "HttpConnectionUDP.cpp",
127     "HttpInfo.cpp",
128     "HTTPSRecordResolver.cpp",
129     "HttpTrafficAnalyzer.cpp",
130     "HttpTransactionChild.cpp",
131     "HttpTransactionParent.cpp",
132     "InterceptedHttpChannel.cpp",
133     "MockHttpAuth.cpp",
134     "NetworkMarker.cpp",
135     "nsCORSListenerProxy.cpp",
136     "nsHttp.cpp",
137     "nsHttpActivityDistributor.cpp",
138     "nsHttpAuthCache.cpp",
139     "nsHttpAuthManager.cpp",
140     "nsHttpBasicAuth.cpp",
141     "nsHttpChannel.cpp",
142     "nsHttpChunkedDecoder.cpp",
143     "nsHttpConnection.cpp",
144     "nsHttpConnectionInfo.cpp",
145     "nsHttpConnectionMgr.cpp",
146     "nsHttpDigestAuth.cpp",
147     "nsHttpHeaderArray.cpp",
148     "nsHttpNTLMAuth.cpp",
149     "nsHttpRequestHead.cpp",
150     "nsHttpResponseHead.cpp",
151     "nsHttpTransaction.cpp",
152     "nsServerTiming.cpp",
153     "NullHttpChannel.cpp",
154     "NullHttpTransaction.cpp",
155     "ObliviousHttpChannel.cpp",
156     "ObliviousHttpService.cpp",
157     "OpaqueResponseUtils.cpp",
158     "ParentChannelListener.cpp",
159     "PendingTransactionInfo.cpp",
160     "PendingTransactionQueue.cpp",
161     "QuicSocketControl.cpp",
162     "SpeculativeTransaction.cpp",
163     "TlsHandshaker.cpp",
164     "TLSTransportLayer.cpp",
165     "TRRServiceChannel.cpp",
168 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
169     UNIFIED_SOURCES += [
170         "HttpWinUtils.cpp",
171     ]
173 # These files cannot be built in unified mode because of OS X headers.
174 SOURCES += [
175     "nsHttpHandler.cpp",
178 IPDL_SOURCES += [
179     "HttpChannelParams.ipdlh",
180     "PAltDataOutputStream.ipdl",
181     "PAltService.ipdl",
182     "PAltSvcTransaction.ipdl",
183     "PBackgroundDataBridge.ipdl",
184     "PHttpBackgroundChannel.ipdl",
185     "PHttpChannel.ipdl",
186     "PHttpConnectionMgr.ipdl",
187     "PHttpTransaction.ipdl",
190 include("/ipc/chromium/chromium-config.mozbuild")
192 FINAL_LIBRARY = "xul"
194 LOCAL_INCLUDES += [
195     "/dom/base",
196     "/netwerk/base",
197     "/netwerk/cookie",
198     "/netwerk/dns",
199     "/netwerk/ipc",
200     "/netwerk/socket/neqo_glue",
201     "/netwerk/url-classifier",
204 if CONFIG["MOZ_AUTH_EXTENSION"]:
205     LOCAL_INCLUDES += [
206         "/extensions/auth",
207     ]
209 if CONFIG["NIGHTLY_BUILD"]:
210     EXTRA_JS_MODULES += [
211         "OHTTPConfigManager.sys.mjs",
212     ]
214 EXTRA_JS_MODULES += [
215     "WellKnownOpportunisticUtils.sys.mjs",
218 XPCOM_MANIFESTS += [
219     "components.conf",
222 include("/tools/fuzzing/libfuzzer-config.mozbuild")