summaryrefslogtreecommitdiff
path: root/dom/media
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-09-06 23:42:27 +0000
committerMoonchild <moonchild@palemoon.org>2022-09-06 23:42:27 +0000
commited2a457b0ae2b9b0b844ee2fb4335fb26446ab39 (patch)
tree3c23f44e60e7d756661a96d819ae897dad5e7e2a /dom/media
parentb1b57cefa34927cdf1461fd1700c88592a2ff602 (diff)
parentc927a660ea36b0fe55a47844741d95680236fa96 (diff)
downloaduxp-ed2a457b0ae2b9b0b844ee2fb4335fb26446ab39.tar.gz
Merge branch 're-unify'
Diffstat (limited to 'dom/media')
-rw-r--r--dom/media/flac/moz.build2
-rw-r--r--dom/media/fmp4/moz.build7
-rw-r--r--dom/media/imagecapture/moz.build2
-rw-r--r--dom/media/mediasink/moz.build2
-rw-r--r--dom/media/mediasource/moz.build2
-rw-r--r--dom/media/moz.build8
-rw-r--r--dom/media/mp3/moz.build2
-rw-r--r--dom/media/ogg/moz.build2
-rw-r--r--dom/media/platforms/ffmpeg/ffmpeg57/moz.build2
-rw-r--r--dom/media/platforms/ffmpeg/ffmpeg58/moz.build2
-rw-r--r--dom/media/platforms/ffmpeg/ffmpeg59/moz.build2
-rw-r--r--dom/media/platforms/ffmpeg/ffvpx/moz.build2
-rw-r--r--dom/media/platforms/ffmpeg/libav53/moz.build2
-rw-r--r--dom/media/platforms/ffmpeg/libav54/moz.build2
-rw-r--r--dom/media/platforms/ffmpeg/libav55/moz.build2
-rw-r--r--dom/media/platforms/moz.build8
-rw-r--r--dom/media/platforms/omx/moz.build2
-rw-r--r--dom/media/standalone/moz.build2
-rw-r--r--dom/media/systemservices/moz.build5
-rw-r--r--dom/media/wave/moz.build2
-rw-r--r--dom/media/webm/moz.build2
-rw-r--r--dom/media/webrtc/moz.build11
-rw-r--r--dom/media/webspeech/synth/pico/moz.build2
-rw-r--r--dom/media/webspeech/synth/speechd/moz.build2
-rw-r--r--dom/media/webspeech/synth/windows/moz.build2
25 files changed, 42 insertions, 37 deletions
diff --git a/dom/media/flac/moz.build b/dom/media/flac/moz.build
index 21054fde87..c522d8b9f8 100644
--- a/dom/media/flac/moz.build
+++ b/dom/media/flac/moz.build
@@ -9,7 +9,7 @@ EXPORTS += [
'FlacFrameParser.h',
]
-SOURCES += [
+UNIFIED_SOURCES += [
'FlacDecoder.cpp',
'FlacDemuxer.cpp',
'FlacFrameParser.cpp',
diff --git a/dom/media/fmp4/moz.build b/dom/media/fmp4/moz.build
index 375c6effe7..69e10fc783 100644
--- a/dom/media/fmp4/moz.build
+++ b/dom/media/fmp4/moz.build
@@ -9,10 +9,13 @@ EXPORTS += [
'MP4Stream.h',
]
-SOURCES += [
+UNIFIED_SOURCES += [
'MP4Decoder.cpp',
- 'MP4Demuxer.cpp',
'MP4Stream.cpp',
]
+SOURCES += [
+ 'MP4Demuxer.cpp',
+]
+
FINAL_LIBRARY = 'xul'
diff --git a/dom/media/imagecapture/moz.build b/dom/media/imagecapture/moz.build
index 55f6fcfc36..7f3759bf71 100644
--- a/dom/media/imagecapture/moz.build
+++ b/dom/media/imagecapture/moz.build
@@ -7,7 +7,7 @@ EXPORTS.mozilla.dom += [
'ImageCapture.h'
]
-SOURCES += [
+UNIFIED_SOURCES += [
'CaptureTask.cpp',
'ImageCapture.cpp',
]
diff --git a/dom/media/mediasink/moz.build b/dom/media/mediasink/moz.build
index ce6ed95be2..0aafa0599f 100644
--- a/dom/media/mediasink/moz.build
+++ b/dom/media/mediasink/moz.build
@@ -3,7 +3,7 @@
# 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/.
-SOURCES += [
+UNIFIED_SOURCES += [
'AudioSinkWrapper.cpp',
'DecodedAudioDataSink.cpp',
'DecodedStream.cpp',
diff --git a/dom/media/mediasource/moz.build b/dom/media/mediasource/moz.build
index 775090cb21..be0d7156b5 100644
--- a/dom/media/mediasource/moz.build
+++ b/dom/media/mediasource/moz.build
@@ -20,7 +20,7 @@ EXPORTS.mozilla.dom += [
'SourceBufferList.h',
]
-SOURCES += [
+UNIFIED_SOURCES += [
'ContainerParser.cpp',
'MediaSource.cpp',
'MediaSourceDecoder.cpp',
diff --git a/dom/media/moz.build b/dom/media/moz.build
index 54920359c9..c6e4fcdfb6 100644
--- a/dom/media/moz.build
+++ b/dom/media/moz.build
@@ -183,7 +183,7 @@ EXPORTS.mozilla.dom += [
'VideoTrackList.h',
]
-SOURCES += [
+UNIFIED_SOURCES += [
'AccurateSeekTask.cpp',
'ADTSDecoder.cpp',
'ADTSDemuxer.cpp',
@@ -200,7 +200,6 @@ SOURCES += [
'CanvasCaptureMediaStream.cpp',
'CubebUtils.cpp',
'DecoderDoctorDiagnostics.cpp',
- 'DecoderTraits.cpp',
'DOMMediaStream.cpp',
'EncodedBufferCache.cpp',
'FileBlockCache.cpp',
@@ -256,6 +255,11 @@ SOURCES += [
if CONFIG['OS_TARGET'] == 'WINNT':
SOURCES += [ 'ThreadPoolCOMListener.cpp' ]
+# DecoderTraits.cpp needs to be built separately because of Mac OS X headers.
+SOURCES += [
+ 'DecoderTraits.cpp',
+]
+
# Some codec-related code uses multi-character constants, which GCC and clang
# warn about. Suppress turning this warning into an error.
if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
diff --git a/dom/media/mp3/moz.build b/dom/media/mp3/moz.build
index 349cd6b671..0c9f8cfd4e 100644
--- a/dom/media/mp3/moz.build
+++ b/dom/media/mp3/moz.build
@@ -8,7 +8,7 @@ EXPORTS += [
'MP3Demuxer.h',
]
-SOURCES += [
+UNIFIED_SOURCES += [
'MP3Decoder.cpp',
'MP3Demuxer.cpp',
]
diff --git a/dom/media/ogg/moz.build b/dom/media/ogg/moz.build
index 13a8d1ddc3..dc6f248669 100644
--- a/dom/media/ogg/moz.build
+++ b/dom/media/ogg/moz.build
@@ -12,7 +12,7 @@ EXPORTS += [
'OpusParser.h',
]
-SOURCES += [
+UNIFIED_SOURCES += [
'OggCodecState.cpp',
'OggCodecStore.cpp',
'OggDecoder.cpp',
diff --git a/dom/media/platforms/ffmpeg/ffmpeg57/moz.build b/dom/media/platforms/ffmpeg/ffmpeg57/moz.build
index 00ca9828ad..e9c443a8ea 100644
--- a/dom/media/platforms/ffmpeg/ffmpeg57/moz.build
+++ b/dom/media/platforms/ffmpeg/ffmpeg57/moz.build
@@ -3,7 +3,7 @@
# 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/.
-SOURCES += [
+UNIFIED_SOURCES += [
'../FFmpegAudioDecoder.cpp',
'../FFmpegDataDecoder.cpp',
'../FFmpegDecoderModule.cpp',
diff --git a/dom/media/platforms/ffmpeg/ffmpeg58/moz.build b/dom/media/platforms/ffmpeg/ffmpeg58/moz.build
index 00ca9828ad..e9c443a8ea 100644
--- a/dom/media/platforms/ffmpeg/ffmpeg58/moz.build
+++ b/dom/media/platforms/ffmpeg/ffmpeg58/moz.build
@@ -3,7 +3,7 @@
# 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/.
-SOURCES += [
+UNIFIED_SOURCES += [
'../FFmpegAudioDecoder.cpp',
'../FFmpegDataDecoder.cpp',
'../FFmpegDecoderModule.cpp',
diff --git a/dom/media/platforms/ffmpeg/ffmpeg59/moz.build b/dom/media/platforms/ffmpeg/ffmpeg59/moz.build
index 00ca9828ad..e9c443a8ea 100644
--- a/dom/media/platforms/ffmpeg/ffmpeg59/moz.build
+++ b/dom/media/platforms/ffmpeg/ffmpeg59/moz.build
@@ -3,7 +3,7 @@
# 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/.
-SOURCES += [
+UNIFIED_SOURCES += [
'../FFmpegAudioDecoder.cpp',
'../FFmpegDataDecoder.cpp',
'../FFmpegDecoderModule.cpp',
diff --git a/dom/media/platforms/ffmpeg/ffvpx/moz.build b/dom/media/platforms/ffmpeg/ffvpx/moz.build
index 073d769f89..11650982ab 100644
--- a/dom/media/platforms/ffmpeg/ffvpx/moz.build
+++ b/dom/media/platforms/ffmpeg/ffvpx/moz.build
@@ -8,7 +8,7 @@ EXPORTS += [
'FFVPXRuntimeLinker.h',
]
-SOURCES += [
+UNIFIED_SOURCES += [
'../FFmpegAudioDecoder.cpp',
'../FFmpegDataDecoder.cpp',
'../FFmpegDecoderModule.cpp',
diff --git a/dom/media/platforms/ffmpeg/libav53/moz.build b/dom/media/platforms/ffmpeg/libav53/moz.build
index 0ed3423e19..f3ed1a505c 100644
--- a/dom/media/platforms/ffmpeg/libav53/moz.build
+++ b/dom/media/platforms/ffmpeg/libav53/moz.build
@@ -3,7 +3,7 @@
# 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/.
-SOURCES += [
+UNIFIED_SOURCES += [
'../FFmpegAudioDecoder.cpp',
'../FFmpegDataDecoder.cpp',
'../FFmpegDecoderModule.cpp',
diff --git a/dom/media/platforms/ffmpeg/libav54/moz.build b/dom/media/platforms/ffmpeg/libav54/moz.build
index 0ed3423e19..f3ed1a505c 100644
--- a/dom/media/platforms/ffmpeg/libav54/moz.build
+++ b/dom/media/platforms/ffmpeg/libav54/moz.build
@@ -3,7 +3,7 @@
# 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/.
-SOURCES += [
+UNIFIED_SOURCES += [
'../FFmpegAudioDecoder.cpp',
'../FFmpegDataDecoder.cpp',
'../FFmpegDecoderModule.cpp',
diff --git a/dom/media/platforms/ffmpeg/libav55/moz.build b/dom/media/platforms/ffmpeg/libav55/moz.build
index 00ca9828ad..e9c443a8ea 100644
--- a/dom/media/platforms/ffmpeg/libav55/moz.build
+++ b/dom/media/platforms/ffmpeg/libav55/moz.build
@@ -3,7 +3,7 @@
# 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/.
-SOURCES += [
+UNIFIED_SOURCES += [
'../FFmpegAudioDecoder.cpp',
'../FFmpegDataDecoder.cpp',
'../FFmpegDecoderModule.cpp',
diff --git a/dom/media/platforms/moz.build b/dom/media/platforms/moz.build
index a32476133d..6312787ae2 100644
--- a/dom/media/platforms/moz.build
+++ b/dom/media/platforms/moz.build
@@ -15,7 +15,7 @@ EXPORTS += [
'wrappers/H264Converter.h'
]
-SOURCES += [
+UNIFIED_SOURCES += [
'agnostic/AgnosticDecoderModule.cpp',
'agnostic/BlankDecoderModule.cpp',
'agnostic/OpusDecoder.cpp',
@@ -41,7 +41,7 @@ if CONFIG['MOZ_WMF']:
if CONFIG['MOZ_FFVPX'] or CONFIG['MOZ_FFMPEG']:
# common code to either FFmpeg or FFVPX
- SOURCES += [
+ UNIFIED_SOURCES += [
'ffmpeg/FFmpegLibWrapper.cpp',
]
@@ -59,7 +59,7 @@ if CONFIG['MOZ_AV1']:
EXPORTS += [
'agnostic/AOMDecoder.h',
]
- SOURCES += [
+ UNIFIED_SOURCES += [
'agnostic/AOMDecoder.cpp',
]
@@ -67,7 +67,7 @@ if CONFIG['MOZ_APPLEMEDIA']:
EXPORTS += [
'apple/AppleDecoderModule.h',
]
- SOURCES += [
+ UNIFIED_SOURCES += [
'apple/AppleATDecoder.cpp',
'apple/AppleCMLinker.cpp',
'apple/AppleDecoderModule.cpp',
diff --git a/dom/media/platforms/omx/moz.build b/dom/media/platforms/omx/moz.build
index c69cff7802..1102d8ab02 100644
--- a/dom/media/platforms/omx/moz.build
+++ b/dom/media/platforms/omx/moz.build
@@ -7,7 +7,7 @@ EXPORTS += [
'OmxDecoderModule.h',
]
-SOURCES += [
+UNIFIED_SOURCES += [
'OmxDataDecoder.cpp',
'OmxDecoderModule.cpp',
'OmxPlatformLayer.cpp',
diff --git a/dom/media/standalone/moz.build b/dom/media/standalone/moz.build
index 7ef15adaa9..90e0e5d30b 100644
--- a/dom/media/standalone/moz.build
+++ b/dom/media/standalone/moz.build
@@ -6,7 +6,7 @@
if CONFIG['OS_TARGET'] != 'WINNT':
Library('media_standalone')
-SOURCES += [
+UNIFIED_SOURCES += [
'../AudioChannelFormat.cpp',
'../AudioSegment.cpp',
'../SimpleImageBuffer.cpp',
diff --git a/dom/media/systemservices/moz.build b/dom/media/systemservices/moz.build
index 402a6988c0..ce94408d2c 100644
--- a/dom/media/systemservices/moz.build
+++ b/dom/media/systemservices/moz.build
@@ -11,7 +11,7 @@ if CONFIG['MOZ_WEBRTC']:
'LoadManagerFactory.h',
'LoadMonitor.h',
]
- SOURCES += [
+ UNIFIED_SOURCES += [
'CamerasChild.cpp',
'CamerasParent.cpp',
'LoadManager.cpp',
@@ -57,8 +57,7 @@ EXPORTS.mozilla.media += ['CamerasTypes.h',
'MediaTaskUtils.h',
'MediaUtils.h',
]
-
-SOURCES += [
+UNIFIED_SOURCES += [
'MediaChild.cpp',
'MediaParent.cpp',
'MediaSystemResourceClient.cpp',
diff --git a/dom/media/wave/moz.build b/dom/media/wave/moz.build
index 9c39205701..2f61895859 100644
--- a/dom/media/wave/moz.build
+++ b/dom/media/wave/moz.build
@@ -8,7 +8,7 @@ EXPORTS += [
'WaveDemuxer.h',
]
-SOURCES += [
+UNIFIED_SOURCES += [
'WaveDecoder.cpp',
'WaveDemuxer.cpp',
]
diff --git a/dom/media/webm/moz.build b/dom/media/webm/moz.build
index dc9f30668c..e9387e8c98 100644
--- a/dom/media/webm/moz.build
+++ b/dom/media/webm/moz.build
@@ -10,7 +10,7 @@ EXPORTS += [
'WebMDemuxer.h',
]
-SOURCES += [
+UNIFIED_SOURCES += [
'WebMBufferedParser.cpp',
'WebMDecoder.cpp',
'WebMDemuxer.cpp',
diff --git a/dom/media/webrtc/moz.build b/dom/media/webrtc/moz.build
index 4c53406e0a..9f5dc661ae 100644
--- a/dom/media/webrtc/moz.build
+++ b/dom/media/webrtc/moz.build
@@ -30,14 +30,15 @@ if CONFIG['MOZ_WEBRTC']:
UNIFIED_SOURCES += [
'MediaEngineCameraVideoSource.cpp',
'MediaEngineRemoteVideoSource.cpp',
- ]
- SOURCES += [
'MediaEngineTabVideoSource.cpp',
- 'MediaEngineWebRTC.cpp',
'MediaEngineWebRTCAudio.cpp',
'RTCCertificate.cpp',
'RTCIdentityProviderRegistrar.cpp',
]
+ # MediaEngineWebRTC.cpp needs to be built separately.
+ SOURCES += [
+ 'MediaEngineWebRTC.cpp',
+ ]
LOCAL_INCLUDES += [
'/dom/base',
'/media/libyuv/include',
@@ -51,10 +52,8 @@ XPIDL_SOURCES += [
]
UNIFIED_SOURCES += [
- 'MediaTrackConstraints.cpp',
-]
-SOURCES += [
'MediaEngineDefault.cpp',
+ 'MediaTrackConstraints.cpp',
'PeerIdentity.cpp',
]
diff --git a/dom/media/webspeech/synth/pico/moz.build b/dom/media/webspeech/synth/pico/moz.build
index a889f891d7..30b29e9402 100644
--- a/dom/media/webspeech/synth/pico/moz.build
+++ b/dom/media/webspeech/synth/pico/moz.build
@@ -3,7 +3,7 @@
# 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/.
-SOURCES += [
+UNIFIED_SOURCES += [
'nsPicoService.cpp',
'PicoModule.cpp'
]
diff --git a/dom/media/webspeech/synth/speechd/moz.build b/dom/media/webspeech/synth/speechd/moz.build
index 9cea481fbd..4fb97db370 100644
--- a/dom/media/webspeech/synth/speechd/moz.build
+++ b/dom/media/webspeech/synth/speechd/moz.build
@@ -3,7 +3,7 @@
# 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/.
-SOURCES += [
+UNIFIED_SOURCES += [
'SpeechDispatcherModule.cpp',
'SpeechDispatcherService.cpp'
]
diff --git a/dom/media/webspeech/synth/windows/moz.build b/dom/media/webspeech/synth/windows/moz.build
index 9d8bb3ac61..d49a5a0cb1 100644
--- a/dom/media/webspeech/synth/windows/moz.build
+++ b/dom/media/webspeech/synth/windows/moz.build
@@ -3,7 +3,7 @@
# 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/.
-SOURCES += [
+UNIFIED_SOURCES += [
'SapiModule.cpp',
'SapiService.cpp'
]