Bug 939584 - Build some of the directories under content/media in unified mode; r=roc

This commit is contained in:
Ehsan Akhgari 2013-11-17 21:31:46 -05:00
parent cae77bc6ef
commit c426806741
13 changed files with 30 additions and 15 deletions

View File

@ -11,7 +11,7 @@ EXPORTS += [
'AppleMP3Reader.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'AppleDecoder.cpp',
'AppleMP3Reader.cpp',
]

View File

@ -14,14 +14,14 @@ EXPORTS += [
'TrackMetadataBase.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'MediaEncoder.cpp',
'TrackEncoder.cpp',
]
if CONFIG['MOZ_OPUS']:
EXPORTS += ['OpusTrackEncoder.h']
SOURCES += ['OpusTrackEncoder.cpp']
UNIFIED_SOURCES += ['OpusTrackEncoder.cpp']
LIBRARY_NAME = 'gkconencoder_s'

View File

@ -20,7 +20,7 @@ EXPORTS.mozilla.dom += [
'SourceBufferList.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'MediaSource.cpp',
'MediaSourceDecoder.cpp',
'SourceBuffer.cpp',

View File

@ -13,7 +13,7 @@ EXPORTS += [
'OggWriter.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'OggCodecState.cpp',
'OggDecoder.cpp',
'OggReader.cpp',

View File

@ -12,7 +12,7 @@ EXPORTS += [
'RawStructs.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'RawDecoder.cpp',
'RawReader.cpp',
]

View File

@ -11,7 +11,7 @@ EXPORTS += [
'WaveReader.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'WaveDecoder.cpp',
'WaveReader.cpp',
]

View File

@ -10,10 +10,12 @@
#include "nsTArray.h"
#include "mozilla/ReentrantMonitor.h"
class TimeRanges;
namespace mozilla {
namespace dom {
class TimeRanges;
}
// Stores a stream byte offset and the scaled timecode of the block at
// that offset. The timecode must be scaled by the stream's timecode
// scale before use.

View File

@ -11,7 +11,7 @@ EXPORTS += [
'WebMReader.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'WebMBufferedParser.cpp',
'WebMDecoder.cpp',
'WebMReader.cpp',

View File

@ -14,6 +14,10 @@
namespace mozilla {
#ifdef LOG
#undef LOG
#endif
#ifdef PR_LOGGING
extern PRLogModuleInfo* GetMediaManagerLog();
#define LOG(msg) PR_LOG(GetMediaManagerLog(), PR_LOG_DEBUG, msg)

View File

@ -15,13 +15,16 @@ EXPORTS += [
if CONFIG['MOZ_WEBRTC']:
EXPORTS += ['LoadMonitor.h', 'MediaEngineWebRTC.h']
SOURCES += [
UNIFIED_SOURCES += [
'LoadMonitor.cpp',
'MediaEngineTabVideoSource.cpp',
'MediaEngineWebRTC.cpp',
'MediaEngineWebRTCAudio.cpp',
'MediaEngineWebRTCVideo.cpp',
]
# MediaEngineWebRTC.cpp needs to be built separately.
SOURCES += [
'MediaEngineWebRTC.cpp',
]
LOCAL_INCLUDES += [
'/dom/base',
'/dom/camera',
@ -34,7 +37,7 @@ XPIDL_SOURCES += [
'nsITabSource.idl'
]
SOURCES += [
UNIFIED_SOURCES += [
'MediaEngineDefault.cpp',
]

View File

@ -25,7 +25,7 @@ EXPORTS.mozilla.dom += [
'test/FakeSpeechRecognitionService.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'EnableWebSpeechRecognitionCheck.cpp',
'endpointer.cc',
'energy_endpointer.cc',

View File

@ -27,7 +27,7 @@ if CONFIG['MOZ_WEBSPEECH']:
'SpeechSynthesisVoice.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'EnableSpeechSynthesisCheck.cpp',
'ipc/SpeechSynthesisChild.cpp',
'ipc/SpeechSynthesisParent.cpp',

View File

@ -8,6 +8,12 @@
#include "nsSpeechTask.h"
#include "SpeechSynthesis.h"
// GetCurrentTime is defined in winbase.h as zero argument macro forwarding to
// GetTickCount() and conflicts with nsSpeechTask::GetCurrentTime().
#ifdef GetCurrentTime
#undef GetCurrentTime
#endif
#undef LOG
#ifdef PR_LOGGING
extern PRLogModuleInfo* GetSpeechSynthLog();