|
1 # -*- Mode: python; c-basic-offset: 4; 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 'nsIHttpActivityObserver.idl', |
|
9 'nsIHttpAuthenticableChannel.idl', |
|
10 'nsIHttpAuthenticator.idl', |
|
11 'nsIHttpAuthManager.idl', |
|
12 'nsIHttpChannel.idl', |
|
13 'nsIHttpChannelAuthProvider.idl', |
|
14 'nsIHttpChannelChild.idl', |
|
15 'nsIHttpChannelInternal.idl', |
|
16 'nsIHttpEventSink.idl', |
|
17 'nsIHttpHeaderVisitor.idl', |
|
18 'nsIHttpProtocolHandler.idl', |
|
19 ] |
|
20 |
|
21 XPIDL_MODULE = 'necko_http' |
|
22 |
|
23 EXPORTS += [ |
|
24 'nsHttp.h', |
|
25 'nsHttpAtomList.h', |
|
26 'nsHttpHeaderArray.h', |
|
27 'nsHttpResponseHead.h', |
|
28 ] |
|
29 |
|
30 EXPORTS.mozilla.net += [ |
|
31 'HttpBaseChannel.h', |
|
32 'HttpChannelChild.h', |
|
33 'HttpChannelParent.h', |
|
34 'HttpInfo.h', |
|
35 'PHttpChannelParams.h', |
|
36 'PSpdyPush.h', |
|
37 ] |
|
38 |
|
39 # ASpdySession.cpp and nsHttpAuthCache cannot be built in unified mode because |
|
40 # they use plarena.h. |
|
41 # The rest of these files cannot be built in unified mode because they want to |
|
42 # force NSPR logging. |
|
43 SOURCES += [ |
|
44 'ASpdySession.cpp', |
|
45 'ConnectionDiagnostics.cpp', |
|
46 'Http2Compression.cpp', |
|
47 'Http2Push.cpp', |
|
48 'Http2Session.cpp', |
|
49 'Http2Stream.cpp', |
|
50 'HttpBaseChannel.cpp', |
|
51 'HttpChannelChild.cpp', |
|
52 'HttpChannelParent.cpp', |
|
53 'HttpChannelParentListener.cpp', |
|
54 'HttpInfo.cpp', |
|
55 'nsHttp.cpp', |
|
56 'nsHttpActivityDistributor.cpp', |
|
57 'nsHttpAuthCache.cpp', |
|
58 'nsHttpAuthManager.cpp', |
|
59 'nsHttpBasicAuth.cpp', |
|
60 'nsHttpChannel.cpp', |
|
61 'nsHttpChannelAuthProvider.cpp', |
|
62 'nsHttpChunkedDecoder.cpp', |
|
63 'nsHttpConnection.cpp', |
|
64 'nsHttpConnectionInfo.cpp', |
|
65 'nsHttpConnectionMgr.cpp', |
|
66 'nsHttpDigestAuth.cpp', |
|
67 'nsHttpHeaderArray.cpp', |
|
68 'nsHttpNTLMAuth.cpp', |
|
69 'nsHttpPipeline.cpp', |
|
70 'nsHttpRequestHead.cpp', |
|
71 'nsHttpResponseHead.cpp', |
|
72 'nsHttpTransaction.cpp', |
|
73 'NullHttpTransaction.cpp', |
|
74 'SpdyPush3.cpp', |
|
75 'SpdyPush31.cpp', |
|
76 'SpdySession3.cpp', |
|
77 'SpdySession31.cpp', |
|
78 'SpdyStream3.cpp', |
|
79 'SpdyStream31.cpp', |
|
80 'SpdyZlibReporter.cpp', |
|
81 ] |
|
82 |
|
83 # These files cannot be built in unified mode because of OS X headers. |
|
84 SOURCES += [ |
|
85 'nsHttpHandler.cpp', |
|
86 ] |
|
87 |
|
88 IPDL_SOURCES += [ |
|
89 'PHttpChannel.ipdl', |
|
90 ] |
|
91 |
|
92 EXTRA_JS_MODULES += [ |
|
93 'UserAgentOverrides.jsm', |
|
94 'UserAgentUpdates.jsm', |
|
95 ] |
|
96 |
|
97 FAIL_ON_WARNINGS = True |
|
98 |
|
99 MSVC_ENABLE_PGO = True |
|
100 |
|
101 include('/ipc/chromium/chromium-config.mozbuild') |
|
102 |
|
103 FINAL_LIBRARY = 'necko' |
|
104 |
|
105 LOCAL_INCLUDES += [ |
|
106 '../../base/src', |
|
107 '/content/base/src', |
|
108 ] |