2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:19 +00: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 23:57:59 +00:00
|
|
|
DIRS += [
|
2013-09-19 15:26:00 +00:00
|
|
|
'encoder',
|
2014-05-18 03:05:46 +00:00
|
|
|
'gmp',
|
2013-09-19 15:26:00 +00:00
|
|
|
'mediasource',
|
2014-02-21 02:01:00 +00:00
|
|
|
'ogg',
|
2014-07-29 14:45:37 +00:00
|
|
|
'systemservices',
|
2013-09-19 15:26:00 +00:00
|
|
|
'webaudio',
|
|
|
|
'webvtt'
|
|
|
|
]
|
2013-02-25 20:47:19 +00:00
|
|
|
|
2014-07-28 23:55:55 +00:00
|
|
|
TEST_DIRS += ['compiledtest']
|
2014-03-24 10:06:06 +00:00
|
|
|
|
2013-02-25 20:47:19 +00:00
|
|
|
if CONFIG['MOZ_RAW']:
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ['raw']
|
2013-02-25 20:47:19 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WAVE']:
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ['wave']
|
2013-02-25 20:47:19 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WEBM']:
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ['webm']
|
2013-02-25 20:47:19 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_GSTREAMER']:
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ['gstreamer']
|
2013-02-25 20:47:19 +00:00
|
|
|
|
2013-08-13 04:49:25 +00:00
|
|
|
if CONFIG['MOZ_DIRECTSHOW']:
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ['directshow']
|
2013-08-13 04:49:25 +00:00
|
|
|
|
2014-07-17 01:32:56 +00:00
|
|
|
if CONFIG['MOZ_ANDROID_OMX']:
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ['android']
|
2013-02-25 20:47:19 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WMF']:
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ['wmf']
|
2013-02-25 20:47:19 +00:00
|
|
|
|
2013-11-20 21:04:32 +00:00
|
|
|
if CONFIG['MOZ_FMP4']:
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ['fmp4']
|
2013-11-20 21:04:32 +00:00
|
|
|
|
2013-09-14 01:14:41 +00:00
|
|
|
if CONFIG['MOZ_APPLEMEDIA']:
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ['apple']
|
2013-09-14 01:14:41 +00:00
|
|
|
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ['webrtc']
|
2013-02-25 20:47:19 +00:00
|
|
|
|
2013-05-02 21:21:22 +00:00
|
|
|
if CONFIG['MOZ_OMX_DECODER']:
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ['omx']
|
|
|
|
DIRS += ['omx/mediaresourcemanager']
|
2013-02-25 20:47:19 +00:00
|
|
|
|
2013-09-16 02:50:24 +00:00
|
|
|
DIRS += ['webspeech', 'imagecapture']
|
2013-03-27 21:08:17 +00:00
|
|
|
|
2014-07-16 20:54:00 +00:00
|
|
|
if CONFIG['MOZ_EME']:
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ['eme']
|
2014-06-06 20:52:15 +00:00
|
|
|
|
2014-01-07 03:04:51 +00:00
|
|
|
TEST_DIRS += [
|
|
|
|
'gtest',
|
|
|
|
]
|
2013-02-25 20:47:19 +00:00
|
|
|
|
2014-07-31 19:54:21 +00:00
|
|
|
MOCHITEST_MANIFESTS += ['test/mochitest.ini']
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'AbstractMediaDecoder.h',
|
2014-08-25 13:26:34 +00:00
|
|
|
'AudioBufferUtils.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'AudioChannelFormat.h',
|
2014-02-05 23:11:25 +00:00
|
|
|
'AudioCompactor.h',
|
2014-03-24 10:06:06 +00:00
|
|
|
'AudioMixer.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'AudioSampleFormat.h',
|
|
|
|
'AudioSegment.h',
|
|
|
|
'AudioStream.h',
|
|
|
|
'BufferMediaResource.h',
|
2014-08-25 13:26:09 +00:00
|
|
|
'CubebUtils.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'DecoderTraits.h',
|
2013-10-23 23:05:43 +00:00
|
|
|
'DOMMediaStream.h',
|
2013-07-05 01:50:25 +00:00
|
|
|
'EncodedBufferCache.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'FileBlockCache.h',
|
2014-04-25 14:09:30 +00:00
|
|
|
'GraphDriver.h',
|
2013-01-28 18:22:37 +00:00
|
|
|
'Latency.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'MediaCache.h',
|
2014-02-04 01:49:21 +00:00
|
|
|
'MediaData.h',
|
2014-06-18 05:07:02 +00:00
|
|
|
'MediaDataDecodedListener.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'MediaDecoder.h',
|
|
|
|
'MediaDecoderOwner.h',
|
|
|
|
'MediaDecoderReader.h',
|
|
|
|
'MediaDecoderStateMachine.h',
|
2014-02-04 01:49:21 +00:00
|
|
|
'MediaInfo.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'MediaMetadataManager.h',
|
2014-02-04 01:49:21 +00:00
|
|
|
'MediaQueue.h',
|
2013-07-05 01:50:25 +00:00
|
|
|
'MediaRecorder.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'MediaResource.h',
|
|
|
|
'MediaSegment.h',
|
|
|
|
'MediaStreamGraph.h',
|
2014-02-05 01:29:26 +00:00
|
|
|
'MediaTaskQueue.h',
|
2014-04-16 03:06:45 +00:00
|
|
|
'MediaTrack.h',
|
|
|
|
'MediaTrackList.h',
|
2013-10-23 23:05:43 +00:00
|
|
|
'MP3FrameParser.h',
|
2014-06-19 02:09:35 +00:00
|
|
|
'nsIDocumentActivity.h',
|
2013-09-23 10:12:11 +00:00
|
|
|
'RtspMediaResource.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'SharedBuffer.h',
|
2014-01-23 04:21:05 +00:00
|
|
|
'SharedThreadPool.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'StreamBuffer.h',
|
2014-08-20 21:23:22 +00:00
|
|
|
'ThreadPoolCOMListener.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'TimeVarying.h',
|
2013-05-21 19:17:47 +00:00
|
|
|
'TrackUnionStream.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'VideoFrameContainer.h',
|
|
|
|
'VideoSegment.h',
|
|
|
|
'VideoUtils.h',
|
|
|
|
'VorbisUtils.h',
|
|
|
|
]
|
|
|
|
|
2013-03-27 01:32:51 +00:00
|
|
|
EXPORTS.mozilla.dom += [
|
|
|
|
'AudioStreamTrack.h',
|
2014-04-16 03:06:45 +00:00
|
|
|
'AudioTrack.h',
|
|
|
|
'AudioTrackList.h',
|
2013-03-27 01:32:51 +00:00
|
|
|
'MediaStreamTrack.h',
|
2013-05-21 16:14:00 +00:00
|
|
|
'TextTrack.h',
|
|
|
|
'TextTrackCue.h',
|
|
|
|
'TextTrackCueList.h',
|
|
|
|
'TextTrackList.h',
|
2013-09-13 23:44:33 +00:00
|
|
|
'TextTrackRegion.h',
|
2013-06-21 03:14:18 +00:00
|
|
|
'VideoPlaybackQuality.h',
|
2013-03-27 01:32:51 +00:00
|
|
|
'VideoStreamTrack.h',
|
2014-04-16 03:06:45 +00:00
|
|
|
'VideoTrack.h',
|
|
|
|
'VideoTrackList.h',
|
2013-03-27 01:32:51 +00:00
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
|
2013-11-21 02:12:13 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'AudioChannelFormat.cpp',
|
2014-02-05 23:11:25 +00:00
|
|
|
'AudioCompactor.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'AudioSegment.cpp',
|
2013-12-11 05:03:30 +00:00
|
|
|
'AudioSink.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'AudioStream.cpp',
|
|
|
|
'AudioStreamTrack.cpp',
|
2014-04-16 03:06:45 +00:00
|
|
|
'AudioTrack.cpp',
|
|
|
|
'AudioTrackList.cpp',
|
2014-08-25 13:26:09 +00:00
|
|
|
'CubebUtils.cpp',
|
2013-10-23 23:05:43 +00:00
|
|
|
'DOMMediaStream.cpp',
|
2013-07-05 01:50:25 +00:00
|
|
|
'EncodedBufferCache.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'FileBlockCache.cpp',
|
2014-04-25 14:09:30 +00:00
|
|
|
"GraphDriver.cpp",
|
2013-04-23 21:54:15 +00:00
|
|
|
'MediaCache.cpp',
|
2014-02-04 01:49:21 +00:00
|
|
|
'MediaData.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'MediaDecoder.cpp',
|
|
|
|
'MediaDecoderReader.cpp',
|
|
|
|
'MediaDecoderStateMachine.cpp',
|
2014-07-11 07:11:00 +00:00
|
|
|
'MediaDecoderStateMachineScheduler.cpp',
|
2013-07-05 01:50:25 +00:00
|
|
|
'MediaRecorder.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'MediaResource.cpp',
|
2013-12-18 03:59:11 +00:00
|
|
|
'MediaShutdownManager.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'MediaStreamGraph.cpp',
|
|
|
|
'MediaStreamTrack.cpp',
|
2014-02-05 01:29:26 +00:00
|
|
|
'MediaTaskQueue.cpp',
|
2014-04-16 03:06:45 +00:00
|
|
|
'MediaTrack.cpp',
|
|
|
|
'MediaTrackList.cpp',
|
2013-10-23 23:05:43 +00:00
|
|
|
'MP3FrameParser.cpp',
|
2013-09-23 10:12:11 +00:00
|
|
|
'RtspMediaResource.cpp',
|
2014-01-23 04:21:05 +00:00
|
|
|
'SharedThreadPool.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'StreamBuffer.cpp',
|
|
|
|
'TextTrack.cpp',
|
|
|
|
'TextTrackCue.cpp',
|
|
|
|
'TextTrackCueList.cpp',
|
|
|
|
'TextTrackList.cpp',
|
2013-09-13 23:44:33 +00:00
|
|
|
'TextTrackRegion.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'VideoFrameContainer.cpp',
|
2013-06-21 03:14:18 +00:00
|
|
|
'VideoPlaybackQuality.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'VideoSegment.cpp',
|
|
|
|
'VideoStreamTrack.cpp',
|
2014-04-16 03:06:45 +00:00
|
|
|
'VideoTrack.cpp',
|
|
|
|
'VideoTrackList.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'VideoUtils.cpp',
|
2013-09-19 15:26:00 +00:00
|
|
|
'WebVTTListener.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
2013-08-13 07:39:42 +00:00
|
|
|
|
2014-08-20 21:23:22 +00:00
|
|
|
if CONFIG['OS_TARGET'] == 'WINNT':
|
|
|
|
SOURCES += [ 'ThreadPoolCOMListener.cpp' ]
|
|
|
|
|
2013-11-21 02:12:13 +00:00
|
|
|
# DecoderTraits.cpp needs to be built separately because of Mac OS X headers.
|
2013-11-24 06:29:24 +00:00
|
|
|
# Latency.cpp needs to be built separately because it forces NSPR logging.
|
2013-11-21 02:12:13 +00:00
|
|
|
SOURCES += [
|
|
|
|
'DecoderTraits.cpp',
|
2013-11-24 06:29:24 +00:00
|
|
|
'Latency.cpp',
|
2013-11-21 02:12:13 +00:00
|
|
|
]
|
|
|
|
|
2013-08-22 06:55:59 +00:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-08-22 06:56:01 +00:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-10-02 17:17:55 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-07-22 23:37:51 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-11 08:04:06 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/content/base/src',
|
|
|
|
'/layout/generic',
|
2013-12-04 01:06:16 +00:00
|
|
|
'/layout/xul',
|
2014-04-03 11:08:34 +00:00
|
|
|
'/netwerk/base/src',
|
2013-11-11 08:04:06 +00: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 10:05:49 +00:00
|
|
|
if CONFIG['ANDROID_VERSION'] > '15':
|
|
|
|
DEFINES['MOZ_OMX_WEBM_DECODER'] = True
|
2014-07-24 15:55:33 +00:00
|
|
|
|
|
|
|
CFLAGS += CONFIG['GSTREAMER_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['GSTREAMER_CFLAGS']
|