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: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': michael@0: PARALLEL_DIRS += ['fmp4_muxer'] michael@0: michael@0: EXPORTS += [ michael@0: 'ContainerWriter.h', michael@0: 'EncodedFrameContainer.h', michael@0: 'MediaEncoder.h', michael@0: 'TrackEncoder.h', michael@0: 'TrackMetadataBase.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'MediaEncoder.cpp', michael@0: 'TrackEncoder.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_OMX_ENCODER']: michael@0: EXPORTS += ['OmxTrackEncoder.h'] michael@0: UNIFIED_SOURCES += ['OmxTrackEncoder.cpp'] michael@0: michael@0: if CONFIG['MOZ_OPUS']: michael@0: EXPORTS += ['OpusTrackEncoder.h'] michael@0: UNIFIED_SOURCES += ['OpusTrackEncoder.cpp'] michael@0: michael@0: if CONFIG['MOZ_WEBM_ENCODER']: michael@0: EXPORTS += ['VorbisTrackEncoder.h', michael@0: 'VP8TrackEncoder.h', michael@0: ] michael@0: UNIFIED_SOURCES += ['VorbisTrackEncoder.cpp', michael@0: 'VP8TrackEncoder.cpp', michael@0: ] michael@0: LOCAL_INCLUDES += ['/media/libyuv/include'] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: FINAL_LIBRARY = 'gklayout' michael@0: michael@0: # These includes are from Android JB, for use of MediaCodec. michael@0: LOCAL_INCLUDES += ['/ipc/chromium/src'] michael@0: CXXFLAGS += [ michael@0: '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [ michael@0: 'frameworks/native/opengl/include', michael@0: 'frameworks/native/include', michael@0: 'frameworks/av/include/media', michael@0: ] michael@0: ] michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild')