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.mozilla.net += [ michael@0: 'controller/RtspController.h', michael@0: 'controller/RtspControllerChild.h', michael@0: 'controller/RtspControllerParent.h', michael@0: 'controller/RtspMetaData.h', michael@0: 'rtsp/RTSPSource.h', michael@0: 'RtspChannelChild.h', michael@0: 'RtspChannelParent.h', michael@0: 'RtspHandler.h', michael@0: ] michael@0: michael@0: # These files cannot be built in unified mode because they force NSPR logging. michael@0: SOURCES += [ michael@0: 'controller/RtspController.cpp', michael@0: 'controller/RtspControllerChild.cpp', michael@0: 'controller/RtspControllerParent.cpp', michael@0: 'controller/RtspMetaData.cpp', michael@0: 'RtspChannelChild.cpp', michael@0: 'RtspChannelParent.cpp', michael@0: 'RtspHandler.cpp', michael@0: ] michael@0: michael@0: # Android sources michael@0: SOURCES += [ michael@0: 'rtsp/AAMRAssembler.cpp', michael@0: 'rtsp/AAVCAssembler.cpp', michael@0: 'rtsp/AH263Assembler.cpp', michael@0: 'rtsp/AMPEG4AudioAssembler.cpp', michael@0: 'rtsp/AMPEG4ElementaryAssembler.cpp', michael@0: 'rtsp/APacketSource.cpp', michael@0: 'rtsp/ARawAudioAssembler.cpp', michael@0: 'rtsp/ARTPAssembler.cpp', michael@0: 'rtsp/ARTPConnection.cpp', michael@0: 'rtsp/ARTPSource.cpp', michael@0: 'rtsp/ARTPWriter.cpp', michael@0: 'rtsp/ARTSPConnection.cpp', michael@0: 'rtsp/ASessionDescription.cpp', michael@0: 'rtsp/RTSPSource.cpp', 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: michael@0: DEFINES['IMPL_NS_NET'] = True michael@0: DEFINES['FORCE_PR_LOG'] = True michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../../base/src', michael@0: '/content/base/src', michael@0: 'controller', michael@0: 'rtsp', michael@0: ] michael@0: michael@0: for var in ('IMPL_NS_NET', 'FORCE_PR_LOG'): michael@0: DEFINES[var] = True michael@0: michael@0: if CONFIG['ANDROID_VERSION'] == '15': michael@0: CXXFLAGS += ['-I%s/frameworks/base/media/libstagefright/mpeg2ts' % CONFIG['ANDROID_SOURCE']] michael@0: else: michael@0: CXXFLAGS += ['-I%s/frameworks/av/media/libstagefright/mpeg2ts' % CONFIG['ANDROID_SOURCE']] michael@0: michael@0: CXXFLAGS += ['-Wno-multichar']