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
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | EXPORTS += [ |
michael@0 | 8 | 'nsFileStreams.h', |
michael@0 | 9 | 'nsMIMEInputStream.h', |
michael@0 | 10 | 'nsTemporaryFileInputStream.h', |
michael@0 | 11 | 'nsURLHelper.h', |
michael@0 | 12 | ] |
michael@0 | 13 | |
michael@0 | 14 | EXPORTS.mozilla.net += [ |
michael@0 | 15 | 'ChannelDiverterChild.h', |
michael@0 | 16 | 'ChannelDiverterParent.h', |
michael@0 | 17 | 'Dashboard.h', |
michael@0 | 18 | 'DashboardTypes.h', |
michael@0 | 19 | ] |
michael@0 | 20 | |
michael@0 | 21 | UNIFIED_SOURCES += [ |
michael@0 | 22 | 'ArrayBufferInputStream.cpp', |
michael@0 | 23 | 'BackgroundFileSaver.cpp', |
michael@0 | 24 | 'ChannelDiverterChild.cpp', |
michael@0 | 25 | 'ChannelDiverterParent.cpp', |
michael@0 | 26 | 'Dashboard.cpp', |
michael@0 | 27 | 'EventTokenBucket.cpp', |
michael@0 | 28 | 'LoadContextInfo.cpp', |
michael@0 | 29 | 'NetworkActivityMonitor.cpp', |
michael@0 | 30 | 'nsAsyncStreamCopier.cpp', |
michael@0 | 31 | 'nsAuthInformationHolder.cpp', |
michael@0 | 32 | 'nsBase64Encoder.cpp', |
michael@0 | 33 | 'nsBaseChannel.cpp', |
michael@0 | 34 | 'nsBaseContentStream.cpp', |
michael@0 | 35 | 'nsBufferedStreams.cpp', |
michael@0 | 36 | 'nsChannelClassifier.cpp', |
michael@0 | 37 | 'nsDirectoryIndexStream.cpp', |
michael@0 | 38 | 'nsDNSPrefetch.cpp', |
michael@0 | 39 | 'nsDownloader.cpp', |
michael@0 | 40 | 'nsFileStreams.cpp', |
michael@0 | 41 | 'nsIncrementalDownload.cpp', |
michael@0 | 42 | 'nsInputStreamChannel.cpp', |
michael@0 | 43 | 'nsInputStreamPump.cpp', |
michael@0 | 44 | 'nsIOService.cpp', |
michael@0 | 45 | 'nsLoadGroup.cpp', |
michael@0 | 46 | 'nsMediaFragmentURIParser.cpp', |
michael@0 | 47 | 'nsMIMEInputStream.cpp', |
michael@0 | 48 | 'nsNetAddr.cpp', |
michael@0 | 49 | 'nsNetStrings.cpp', |
michael@0 | 50 | 'nsPACMan.cpp', |
michael@0 | 51 | 'nsPreloadedStream.cpp', |
michael@0 | 52 | 'nsProtocolProxyService.cpp', |
michael@0 | 53 | 'nsProxyInfo.cpp', |
michael@0 | 54 | 'nsRequestObserverProxy.cpp', |
michael@0 | 55 | 'nsSerializationHelper.cpp', |
michael@0 | 56 | 'nsServerSocket.cpp', |
michael@0 | 57 | 'nsSimpleNestedURI.cpp', |
michael@0 | 58 | 'nsSimpleStreamListener.cpp', |
michael@0 | 59 | 'nsSimpleURI.cpp', |
michael@0 | 60 | 'nsStandardURL.cpp', |
michael@0 | 61 | 'nsStreamListenerTee.cpp', |
michael@0 | 62 | 'nsStreamListenerWrapper.cpp', |
michael@0 | 63 | 'nsStreamLoader.cpp', |
michael@0 | 64 | 'nsStreamTransportService.cpp', |
michael@0 | 65 | 'nsSyncStreamListener.cpp', |
michael@0 | 66 | 'nsTemporaryFileInputStream.cpp', |
michael@0 | 67 | 'nsTransportUtils.cpp', |
michael@0 | 68 | 'nsUDPSocket.cpp', |
michael@0 | 69 | 'nsUnicharStreamLoader.cpp', |
michael@0 | 70 | 'nsURIChecker.cpp', |
michael@0 | 71 | 'nsURLHelper.cpp', |
michael@0 | 72 | 'nsURLParsers.cpp', |
michael@0 | 73 | 'ProxyAutoConfig.cpp', |
michael@0 | 74 | 'RedirectChannelRegistrar.cpp', |
michael@0 | 75 | 'Seer.cpp', |
michael@0 | 76 | 'StreamingProtocolService.cpp', |
michael@0 | 77 | 'Tickler.cpp', |
michael@0 | 78 | ] |
michael@0 | 79 | |
michael@0 | 80 | # These files cannot be built in unified mode because they force NSPR logging. |
michael@0 | 81 | SOURCES += [ |
michael@0 | 82 | 'nsAsyncRedirectVerifyHelper.cpp', |
michael@0 | 83 | 'nsSocketTransport2.cpp', |
michael@0 | 84 | 'nsSocketTransportService2.cpp', |
michael@0 | 85 | ] |
michael@0 | 86 | |
michael@0 | 87 | if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': |
michael@0 | 88 | SOURCES += [ |
michael@0 | 89 | 'nsAutodialWin.cpp', |
michael@0 | 90 | 'nsNativeConnectionHelper.cpp', |
michael@0 | 91 | 'nsURLHelperWin.cpp', |
michael@0 | 92 | ] |
michael@0 | 93 | elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': |
michael@0 | 94 | SOURCES += [ |
michael@0 | 95 | 'nsURLHelperOSX.cpp', |
michael@0 | 96 | ] |
michael@0 | 97 | else: |
michael@0 | 98 | SOURCES += [ |
michael@0 | 99 | 'nsURLHelperUnix.cpp', |
michael@0 | 100 | ] |
michael@0 | 101 | |
michael@0 | 102 | if CONFIG['MOZ_ENABLE_QTNETWORK']: |
michael@0 | 103 | SOURCES += [ |
michael@0 | 104 | 'nsAutodialQt.cpp', |
michael@0 | 105 | ] |
michael@0 | 106 | |
michael@0 | 107 | EXTRA_JS_MODULES += [ |
michael@0 | 108 | 'NetUtil.jsm', |
michael@0 | 109 | ] |
michael@0 | 110 | |
michael@0 | 111 | FAIL_ON_WARNINGS = True |
michael@0 | 112 | |
michael@0 | 113 | MSVC_ENABLE_PGO = True |
michael@0 | 114 | |
michael@0 | 115 | include('/ipc/chromium/chromium-config.mozbuild') |
michael@0 | 116 | |
michael@0 | 117 | FINAL_LIBRARY = 'necko' |
michael@0 | 118 | LOCAL_INCLUDES += [ |
michael@0 | 119 | '/dom/base', |
michael@0 | 120 | '/netwerk/protocol/http' |
michael@0 | 121 | ] |
michael@0 | 122 | |
michael@0 | 123 | if 'rtsp' in CONFIG['NECKO_PROTOCOLS']: |
michael@0 | 124 | LOCAL_INCLUDES += [ |
michael@0 | 125 | '/netwerk/protocol/rtsp/controller', |
michael@0 | 126 | '/netwerk/protocol/rtsp/rtsp', |
michael@0 | 127 | ] |
michael@0 | 128 | |
michael@0 | 129 | if CONFIG['MOZ_ENABLE_QTNETWORK']: |
michael@0 | 130 | LOCAL_INCLUDES += [ |
michael@0 | 131 | '/netwerk/system/qt', |
michael@0 | 132 | ] |
michael@0 | 133 | |
michael@0 | 134 | if CONFIG['ENABLE_TESTS']: |
michael@0 | 135 | DEFINES['SEER_TESTS'] = True |