content/media/moz.build

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

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 PARALLEL_DIRS += [
michael@0 8 'encoder',
michael@0 9 'mediasource',
michael@0 10 'ogg',
michael@0 11 'webaudio',
michael@0 12 'webvtt'
michael@0 13 ]
michael@0 14
michael@0 15 TEST_TOOL_DIRS += ['compiledtest']
michael@0 16
michael@0 17 if CONFIG['MOZ_RAW']:
michael@0 18 PARALLEL_DIRS += ['raw']
michael@0 19
michael@0 20 if CONFIG['MOZ_WAVE']:
michael@0 21 PARALLEL_DIRS += ['wave']
michael@0 22
michael@0 23 if CONFIG['MOZ_WEBM']:
michael@0 24 PARALLEL_DIRS += ['webm']
michael@0 25
michael@0 26 if CONFIG['MOZ_GSTREAMER']:
michael@0 27 PARALLEL_DIRS += ['gstreamer']
michael@0 28
michael@0 29 if CONFIG['MOZ_DIRECTSHOW']:
michael@0 30 PARALLEL_DIRS += ['directshow']
michael@0 31
michael@0 32 if CONFIG['MOZ_MEDIA_PLUGINS']:
michael@0 33 PARALLEL_DIRS += ['plugins']
michael@0 34
michael@0 35 if CONFIG['MOZ_WMF']:
michael@0 36 PARALLEL_DIRS += ['wmf']
michael@0 37
michael@0 38 if CONFIG['MOZ_FMP4']:
michael@0 39 PARALLEL_DIRS += ['fmp4']
michael@0 40
michael@0 41 if CONFIG['MOZ_APPLEMEDIA']:
michael@0 42 PARALLEL_DIRS += ['apple']
michael@0 43
michael@0 44 PARALLEL_DIRS += ['webrtc']
michael@0 45
michael@0 46 if CONFIG['MOZ_OMX_DECODER']:
michael@0 47 PARALLEL_DIRS += ['omx']
michael@0 48 PARALLEL_DIRS += ['omx/mediaresourcemanager']
michael@0 49
michael@0 50 PARALLEL_DIRS += ['webspeech']
michael@0 51
michael@0 52 TEST_DIRS += [
michael@0 53 'test',
michael@0 54 'gtest',
michael@0 55 ]
michael@0 56
michael@0 57 EXPORTS += [
michael@0 58 'AbstractMediaDecoder.h',
michael@0 59 'AudioChannelFormat.h',
michael@0 60 'AudioCompactor.h',
michael@0 61 'AudioEventTimeline.h',
michael@0 62 'AudioMixer.h',
michael@0 63 'AudioNodeEngine.h',
michael@0 64 'AudioNodeExternalInputStream.h',
michael@0 65 'AudioNodeStream.h',
michael@0 66 'AudioSampleFormat.h',
michael@0 67 'AudioSegment.h',
michael@0 68 'AudioStream.h',
michael@0 69 'BufferDecoder.h',
michael@0 70 'BufferMediaResource.h',
michael@0 71 'DecoderTraits.h',
michael@0 72 'DOMMediaStream.h',
michael@0 73 'EncodedBufferCache.h',
michael@0 74 'FileBlockCache.h',
michael@0 75 'Latency.h',
michael@0 76 'MediaCache.h',
michael@0 77 'MediaData.h',
michael@0 78 'MediaDecoder.h',
michael@0 79 'MediaDecoderOwner.h',
michael@0 80 'MediaDecoderReader.h',
michael@0 81 'MediaDecoderStateMachine.h',
michael@0 82 'MediaInfo.h',
michael@0 83 'MediaMetadataManager.h',
michael@0 84 'MediaQueue.h',
michael@0 85 'MediaRecorder.h',
michael@0 86 'MediaResource.h',
michael@0 87 'MediaSegment.h',
michael@0 88 'MediaStreamGraph.h',
michael@0 89 'MediaTaskQueue.h',
michael@0 90 'MP3FrameParser.h',
michael@0 91 'RtspMediaResource.h',
michael@0 92 'SharedBuffer.h',
michael@0 93 'SharedThreadPool.h',
michael@0 94 'StreamBuffer.h',
michael@0 95 'TimeVarying.h',
michael@0 96 'TrackUnionStream.h',
michael@0 97 'VideoFrameContainer.h',
michael@0 98 'VideoSegment.h',
michael@0 99 'VideoUtils.h',
michael@0 100 'VorbisUtils.h',
michael@0 101 ]
michael@0 102
michael@0 103 EXPORTS.mozilla.dom += [
michael@0 104 'AudioStreamTrack.h',
michael@0 105 'MediaStreamTrack.h',
michael@0 106 'TextTrack.h',
michael@0 107 'TextTrackCue.h',
michael@0 108 'TextTrackCueList.h',
michael@0 109 'TextTrackList.h',
michael@0 110 'TextTrackRegion.h',
michael@0 111 'VideoPlaybackQuality.h',
michael@0 112 'VideoStreamTrack.h',
michael@0 113 ]
michael@0 114
michael@0 115 UNIFIED_SOURCES += [
michael@0 116 'AudioChannelFormat.cpp',
michael@0 117 'AudioCompactor.cpp',
michael@0 118 'AudioNodeEngine.cpp',
michael@0 119 'AudioNodeExternalInputStream.cpp',
michael@0 120 'AudioNodeStream.cpp',
michael@0 121 'AudioSegment.cpp',
michael@0 122 'AudioStream.cpp',
michael@0 123 'AudioStreamTrack.cpp',
michael@0 124 'BufferDecoder.cpp',
michael@0 125 'DOMMediaStream.cpp',
michael@0 126 'EncodedBufferCache.cpp',
michael@0 127 'FileBlockCache.cpp',
michael@0 128 'MediaCache.cpp',
michael@0 129 'MediaData.cpp',
michael@0 130 'MediaDecoder.cpp',
michael@0 131 'MediaDecoderReader.cpp',
michael@0 132 'MediaDecoderStateMachine.cpp',
michael@0 133 'MediaRecorder.cpp',
michael@0 134 'MediaResource.cpp',
michael@0 135 'MediaShutdownManager.cpp',
michael@0 136 'MediaStreamGraph.cpp',
michael@0 137 'MediaStreamTrack.cpp',
michael@0 138 'MediaTaskQueue.cpp',
michael@0 139 'MP3FrameParser.cpp',
michael@0 140 'RtspMediaResource.cpp',
michael@0 141 'SharedThreadPool.cpp',
michael@0 142 'StreamBuffer.cpp',
michael@0 143 'TextTrack.cpp',
michael@0 144 'TextTrackCue.cpp',
michael@0 145 'TextTrackCueList.cpp',
michael@0 146 'TextTrackList.cpp',
michael@0 147 'TextTrackRegion.cpp',
michael@0 148 'VideoFrameContainer.cpp',
michael@0 149 'VideoPlaybackQuality.cpp',
michael@0 150 'VideoSegment.cpp',
michael@0 151 'VideoStreamTrack.cpp',
michael@0 152 'VideoUtils.cpp',
michael@0 153 'WebVTTListener.cpp',
michael@0 154 ]
michael@0 155
michael@0 156 # DecoderTraits.cpp needs to be built separately because of Mac OS X headers.
michael@0 157 # Latency.cpp needs to be built separately because it forces NSPR logging.
michael@0 158 SOURCES += [
michael@0 159 'DecoderTraits.cpp',
michael@0 160 'Latency.cpp',
michael@0 161 ]
michael@0 162
michael@0 163 FAIL_ON_WARNINGS = True
michael@0 164
michael@0 165 if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['BUILD_ARM_NEON']:
michael@0 166 SOURCES += ['AudioNodeEngineNEON.cpp']
michael@0 167 SOURCES['AudioNodeEngineNEON.cpp'].flags += ['-mfpu=neon']
michael@0 168
michael@0 169 MSVC_ENABLE_PGO = True
michael@0 170
michael@0 171 include('/ipc/chromium/chromium-config.mozbuild')
michael@0 172
michael@0 173 FINAL_LIBRARY = 'gklayout'
michael@0 174 LOCAL_INCLUDES += [
michael@0 175 '/content/base/src',
michael@0 176 '/layout/generic',
michael@0 177 '/layout/xul',
michael@0 178 '/netwerk/base/src',
michael@0 179 ]
michael@0 180
michael@0 181 if CONFIG['MOZ_DIRECTSHOW']:
michael@0 182 LOCAL_INCLUDES += [
michael@0 183 '/media/webrtc/trunk/webrtc/modules/video_capture/windows',
michael@0 184 ]
michael@0 185
michael@0 186 DEFINES['MOZILLA_INTERNAL_API'] = True
michael@0 187
michael@0 188 if CONFIG['MOZ_OMX_DECODER']:
michael@0 189 DEFINES['MOZ_OMX_DECODER'] = True
michael@0 190

mercurial