netwerk/protocol/rtsp/moz.build

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 # vim: set filetype=python:
     2 # This Source Code Form is subject to the terms of the Mozilla Public
     3 # License, v. 2.0. If a copy of the MPL was not distributed with this
     4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     6 EXPORTS.mozilla.net += [
     7     'controller/RtspController.h',
     8     'controller/RtspControllerChild.h',
     9     'controller/RtspControllerParent.h',
    10     'controller/RtspMetaData.h',
    11     'rtsp/RTSPSource.h',
    12     'RtspChannelChild.h',
    13     'RtspChannelParent.h',
    14     'RtspHandler.h',
    15 ]
    17 # These files cannot be built in unified mode because they force NSPR logging.
    18 SOURCES += [
    19     'controller/RtspController.cpp',
    20     'controller/RtspControllerChild.cpp',
    21     'controller/RtspControllerParent.cpp',
    22     'controller/RtspMetaData.cpp',
    23     'RtspChannelChild.cpp',
    24     'RtspChannelParent.cpp',
    25     'RtspHandler.cpp',
    26 ]
    28 # Android sources
    29 SOURCES += [
    30     'rtsp/AAMRAssembler.cpp',
    31     'rtsp/AAVCAssembler.cpp',
    32     'rtsp/AH263Assembler.cpp',
    33     'rtsp/AMPEG4AudioAssembler.cpp',
    34     'rtsp/AMPEG4ElementaryAssembler.cpp',
    35     'rtsp/APacketSource.cpp',
    36     'rtsp/ARawAudioAssembler.cpp',
    37     'rtsp/ARTPAssembler.cpp',
    38     'rtsp/ARTPConnection.cpp',
    39     'rtsp/ARTPSource.cpp',
    40     'rtsp/ARTPWriter.cpp',
    41     'rtsp/ARTSPConnection.cpp',
    42     'rtsp/ASessionDescription.cpp',
    43     'rtsp/RTSPSource.cpp',
    44 ]
    46 FAIL_ON_WARNINGS = True
    48 MSVC_ENABLE_PGO = True
    50 include('/ipc/chromium/chromium-config.mozbuild')
    52 FINAL_LIBRARY = 'necko'
    54 DEFINES['IMPL_NS_NET'] = True
    55 DEFINES['FORCE_PR_LOG'] = True
    57 LOCAL_INCLUDES += [
    58     '../../base/src',
    59     '/content/base/src',
    60     'controller',
    61     'rtsp',
    62 ]
    64 for var in ('IMPL_NS_NET', 'FORCE_PR_LOG'):
    65     DEFINES[var] = True
    67 if CONFIG['ANDROID_VERSION'] == '15':
    68     CXXFLAGS += ['-I%s/frameworks/base/media/libstagefright/mpeg2ts' % CONFIG['ANDROID_SOURCE']]
    69 else:
    70     CXXFLAGS += ['-I%s/frameworks/av/media/libstagefright/mpeg2ts' % CONFIG['ANDROID_SOURCE']]
    72 CXXFLAGS += ['-Wno-multichar']

mercurial