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/.
|
|
|
|
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += [
|
2013-09-19 08:26:00 -07:00
|
|
|
'encoder',
|
2014-05-17 20:05:46 -07:00
|
|
|
'gmp',
|
2013-09-19 08:26:00 -07:00
|
|
|
'mediasource',
|
2014-02-20 18:01:00 -08:00
|
|
|
'ogg',
|
2014-07-29 07:45:37 -07:00
|
|
|
'systemservices',
|
2013-09-19 08:26:00 -07:00
|
|
|
'webaudio',
|
|
|
|
'webvtt'
|
|
|
|
]
|
2013-02-25 12:47:19 -08:00
|
|
|
|
2014-07-28 16:55:55 -07:00
|
|
|
TEST_DIRS += ['compiledtest']
|
2014-03-24 03:06:06 -07:00
|
|
|
|
2013-02-25 12:47:19 -08:00
|
|
|
if CONFIG['MOZ_RAW']:
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += ['raw']
|
2013-02-25 12:47:19 -08:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WAVE']:
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += ['wave']
|
2013-02-25 12:47:19 -08:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WEBM']:
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += ['webm']
|
2013-02-25 12:47:19 -08:00
|
|
|
|
|
|
|
if CONFIG['MOZ_GSTREAMER']:
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += ['gstreamer']
|
2013-02-25 12:47:19 -08:00
|
|
|
|
2013-08-12 21:49:25 -07:00
|
|
|
if CONFIG['MOZ_DIRECTSHOW']:
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += ['directshow']
|
2013-08-12 21:49:25 -07:00
|
|
|
|
2014-07-16 18:32:56 -07:00
|
|
|
if CONFIG['MOZ_ANDROID_OMX']:
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += ['android']
|
2013-02-25 12:47:19 -08:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WMF']:
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += ['wmf']
|
2013-02-25 12:47:19 -08:00
|
|
|
|
2013-11-20 13:04:32 -08:00
|
|
|
if CONFIG['MOZ_FMP4']:
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += ['fmp4']
|
2013-11-20 13:04:32 -08:00
|
|
|
|
2013-09-13 18:14:41 -07:00
|
|
|
if CONFIG['MOZ_APPLEMEDIA']:
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += ['apple']
|
2013-09-13 18:14:41 -07:00
|
|
|
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += ['webrtc']
|
2013-02-25 12:47:19 -08:00
|
|
|
|
2013-05-02 14:21:22 -07:00
|
|
|
if CONFIG['MOZ_OMX_DECODER']:
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += ['omx']
|
|
|
|
DIRS += ['omx/mediaresourcemanager']
|
2013-02-25 12:47:19 -08:00
|
|
|
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += ['webspeech']
|
2013-03-27 14:08:17 -07:00
|
|
|
|
2014-07-16 13:54:00 -07:00
|
|
|
if CONFIG['MOZ_EME']:
|
2014-07-28 16:57:59 -07:00
|
|
|
DIRS += ['eme']
|
2014-06-06 13:52:15 -07:00
|
|
|
|
2014-01-06 19:04:51 -08:00
|
|
|
TEST_DIRS += [
|
|
|
|
'gtest',
|
|
|
|
]
|
2013-02-25 12:47:19 -08:00
|
|
|
|
2014-07-31 12:54:21 -07:00
|
|
|
MOCHITEST_MANIFESTS += ['test/mochitest.ini']
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'AbstractMediaDecoder.h',
|
|
|
|
'AudioChannelFormat.h',
|
2014-02-05 15:11:25 -08:00
|
|
|
'AudioCompactor.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'AudioEventTimeline.h',
|
2014-03-24 03:06:06 -07:00
|
|
|
'AudioMixer.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'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',
|
2014-02-03 17:49:21 -08:00
|
|
|
'MediaData.h',
|
2014-06-17 22:07:02 -07:00
|
|
|
'MediaDataDecodedListener.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'MediaDecoder.h',
|
|
|
|
'MediaDecoderOwner.h',
|
|
|
|
'MediaDecoderReader.h',
|
|
|
|
'MediaDecoderStateMachine.h',
|
2014-02-03 17:49:21 -08:00
|
|
|
'MediaInfo.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'MediaMetadataManager.h',
|
2014-02-03 17:49:21 -08:00
|
|
|
'MediaQueue.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',
|
2014-02-04 17:29:26 -08:00
|
|
|
'MediaTaskQueue.h',
|
2014-04-15 20:06:45 -07:00
|
|
|
'MediaTrack.h',
|
|
|
|
'MediaTrackList.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'MP3FrameParser.h',
|
2014-06-18 19:09:35 -07:00
|
|
|
'nsIDocumentActivity.h',
|
2013-09-23 03:12:11 -07:00
|
|
|
'RtspMediaResource.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'SharedBuffer.h',
|
2014-01-22 20:21:05 -08:00
|
|
|
'SharedThreadPool.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'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',
|
2014-04-15 20:06:45 -07:00
|
|
|
'AudioTrack.h',
|
|
|
|
'AudioTrackList.h',
|
2013-03-26 18:32:51 -07:00
|
|
|
'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',
|
2013-06-20 20:14:18 -07:00
|
|
|
'VideoPlaybackQuality.h',
|
2013-03-26 18:32:51 -07:00
|
|
|
'VideoStreamTrack.h',
|
2014-04-15 20:06:45 -07:00
|
|
|
'VideoTrack.h',
|
|
|
|
'VideoTrackList.h',
|
2013-03-26 18:32:51 -07:00
|
|
|
]
|
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
|
|
|
'AudioChannelFormat.cpp',
|
2014-02-05 15:11:25 -08:00
|
|
|
'AudioCompactor.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'AudioNodeEngine.cpp',
|
2013-07-24 04:29:39 -07:00
|
|
|
'AudioNodeExternalInputStream.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'AudioNodeStream.cpp',
|
|
|
|
'AudioSegment.cpp',
|
2013-12-10 21:03:30 -08:00
|
|
|
'AudioSink.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'AudioStream.cpp',
|
|
|
|
'AudioStreamTrack.cpp',
|
2014-04-15 20:06:45 -07:00
|
|
|
'AudioTrack.cpp',
|
|
|
|
'AudioTrackList.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',
|
|
|
|
'MediaCache.cpp',
|
2014-02-03 17:49:21 -08:00
|
|
|
'MediaData.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'MediaDecoder.cpp',
|
|
|
|
'MediaDecoderReader.cpp',
|
|
|
|
'MediaDecoderStateMachine.cpp',
|
2014-07-11 00:11:00 -07:00
|
|
|
'MediaDecoderStateMachineScheduler.cpp',
|
2013-07-04 18:50:25 -07:00
|
|
|
'MediaRecorder.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'MediaResource.cpp',
|
2013-12-17 19:59:11 -08:00
|
|
|
'MediaShutdownManager.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'MediaStreamGraph.cpp',
|
|
|
|
'MediaStreamTrack.cpp',
|
2014-02-04 17:29:26 -08:00
|
|
|
'MediaTaskQueue.cpp',
|
2014-04-15 20:06:45 -07:00
|
|
|
'MediaTrack.cpp',
|
|
|
|
'MediaTrackList.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'MP3FrameParser.cpp',
|
2013-09-23 03:12:11 -07:00
|
|
|
'RtspMediaResource.cpp',
|
2014-01-22 20:21:05 -08:00
|
|
|
'SharedThreadPool.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',
|
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',
|
2014-04-15 20:06:45 -07:00
|
|
|
'VideoTrack.cpp',
|
|
|
|
'VideoTrackList.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'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.
|
2013-11-23 22:29:24 -08:00
|
|
|
# Latency.cpp needs to be built separately because it forces NSPR logging.
|
2013-11-20 18:12:13 -08:00
|
|
|
SOURCES += [
|
|
|
|
'DecoderTraits.cpp',
|
2013-11-23 22:29:24 -08:00
|
|
|
'Latency.cpp',
|
2013-11-20 18:12:13 -08:00
|
|
|
]
|
|
|
|
|
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']:
|
2014-03-02 12:41:32 -08:00
|
|
|
SOURCES += ['AudioNodeEngineNEON.cpp']
|
|
|
|
SOURCES['AudioNodeEngineNEON.cpp'].flags += ['-mfpu=neon']
|
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')
|
|
|
|
|
2014-07-22 16:37:51 -07:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-11 00:04:06 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/content/base/src',
|
|
|
|
'/layout/generic',
|
2013-12-03 17:06:16 -08:00
|
|
|
'/layout/xul',
|
2014-04-03 04:08:34 -07:00
|
|
|
'/netwerk/base/src',
|
2013-11-11 00:04:06 -08:00
|
|
|
]
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2014-05-07 03:05:49 -07:00
|
|
|
if CONFIG['ANDROID_VERSION'] > '15':
|
|
|
|
DEFINES['MOZ_OMX_WEBM_DECODER'] = True
|
2014-07-24 08:55:33 -07:00
|
|
|
|
|
|
|
CFLAGS += CONFIG['GSTREAMER_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['GSTREAMER_CFLAGS']
|