# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

# Due to duplicate file names, we compile libavutil/x86 in its own
# moz.build file.
if CONFIG['FFVPX_ASFLAGS']:
    DIRS += ['x86']

#    'dummy_funcs.c',

SharedLibrary('mozavcodec')
SOURCES += [
    'aac_ac3_parser.c',
    'aac_parser.c',
    'aacadtsdec.c',
    'aacdec.c',
    'aacps_float.c',
    'aacpsdsp_float.c',
    'aacsbr.c',
    'aactab.c',
    'allcodecs.c',
    'audioconvert.c',
    'avdct.c',
    'avfft.c',
    'avpacket.c',
    'avpicture.c',
    'bitstream.c',
    'bswapdsp.c',
    'cabac.c',
    'cbrt_data.c',
    'codec_desc.c',
    'dct.c',
    'dct32_fixed.c',
    'dct32_float.c',
    'dirac.c',
    'dv_profile.c',
    'error_resilience.c',
    'faandct.c',
    'faanidct.c',
    'fdctdsp.c',
    'fft_fixed.c',
    'fft_fixed_32.c',
    'fft_float.c',
    'fft_init_table.c',
    'flac.c',
    'flac_parser.c',
    'flacdata.c',
    'flacdec.c',
    'flacdsp.c',
    'golomb.c',
    'h2645_parse.c',
    'h264_cabac.c',
    'h264_cavlc.c',
    'h264_direct.c',
    'h264_loopfilter.c',
    'h264_mb.c',
    'h264_parse.c',
    'h264_parser.c',
    'h264_picture.c',
    'h264_ps.c',
    'h264_refs.c',
    'h264_sei.c',
    'h264_slice.c',
    'h264chroma.c',
    'h264data.c',
    'h264dec.c',
    'h264dsp.c',
    'h264idct.c',
    'h264pred.c',
    'h264qpel.c',
    'hevc.c',
    'hevc_cabac.c',
    'hevc_data.c',
    'hevc_filter.c',
    'hevc_mvs.c',
    'hevc_parser.c',
    'hevc_ps.c',
    'hevc_refs.c',
    'hevc_sei.c',
    'hevcdsp.c',
    'hevcpred.c',
    'idctdsp.c',
    'imdct15.c',
    'imgconvert.c',
    'jfdctfst.c',
    'jfdctint.c',
    'jrevdct.c',
    'kbdwin.c',
    'latm_parser.c',
    'log2_tab.c',
    'mathtables.c',
    'mdct_fixed.c',
    'mdct_fixed_32.c',
    'mdct_float.c',
    'me_cmp.c',
    'mediacodec.c',
    'mpeg4audio.c',
    'mpegaudio.c',
    'mpegaudio_parser.c',
    'mpegaudiodata.c',
    'mpegaudiodec_fixed.c',
    'mpegaudiodecheader.c',
    'mpegaudiodsp.c',
    'mpegaudiodsp_data.c',
    'mpegaudiodsp_fixed.c',
    'mpegaudiodsp_float.c',
    'options.c',
    'parser.c',
    'pixblockdsp.c',
    'profiles.c',
    'pthread.c',
    'pthread_frame.c',
    'pthread_slice.c',
    'qsv_api.c',
    'raw.c',
    'rdft.c',
    'resample.c',
    'resample2.c',
    'reverse.c',
    'sbrdsp.c',
    'simple_idct.c',
    'sinewin.c',
    'sinewin_fixed.c',
    'startcode.c',
    'utils.c',
    'videodsp.c',
    'vorbis_parser.c',
    'vp56rac.c',
    'vp8.c',
    'vp8_parser.c',
    'vp8dsp.c',
    'vp9.c',
    'vp9_parser.c',
    'vp9dsp.c',
    'vp9dsp_10bpp.c',
    'vp9dsp_12bpp.c',
    'vp9dsp_8bpp.c',
    'xiph.c'
]

SYMBOLS_FILE = 'avcodec.symbols'
NO_VISIBILITY_FLAGS = True

USE_LIBS += [
     'mozavutil'
]

include("../ffvpxcommon.mozbuild")
