Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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/.
7 EXPORTS += [
8 'nsFileStreams.h',
9 'nsMIMEInputStream.h',
10 'nsTemporaryFileInputStream.h',
11 'nsURLHelper.h',
12 ]
14 EXPORTS.mozilla.net += [
15 'ChannelDiverterChild.h',
16 'ChannelDiverterParent.h',
17 'Dashboard.h',
18 'DashboardTypes.h',
19 ]
21 UNIFIED_SOURCES += [
22 'ArrayBufferInputStream.cpp',
23 'BackgroundFileSaver.cpp',
24 'ChannelDiverterChild.cpp',
25 'ChannelDiverterParent.cpp',
26 'Dashboard.cpp',
27 'EventTokenBucket.cpp',
28 'LoadContextInfo.cpp',
29 'NetworkActivityMonitor.cpp',
30 'nsAsyncStreamCopier.cpp',
31 'nsAuthInformationHolder.cpp',
32 'nsBase64Encoder.cpp',
33 'nsBaseChannel.cpp',
34 'nsBaseContentStream.cpp',
35 'nsBufferedStreams.cpp',
36 'nsChannelClassifier.cpp',
37 'nsDirectoryIndexStream.cpp',
38 'nsDNSPrefetch.cpp',
39 'nsDownloader.cpp',
40 'nsFileStreams.cpp',
41 'nsIncrementalDownload.cpp',
42 'nsInputStreamChannel.cpp',
43 'nsInputStreamPump.cpp',
44 'nsIOService.cpp',
45 'nsLoadGroup.cpp',
46 'nsMediaFragmentURIParser.cpp',
47 'nsMIMEInputStream.cpp',
48 'nsNetAddr.cpp',
49 'nsNetStrings.cpp',
50 'nsPACMan.cpp',
51 'nsPreloadedStream.cpp',
52 'nsProtocolProxyService.cpp',
53 'nsProxyInfo.cpp',
54 'nsRequestObserverProxy.cpp',
55 'nsSerializationHelper.cpp',
56 'nsServerSocket.cpp',
57 'nsSimpleNestedURI.cpp',
58 'nsSimpleStreamListener.cpp',
59 'nsSimpleURI.cpp',
60 'nsStandardURL.cpp',
61 'nsStreamListenerTee.cpp',
62 'nsStreamListenerWrapper.cpp',
63 'nsStreamLoader.cpp',
64 'nsStreamTransportService.cpp',
65 'nsSyncStreamListener.cpp',
66 'nsTemporaryFileInputStream.cpp',
67 'nsTransportUtils.cpp',
68 'nsUDPSocket.cpp',
69 'nsUnicharStreamLoader.cpp',
70 'nsURIChecker.cpp',
71 'nsURLHelper.cpp',
72 'nsURLParsers.cpp',
73 'ProxyAutoConfig.cpp',
74 'RedirectChannelRegistrar.cpp',
75 'Seer.cpp',
76 'StreamingProtocolService.cpp',
77 'Tickler.cpp',
78 ]
80 # These files cannot be built in unified mode because they force NSPR logging.
81 SOURCES += [
82 'nsAsyncRedirectVerifyHelper.cpp',
83 'nsSocketTransport2.cpp',
84 'nsSocketTransportService2.cpp',
85 ]
87 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
88 SOURCES += [
89 'nsAutodialWin.cpp',
90 'nsNativeConnectionHelper.cpp',
91 'nsURLHelperWin.cpp',
92 ]
93 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
94 SOURCES += [
95 'nsURLHelperOSX.cpp',
96 ]
97 else:
98 SOURCES += [
99 'nsURLHelperUnix.cpp',
100 ]
102 if CONFIG['MOZ_ENABLE_QTNETWORK']:
103 SOURCES += [
104 'nsAutodialQt.cpp',
105 ]
107 EXTRA_JS_MODULES += [
108 'NetUtil.jsm',
109 ]
111 FAIL_ON_WARNINGS = True
113 MSVC_ENABLE_PGO = True
115 include('/ipc/chromium/chromium-config.mozbuild')
117 FINAL_LIBRARY = 'necko'
118 LOCAL_INCLUDES += [
119 '/dom/base',
120 '/netwerk/protocol/http'
121 ]
123 if 'rtsp' in CONFIG['NECKO_PROTOCOLS']:
124 LOCAL_INCLUDES += [
125 '/netwerk/protocol/rtsp/controller',
126 '/netwerk/protocol/rtsp/rtsp',
127 ]
129 if CONFIG['MOZ_ENABLE_QTNETWORK']:
130 LOCAL_INCLUDES += [
131 '/netwerk/system/qt',
132 ]
134 if CONFIG['ENABLE_TESTS']:
135 DEFINES['SEER_TESTS'] = True