michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: PARALLEL_DIRS += [ michael@0: 'encoder', michael@0: 'mediasource', michael@0: 'ogg', michael@0: 'webaudio', michael@0: 'webvtt' michael@0: ] michael@0: michael@0: TEST_TOOL_DIRS += ['compiledtest'] michael@0: michael@0: if CONFIG['MOZ_RAW']: michael@0: PARALLEL_DIRS += ['raw'] michael@0: michael@0: if CONFIG['MOZ_WAVE']: michael@0: PARALLEL_DIRS += ['wave'] michael@0: michael@0: if CONFIG['MOZ_WEBM']: michael@0: PARALLEL_DIRS += ['webm'] michael@0: michael@0: if CONFIG['MOZ_GSTREAMER']: michael@0: PARALLEL_DIRS += ['gstreamer'] michael@0: michael@0: if CONFIG['MOZ_DIRECTSHOW']: michael@0: PARALLEL_DIRS += ['directshow'] michael@0: michael@0: if CONFIG['MOZ_MEDIA_PLUGINS']: michael@0: PARALLEL_DIRS += ['plugins'] michael@0: michael@0: if CONFIG['MOZ_WMF']: michael@0: PARALLEL_DIRS += ['wmf'] michael@0: michael@0: if CONFIG['MOZ_FMP4']: michael@0: PARALLEL_DIRS += ['fmp4'] michael@0: michael@0: if CONFIG['MOZ_APPLEMEDIA']: michael@0: PARALLEL_DIRS += ['apple'] michael@0: michael@0: PARALLEL_DIRS += ['webrtc'] michael@0: michael@0: if CONFIG['MOZ_OMX_DECODER']: michael@0: PARALLEL_DIRS += ['omx'] michael@0: PARALLEL_DIRS += ['omx/mediaresourcemanager'] michael@0: michael@0: PARALLEL_DIRS += ['webspeech'] michael@0: michael@0: TEST_DIRS += [ michael@0: 'test', michael@0: 'gtest', michael@0: ] michael@0: michael@0: EXPORTS += [ michael@0: 'AbstractMediaDecoder.h', michael@0: 'AudioChannelFormat.h', michael@0: 'AudioCompactor.h', michael@0: 'AudioEventTimeline.h', michael@0: 'AudioMixer.h', michael@0: 'AudioNodeEngine.h', michael@0: 'AudioNodeExternalInputStream.h', michael@0: 'AudioNodeStream.h', michael@0: 'AudioSampleFormat.h', michael@0: 'AudioSegment.h', michael@0: 'AudioStream.h', michael@0: 'BufferDecoder.h', michael@0: 'BufferMediaResource.h', michael@0: 'DecoderTraits.h', michael@0: 'DOMMediaStream.h', michael@0: 'EncodedBufferCache.h', michael@0: 'FileBlockCache.h', michael@0: 'Latency.h', michael@0: 'MediaCache.h', michael@0: 'MediaData.h', michael@0: 'MediaDecoder.h', michael@0: 'MediaDecoderOwner.h', michael@0: 'MediaDecoderReader.h', michael@0: 'MediaDecoderStateMachine.h', michael@0: 'MediaInfo.h', michael@0: 'MediaMetadataManager.h', michael@0: 'MediaQueue.h', michael@0: 'MediaRecorder.h', michael@0: 'MediaResource.h', michael@0: 'MediaSegment.h', michael@0: 'MediaStreamGraph.h', michael@0: 'MediaTaskQueue.h', michael@0: 'MP3FrameParser.h', michael@0: 'RtspMediaResource.h', michael@0: 'SharedBuffer.h', michael@0: 'SharedThreadPool.h', michael@0: 'StreamBuffer.h', michael@0: 'TimeVarying.h', michael@0: 'TrackUnionStream.h', michael@0: 'VideoFrameContainer.h', michael@0: 'VideoSegment.h', michael@0: 'VideoUtils.h', michael@0: 'VorbisUtils.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla.dom += [ michael@0: 'AudioStreamTrack.h', michael@0: 'MediaStreamTrack.h', michael@0: 'TextTrack.h', michael@0: 'TextTrackCue.h', michael@0: 'TextTrackCueList.h', michael@0: 'TextTrackList.h', michael@0: 'TextTrackRegion.h', michael@0: 'VideoPlaybackQuality.h', michael@0: 'VideoStreamTrack.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'AudioChannelFormat.cpp', michael@0: 'AudioCompactor.cpp', michael@0: 'AudioNodeEngine.cpp', michael@0: 'AudioNodeExternalInputStream.cpp', michael@0: 'AudioNodeStream.cpp', michael@0: 'AudioSegment.cpp', michael@0: 'AudioStream.cpp', michael@0: 'AudioStreamTrack.cpp', michael@0: 'BufferDecoder.cpp', michael@0: 'DOMMediaStream.cpp', michael@0: 'EncodedBufferCache.cpp', michael@0: 'FileBlockCache.cpp', michael@0: 'MediaCache.cpp', michael@0: 'MediaData.cpp', michael@0: 'MediaDecoder.cpp', michael@0: 'MediaDecoderReader.cpp', michael@0: 'MediaDecoderStateMachine.cpp', michael@0: 'MediaRecorder.cpp', michael@0: 'MediaResource.cpp', michael@0: 'MediaShutdownManager.cpp', michael@0: 'MediaStreamGraph.cpp', michael@0: 'MediaStreamTrack.cpp', michael@0: 'MediaTaskQueue.cpp', michael@0: 'MP3FrameParser.cpp', michael@0: 'RtspMediaResource.cpp', michael@0: 'SharedThreadPool.cpp', michael@0: 'StreamBuffer.cpp', michael@0: 'TextTrack.cpp', michael@0: 'TextTrackCue.cpp', michael@0: 'TextTrackCueList.cpp', michael@0: 'TextTrackList.cpp', michael@0: 'TextTrackRegion.cpp', michael@0: 'VideoFrameContainer.cpp', michael@0: 'VideoPlaybackQuality.cpp', michael@0: 'VideoSegment.cpp', michael@0: 'VideoStreamTrack.cpp', michael@0: 'VideoUtils.cpp', michael@0: 'WebVTTListener.cpp', michael@0: ] michael@0: michael@0: # DecoderTraits.cpp needs to be built separately because of Mac OS X headers. michael@0: # Latency.cpp needs to be built separately because it forces NSPR logging. michael@0: SOURCES += [ michael@0: 'DecoderTraits.cpp', michael@0: 'Latency.cpp', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['BUILD_ARM_NEON']: michael@0: SOURCES += ['AudioNodeEngineNEON.cpp'] michael@0: SOURCES['AudioNodeEngineNEON.cpp'].flags += ['-mfpu=neon'] michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'gklayout' michael@0: LOCAL_INCLUDES += [ michael@0: '/content/base/src', michael@0: '/layout/generic', michael@0: '/layout/xul', michael@0: '/netwerk/base/src', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_DIRECTSHOW']: michael@0: LOCAL_INCLUDES += [ michael@0: '/media/webrtc/trunk/webrtc/modules/video_capture/windows', michael@0: ] michael@0: michael@0: DEFINES['MOZILLA_INTERNAL_API'] = True michael@0: michael@0: if CONFIG['MOZ_OMX_DECODER']: michael@0: DEFINES['MOZ_OMX_DECODER'] = True michael@0: