2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:19 -08:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-09-19 08:26:00 -07:00
|
|
|
PARALLEL_DIRS += [
|
|
|
|
'encoder',
|
|
|
|
'mediasource',
|
|
|
|
'webaudio',
|
|
|
|
'webvtt'
|
|
|
|
]
|
2013-02-25 12:47:19 -08:00
|
|
|
|
|
|
|
if CONFIG['MOZ_RAW']:
|
|
|
|
PARALLEL_DIRS += ['raw']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_OGG']:
|
|
|
|
PARALLEL_DIRS += ['ogg']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WAVE']:
|
|
|
|
PARALLEL_DIRS += ['wave']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WEBM']:
|
|
|
|
PARALLEL_DIRS += ['webm']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_GSTREAMER']:
|
|
|
|
PARALLEL_DIRS += ['gstreamer']
|
|
|
|
|
2013-08-12 21:49:25 -07:00
|
|
|
if CONFIG['MOZ_DIRECTSHOW']:
|
|
|
|
PARALLEL_DIRS += ['directshow']
|
|
|
|
|
2013-02-25 12:47:19 -08:00
|
|
|
if CONFIG['MOZ_MEDIA_PLUGINS']:
|
|
|
|
PARALLEL_DIRS += ['plugins']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WMF']:
|
|
|
|
PARALLEL_DIRS += ['wmf']
|
|
|
|
|
2013-11-20 13:04:32 -08:00
|
|
|
if CONFIG['MOZ_FMP4']:
|
|
|
|
PARALLEL_DIRS += ['fmp4']
|
|
|
|
|
2013-09-13 18:14:41 -07:00
|
|
|
if CONFIG['MOZ_APPLEMEDIA']:
|
|
|
|
PARALLEL_DIRS += ['apple']
|
|
|
|
|
2013-02-25 12:47:19 -08:00
|
|
|
PARALLEL_DIRS += ['webrtc']
|
|
|
|
|
2013-05-02 14:21:22 -07:00
|
|
|
if CONFIG['MOZ_OMX_DECODER']:
|
2013-02-25 12:47:19 -08:00
|
|
|
PARALLEL_DIRS += ['omx']
|
2013-06-10 05:22:05 -07:00
|
|
|
PARALLEL_DIRS += ['omx/mediaresourcemanager']
|
2013-02-25 12:47:19 -08:00
|
|
|
|
2013-08-20 09:24:04 -07:00
|
|
|
PARALLEL_DIRS += ['webspeech']
|
2013-03-27 14:08:17 -07:00
|
|
|
|
2013-02-25 12:47:19 -08:00
|
|
|
TEST_DIRS += ['test']
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'AbstractMediaDecoder.h',
|
|
|
|
'AudioAvailableEventManager.h',
|
|
|
|
'AudioChannelFormat.h',
|
|
|
|
'AudioEventTimeline.h',
|
|
|
|
'AudioNodeEngine.h',
|
2013-07-24 04:29:39 -07:00
|
|
|
'AudioNodeExternalInputStream.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'AudioNodeStream.h',
|
|
|
|
'AudioSampleFormat.h',
|
|
|
|
'AudioSegment.h',
|
|
|
|
'AudioStream.h',
|
2013-09-03 20:08:11 -07:00
|
|
|
'BufferDecoder.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'BufferMediaResource.h',
|
|
|
|
'DecoderTraits.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'DOMMediaStream.h',
|
2013-07-04 18:50:25 -07:00
|
|
|
'EncodedBufferCache.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'FileBlockCache.h',
|
2013-01-28 10:22:37 -08:00
|
|
|
'Latency.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'MediaCache.h',
|
|
|
|
'MediaDecoder.h',
|
|
|
|
'MediaDecoderOwner.h',
|
|
|
|
'MediaDecoderReader.h',
|
|
|
|
'MediaDecoderStateMachine.h',
|
|
|
|
'MediaMetadataManager.h',
|
2013-07-04 18:50:25 -07:00
|
|
|
'MediaRecorder.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'MediaResource.h',
|
|
|
|
'MediaSegment.h',
|
|
|
|
'MediaStreamGraph.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'MP3FrameParser.h',
|
2013-09-23 03:12:11 -07:00
|
|
|
'RtspMediaResource.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'SharedBuffer.h',
|
|
|
|
'StreamBuffer.h',
|
|
|
|
'TimeVarying.h',
|
2013-05-21 12:17:47 -07:00
|
|
|
'TrackUnionStream.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'VideoFrameContainer.h',
|
|
|
|
'VideoSegment.h',
|
|
|
|
'VideoUtils.h',
|
|
|
|
'VorbisUtils.h',
|
|
|
|
]
|
|
|
|
|
2013-03-26 18:32:51 -07:00
|
|
|
EXPORTS.mozilla.dom += [
|
|
|
|
'AudioStreamTrack.h',
|
|
|
|
'MediaStreamTrack.h',
|
2013-05-21 09:14:00 -07:00
|
|
|
'TextTrack.h',
|
|
|
|
'TextTrackCue.h',
|
|
|
|
'TextTrackCueList.h',
|
|
|
|
'TextTrackList.h',
|
2013-09-13 16:44:33 -07:00
|
|
|
'TextTrackRegion.h',
|
|
|
|
'TextTrackRegionList.h',
|
2013-06-20 20:14:18 -07:00
|
|
|
'VideoPlaybackQuality.h',
|
2013-03-26 18:32:51 -07:00
|
|
|
'VideoStreamTrack.h',
|
|
|
|
]
|
2013-04-23 14:54:15 -07:00
|
|
|
|
2013-11-20 18:12:13 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'AudioAvailableEventManager.cpp',
|
|
|
|
'AudioChannelFormat.cpp',
|
|
|
|
'AudioNodeEngine.cpp',
|
2013-07-24 04:29:39 -07:00
|
|
|
'AudioNodeExternalInputStream.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'AudioNodeStream.cpp',
|
|
|
|
'AudioSegment.cpp',
|
|
|
|
'AudioStream.cpp',
|
|
|
|
'AudioStreamTrack.cpp',
|
2013-09-03 20:08:11 -07:00
|
|
|
'BufferDecoder.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'DOMMediaStream.cpp',
|
2013-07-04 18:50:25 -07:00
|
|
|
'EncodedBufferCache.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'FileBlockCache.cpp',
|
2013-01-28 10:22:37 -08:00
|
|
|
'Latency.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'MediaCache.cpp',
|
|
|
|
'MediaDecoder.cpp',
|
|
|
|
'MediaDecoderReader.cpp',
|
|
|
|
'MediaDecoderStateMachine.cpp',
|
2013-07-04 18:50:25 -07:00
|
|
|
'MediaRecorder.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'MediaResource.cpp',
|
|
|
|
'MediaStreamGraph.cpp',
|
|
|
|
'MediaStreamTrack.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'MP3FrameParser.cpp',
|
2013-09-23 03:12:11 -07:00
|
|
|
'RtspMediaResource.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'StreamBuffer.cpp',
|
|
|
|
'TextTrack.cpp',
|
|
|
|
'TextTrackCue.cpp',
|
|
|
|
'TextTrackCueList.cpp',
|
|
|
|
'TextTrackList.cpp',
|
2013-09-13 16:44:33 -07:00
|
|
|
'TextTrackRegion.cpp',
|
|
|
|
'TextTrackRegionList.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'VideoFrameContainer.cpp',
|
2013-06-20 20:14:18 -07:00
|
|
|
'VideoPlaybackQuality.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'VideoSegment.cpp',
|
|
|
|
'VideoStreamTrack.cpp',
|
|
|
|
'VideoUtils.cpp',
|
2013-09-19 08:26:00 -07:00
|
|
|
'WebVTTListener.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-08-13 00:39:42 -07:00
|
|
|
|
2013-11-20 18:12:13 -08:00
|
|
|
# DecoderTraits.cpp needs to be built separately because of Mac OS X headers.
|
|
|
|
SOURCES += [
|
|
|
|
'DecoderTraits.cpp',
|
|
|
|
]
|
|
|
|
|
2013-08-21 23:55:59 -07:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-08-13 00:39:42 -07:00
|
|
|
if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['BUILD_ARM_NEON']:
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-08-13 00:39:42 -07:00
|
|
|
'AudioNodeEngineNEON.cpp',
|
|
|
|
]
|
2013-08-21 23:55:59 -07:00
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-18 18:47:14 -08:00
|
|
|
FINAL_LIBRARY = 'gklayout'
|
2013-11-11 00:04:06 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/content/base/src',
|
|
|
|
'/layout/generic',
|
|
|
|
'/layout/xul/base/src',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_DIRECTSHOW']:
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/media/webrtc/trunk/webrtc/modules/video_capture/windows',
|
|
|
|
]
|
|
|
|
|
|
|
|
DEFINES['MOZILLA_INTERNAL_API'] = True
|
|
|
|
|
|
|
|
if CONFIG['MOZ_OMX_DECODER']:
|
|
|
|
DEFINES['MOZ_OMX_DECODER'] = True
|
|
|
|
|