michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: EXPORTS += [ michael@0: 'nsFileStreams.h', michael@0: 'nsMIMEInputStream.h', michael@0: 'nsTemporaryFileInputStream.h', michael@0: 'nsURLHelper.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla.net += [ michael@0: 'ChannelDiverterChild.h', michael@0: 'ChannelDiverterParent.h', michael@0: 'Dashboard.h', michael@0: 'DashboardTypes.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'ArrayBufferInputStream.cpp', michael@0: 'BackgroundFileSaver.cpp', michael@0: 'ChannelDiverterChild.cpp', michael@0: 'ChannelDiverterParent.cpp', michael@0: 'Dashboard.cpp', michael@0: 'EventTokenBucket.cpp', michael@0: 'LoadContextInfo.cpp', michael@0: 'NetworkActivityMonitor.cpp', michael@0: 'nsAsyncStreamCopier.cpp', michael@0: 'nsAuthInformationHolder.cpp', michael@0: 'nsBase64Encoder.cpp', michael@0: 'nsBaseChannel.cpp', michael@0: 'nsBaseContentStream.cpp', michael@0: 'nsBufferedStreams.cpp', michael@0: 'nsChannelClassifier.cpp', michael@0: 'nsDirectoryIndexStream.cpp', michael@0: 'nsDNSPrefetch.cpp', michael@0: 'nsDownloader.cpp', michael@0: 'nsFileStreams.cpp', michael@0: 'nsIncrementalDownload.cpp', michael@0: 'nsInputStreamChannel.cpp', michael@0: 'nsInputStreamPump.cpp', michael@0: 'nsIOService.cpp', michael@0: 'nsLoadGroup.cpp', michael@0: 'nsMediaFragmentURIParser.cpp', michael@0: 'nsMIMEInputStream.cpp', michael@0: 'nsNetAddr.cpp', michael@0: 'nsNetStrings.cpp', michael@0: 'nsPACMan.cpp', michael@0: 'nsPreloadedStream.cpp', michael@0: 'nsProtocolProxyService.cpp', michael@0: 'nsProxyInfo.cpp', michael@0: 'nsRequestObserverProxy.cpp', michael@0: 'nsSerializationHelper.cpp', michael@0: 'nsServerSocket.cpp', michael@0: 'nsSimpleNestedURI.cpp', michael@0: 'nsSimpleStreamListener.cpp', michael@0: 'nsSimpleURI.cpp', michael@0: 'nsStandardURL.cpp', michael@0: 'nsStreamListenerTee.cpp', michael@0: 'nsStreamListenerWrapper.cpp', michael@0: 'nsStreamLoader.cpp', michael@0: 'nsStreamTransportService.cpp', michael@0: 'nsSyncStreamListener.cpp', michael@0: 'nsTemporaryFileInputStream.cpp', michael@0: 'nsTransportUtils.cpp', michael@0: 'nsUDPSocket.cpp', michael@0: 'nsUnicharStreamLoader.cpp', michael@0: 'nsURIChecker.cpp', michael@0: 'nsURLHelper.cpp', michael@0: 'nsURLParsers.cpp', michael@0: 'ProxyAutoConfig.cpp', michael@0: 'RedirectChannelRegistrar.cpp', michael@0: 'Seer.cpp', michael@0: 'StreamingProtocolService.cpp', michael@0: 'Tickler.cpp', michael@0: ] michael@0: michael@0: # These files cannot be built in unified mode because they force NSPR logging. michael@0: SOURCES += [ michael@0: 'nsAsyncRedirectVerifyHelper.cpp', michael@0: 'nsSocketTransport2.cpp', michael@0: 'nsSocketTransportService2.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': michael@0: SOURCES += [ michael@0: 'nsAutodialWin.cpp', michael@0: 'nsNativeConnectionHelper.cpp', michael@0: 'nsURLHelperWin.cpp', michael@0: ] michael@0: elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': michael@0: SOURCES += [ michael@0: 'nsURLHelperOSX.cpp', michael@0: ] michael@0: else: michael@0: SOURCES += [ michael@0: 'nsURLHelperUnix.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_ENABLE_QTNETWORK']: michael@0: SOURCES += [ michael@0: 'nsAutodialQt.cpp', michael@0: ] michael@0: michael@0: EXTRA_JS_MODULES += [ michael@0: 'NetUtil.jsm', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'necko' michael@0: LOCAL_INCLUDES += [ michael@0: '/dom/base', michael@0: '/netwerk/protocol/http' michael@0: ] michael@0: michael@0: if 'rtsp' in CONFIG['NECKO_PROTOCOLS']: michael@0: LOCAL_INCLUDES += [ michael@0: '/netwerk/protocol/rtsp/controller', michael@0: '/netwerk/protocol/rtsp/rtsp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_ENABLE_QTNETWORK']: michael@0: LOCAL_INCLUDES += [ michael@0: '/netwerk/system/qt', michael@0: ] michael@0: michael@0: if CONFIG['ENABLE_TESTS']: michael@0: DEFINES['SEER_TESTS'] = True