| # Copyright 2014 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # NOTE: this file is autogenerated by ffmpeg/chromium/scripts/generate_gyp.py |
| |
| import("//build/config/arm.gni") |
| import("ffmpeg_options.gni") |
| |
| # Declare empty versions of each variable for easier +=ing later. |
| ffmpeg_c_sources = [] |
| ffmpeg_gas_sources = [] |
| ffmpeg_yasm_sources = [] |
| |
| ffmpeg_c_sources += [ |
| "libavcodec/allcodecs.c", |
| "libavcodec/avdct.c", |
| "libavcodec/avfft.c", |
| "libavcodec/avpacket.c", |
| "libavcodec/avpicture.c", |
| "libavcodec/bitstream.c", |
| "libavcodec/bitstream_filter.c", |
| "libavcodec/codec_desc.c", |
| "libavcodec/dirac.c", |
| "libavcodec/dv_profile.c", |
| "libavcodec/fft_fixed.c", |
| "libavcodec/fft_fixed_32.c", |
| "libavcodec/fft_float.c", |
| "libavcodec/fft_init_table.c", |
| "libavcodec/flac.c", |
| "libavcodec/flacdata.c", |
| "libavcodec/fmtconvert.c", |
| "libavcodec/golomb.c", |
| "libavcodec/h264pred.c", |
| "libavcodec/hpeldsp.c", |
| "libavcodec/imgconvert.c", |
| "libavcodec/mathtables.c", |
| "libavcodec/mdct_fixed.c", |
| "libavcodec/mdct_fixed_32.c", |
| "libavcodec/mdct_float.c", |
| "libavcodec/mpeg12data.c", |
| "libavcodec/mpeg4audio.c", |
| "libavcodec/mpegaudiodata.c", |
| "libavcodec/options.c", |
| "libavcodec/opus.c", |
| "libavcodec/opus_parser.c", |
| "libavcodec/parser.c", |
| "libavcodec/pcm.c", |
| "libavcodec/pthread.c", |
| "libavcodec/pthread_frame.c", |
| "libavcodec/pthread_slice.c", |
| "libavcodec/raw.c", |
| "libavcodec/rdft.c", |
| "libavcodec/utils.c", |
| "libavcodec/videodsp.c", |
| "libavcodec/vorbis.c", |
| "libavcodec/vorbis_data.c", |
| "libavcodec/vorbis_parser.c", |
| "libavcodec/vorbisdec.c", |
| "libavcodec/vorbisdsp.c", |
| "libavcodec/vp3.c", |
| "libavcodec/vp3_parser.c", |
| "libavcodec/vp3dsp.c", |
| "libavcodec/vp56rac.c", |
| "libavcodec/vp8.c", |
| "libavcodec/vp8_parser.c", |
| "libavcodec/vp8dsp.c", |
| "libavcodec/xiph.c", |
| "libavformat/allformats.c", |
| "libavformat/avio.c", |
| "libavformat/aviobuf.c", |
| "libavformat/cutils.c", |
| "libavformat/dump.c", |
| "libavformat/flac_picture.c", |
| "libavformat/format.c", |
| "libavformat/id3v1.c", |
| "libavformat/id3v2.c", |
| "libavformat/isom.c", |
| "libavformat/matroska.c", |
| "libavformat/matroskadec.c", |
| "libavformat/metadata.c", |
| "libavformat/mux.c", |
| "libavformat/oggdec.c", |
| "libavformat/oggparsecelt.c", |
| "libavformat/oggparsedirac.c", |
| "libavformat/oggparseflac.c", |
| "libavformat/oggparseogm.c", |
| "libavformat/oggparseopus.c", |
| "libavformat/oggparseskeleton.c", |
| "libavformat/oggparsespeex.c", |
| "libavformat/oggparsetheora.c", |
| "libavformat/oggparsevorbis.c", |
| "libavformat/oggparsevp8.c", |
| "libavformat/options.c", |
| "libavformat/os_support.c", |
| "libavformat/pcm.c", |
| "libavformat/replaygain.c", |
| "libavformat/riff.c", |
| "libavformat/riffdec.c", |
| "libavformat/rmsipr.c", |
| "libavformat/seek.c", |
| "libavformat/url.c", |
| "libavformat/utils.c", |
| "libavformat/vorbiscomment.c", |
| "libavformat/wavdec.c", |
| "libavutil/atomic.c", |
| "libavutil/avstring.c", |
| "libavutil/base64.c", |
| "libavutil/bprint.c", |
| "libavutil/buffer.c", |
| "libavutil/channel_layout.c", |
| "libavutil/cpu.c", |
| "libavutil/crc.c", |
| "libavutil/dict.c", |
| "libavutil/display.c", |
| "libavutil/downmix_info.c", |
| "libavutil/error.c", |
| "libavutil/eval.c", |
| "libavutil/fifo.c", |
| "libavutil/file_open.c", |
| "libavutil/fixed_dsp.c", |
| "libavutil/float_dsp.c", |
| "libavutil/frame.c", |
| "libavutil/imgutils.c", |
| "libavutil/intfloat_readwrite.c", |
| "libavutil/intmath.c", |
| "libavutil/lfg.c", |
| "libavutil/log.c", |
| "libavutil/log2_tab.c", |
| "libavutil/mathematics.c", |
| "libavutil/md5.c", |
| "libavutil/mem.c", |
| "libavutil/opt.c", |
| "libavutil/parseutils.c", |
| "libavutil/pixdesc.c", |
| "libavutil/pixelutils.c", |
| "libavutil/random_seed.c", |
| "libavutil/rational.c", |
| "libavutil/samplefmt.c", |
| "libavutil/sha.c", |
| "libavutil/stereo3d.c", |
| "libavutil/threadmessage.c", |
| "libavutil/time.c", |
| "libavutil/timecode.c", |
| "libavutil/utils.c", |
| ] |
| |
| if (ffmpeg_branding == "ChromiumOS" || ffmpeg_branding == "ChromeOS" || ffmpeg_branding == "Chrome") { |
| ffmpeg_c_sources += [ |
| "libavformat/rawdec.c", |
| ] |
| } |
| |
| if (cpu_arch == "x86" || cpu_arch == "x64") { |
| ffmpeg_c_sources += [ |
| "libavcodec/x86/constants.c", |
| "libavcodec/x86/fft_init.c", |
| "libavcodec/x86/fmtconvert_init.c", |
| "libavcodec/x86/h264_intrapred_init.c", |
| "libavcodec/x86/hpeldsp_init.c", |
| "libavcodec/x86/videodsp_init.c", |
| "libavcodec/x86/vorbisdsp_init.c", |
| "libavcodec/x86/vp3dsp_init.c", |
| "libavcodec/x86/vp8dsp_init.c", |
| "libavutil/x86/cpu.c", |
| "libavutil/x86/float_dsp_init.c", |
| "libavutil/x86/lls_init.c", |
| ] |
| ffmpeg_yasm_sources += [ |
| "libavcodec/x86/deinterlace.asm", |
| "libavcodec/x86/fft.asm", |
| "libavcodec/x86/fmtconvert.asm", |
| "libavcodec/x86/fpel.asm", |
| "libavcodec/x86/h264_intrapred.asm", |
| "libavcodec/x86/h264_intrapred_10bit.asm", |
| "libavcodec/x86/hpeldsp.asm", |
| "libavcodec/x86/videodsp.asm", |
| "libavcodec/x86/vorbisdsp.asm", |
| "libavcodec/x86/vp3dsp.asm", |
| "libavcodec/x86/vp8dsp.asm", |
| "libavcodec/x86/vp8dsp_loopfilter.asm", |
| "libavutil/x86/cpuid.asm", |
| "libavutil/x86/emms.asm", |
| "libavutil/x86/float_dsp.asm", |
| "libavutil/x86/lls.asm", |
| ] |
| } |
| |
| if (ffmpeg_branding == "Chrome" || ffmpeg_branding == "ChromeOS") { |
| ffmpeg_c_sources += [ |
| "libavcodec/aac_ac3_parser.c", |
| "libavcodec/aac_parser.c", |
| "libavcodec/aacadtsdec.c", |
| "libavcodec/aacdec.c", |
| "libavcodec/aacps.c", |
| "libavcodec/aacpsdsp.c", |
| "libavcodec/aacsbr.c", |
| "libavcodec/aactab.c", |
| "libavcodec/ac3tab.c", |
| "libavcodec/cabac.c", |
| "libavcodec/dct.c", |
| "libavcodec/dct32_fixed.c", |
| "libavcodec/dct32_float.c", |
| "libavcodec/h264.c", |
| "libavcodec/h264_cabac.c", |
| "libavcodec/h264_cavlc.c", |
| "libavcodec/h264_direct.c", |
| "libavcodec/h264_loopfilter.c", |
| "libavcodec/h264_mb.c", |
| "libavcodec/h264_parser.c", |
| "libavcodec/h264_picture.c", |
| "libavcodec/h264_ps.c", |
| "libavcodec/h264_refs.c", |
| "libavcodec/h264_sei.c", |
| "libavcodec/h264_slice.c", |
| "libavcodec/h264chroma.c", |
| "libavcodec/h264dsp.c", |
| "libavcodec/h264idct.c", |
| "libavcodec/h264qpel.c", |
| "libavcodec/kbdwin.c", |
| "libavcodec/mpegaudio.c", |
| "libavcodec/mpegaudio_parser.c", |
| "libavcodec/mpegaudiodec_fixed.c", |
| "libavcodec/mpegaudiodecheader.c", |
| "libavcodec/mpegaudiodsp.c", |
| "libavcodec/mpegaudiodsp_data.c", |
| "libavcodec/mpegaudiodsp_fixed.c", |
| "libavcodec/mpegaudiodsp_float.c", |
| "libavcodec/sbrdsp.c", |
| "libavcodec/sinewin.c", |
| "libavcodec/startcode.c", |
| "libavformat/aacdec.c", |
| "libavformat/apetag.c", |
| "libavformat/img2.c", |
| "libavformat/mov.c", |
| "libavformat/mov_chan.c", |
| "libavformat/mp3dec.c", |
| ] |
| } |
| |
| if (cpu_arch == "arm" || (cpu_arch == "arm" && arm_use_neon)) { |
| ffmpeg_c_sources += [ |
| "libavcodec/arm/fft_fixed_init_arm.c", |
| "libavcodec/arm/fft_init_arm.c", |
| "libavcodec/arm/fmtconvert_init_arm.c", |
| "libavcodec/arm/h264pred_init_arm.c", |
| "libavcodec/arm/hpeldsp_init_arm.c", |
| "libavcodec/arm/hpeldsp_init_armv6.c", |
| "libavcodec/arm/videodsp_init_arm.c", |
| "libavcodec/arm/videodsp_init_armv5te.c", |
| "libavcodec/arm/vorbisdsp_init_arm.c", |
| "libavcodec/arm/vp3dsp_init_arm.c", |
| "libavcodec/arm/vp8dsp_init_arm.c", |
| "libavcodec/arm/vp8dsp_init_armv6.c", |
| "libavutil/arm/cpu.c", |
| "libavutil/arm/float_dsp_init_arm.c", |
| "libavutil/arm/float_dsp_init_vfp.c", |
| ] |
| ffmpeg_gas_sources += [ |
| "libavcodec/arm/fft_vfp.S", |
| "libavcodec/arm/fmtconvert_vfp.S", |
| "libavcodec/arm/fmtconvert_vfp_armv6.S", |
| "libavcodec/arm/hpeldsp_arm.S", |
| "libavcodec/arm/hpeldsp_armv6.S", |
| "libavcodec/arm/mdct_vfp.S", |
| "libavcodec/arm/videodsp_armv5te.S", |
| "libavcodec/arm/vp8_armv6.S", |
| "libavcodec/arm/vp8dsp_armv6.S", |
| "libavutil/arm/float_dsp_vfp.S", |
| ] |
| } |
| |
| if (ffmpeg_branding == "ChromiumOS" || ffmpeg_branding == "ChromeOS") { |
| ffmpeg_c_sources += [ |
| "libavcodec/flac_parser.c", |
| "libavcodec/flacdec.c", |
| "libavcodec/flacdsp.c", |
| "libavformat/flacdec.c", |
| ] |
| } |
| |
| if ((cpu_arch == "x86" || cpu_arch == "x64") && (ffmpeg_branding == "Chrome" || ffmpeg_branding == "ChromeOS")) { |
| ffmpeg_c_sources += [ |
| "libavcodec/x86/dct_init.c", |
| "libavcodec/x86/h264_qpel.c", |
| "libavcodec/x86/h264chroma_init.c", |
| "libavcodec/x86/h264dsp_init.c", |
| "libavcodec/x86/mpegaudiodsp.c", |
| "libavcodec/x86/sbrdsp_init.c", |
| ] |
| ffmpeg_yasm_sources += [ |
| "libavcodec/x86/dct32.asm", |
| "libavcodec/x86/h264_chromamc.asm", |
| "libavcodec/x86/h264_chromamc_10bit.asm", |
| "libavcodec/x86/h264_deblock.asm", |
| "libavcodec/x86/h264_deblock_10bit.asm", |
| "libavcodec/x86/h264_idct.asm", |
| "libavcodec/x86/h264_idct_10bit.asm", |
| "libavcodec/x86/h264_qpel_10bit.asm", |
| "libavcodec/x86/h264_qpel_8bit.asm", |
| "libavcodec/x86/h264_weight.asm", |
| "libavcodec/x86/h264_weight_10bit.asm", |
| "libavcodec/x86/imdct36.asm", |
| "libavcodec/x86/qpel.asm", |
| "libavcodec/x86/sbrdsp.asm", |
| ] |
| } |
| |
| if ((cpu_arch == "arm" && arm_use_neon)) { |
| ffmpeg_c_sources += [ |
| "libavcodec/arm/hpeldsp_init_neon.c", |
| "libavcodec/arm/vp8dsp_init_neon.c", |
| "libavutil/arm/float_dsp_init_neon.c", |
| ] |
| ffmpeg_gas_sources += [ |
| "libavcodec/arm/fft_fixed_neon.S", |
| "libavcodec/arm/fft_neon.S", |
| "libavcodec/arm/fmtconvert_neon.S", |
| "libavcodec/arm/h264pred_neon.S", |
| "libavcodec/arm/hpeldsp_neon.S", |
| "libavcodec/arm/mdct_fixed_neon.S", |
| "libavcodec/arm/mdct_neon.S", |
| "libavcodec/arm/rdft_neon.S", |
| "libavcodec/arm/vorbisdsp_neon.S", |
| "libavcodec/arm/vp3dsp_neon.S", |
| "libavcodec/arm/vp8dsp_neon.S", |
| "libavutil/arm/float_dsp_neon.S", |
| ] |
| } |
| |
| if ((cpu_arch == "arm" || (cpu_arch == "arm" && arm_use_neon)) && (ffmpeg_branding == "ChromiumOS" || ffmpeg_branding == "ChromeOS")) { |
| ffmpeg_c_sources += [ |
| "libavcodec/arm/flacdsp_init_arm.c", |
| ] |
| ffmpeg_gas_sources += [ |
| "libavcodec/arm/flacdsp_arm.S", |
| ] |
| } |
| |
| if ((cpu_arch == "arm" || (cpu_arch == "arm" && arm_use_neon)) && (ffmpeg_branding == "Chrome" || ffmpeg_branding == "ChromeOS")) { |
| ffmpeg_c_sources += [ |
| "libavcodec/arm/aacpsdsp_init_arm.c", |
| "libavcodec/arm/h264chroma_init_arm.c", |
| "libavcodec/arm/h264dsp_init_arm.c", |
| "libavcodec/arm/h264qpel_init_arm.c", |
| "libavcodec/arm/mpegaudiodsp_init_arm.c", |
| "libavcodec/arm/sbrdsp_init_arm.c", |
| ] |
| ffmpeg_gas_sources += [ |
| "libavcodec/arm/mpegaudiodsp_fixed_armv6.S", |
| "libavcodec/arm/startcode_armv6.S", |
| ] |
| } |
| |
| if (ffmpeg_branding == "ChromeOS") { |
| ffmpeg_c_sources += [ |
| "libavcodec/acelp_filters.c", |
| "libavcodec/acelp_pitch_delay.c", |
| "libavcodec/acelp_vectors.c", |
| "libavcodec/amrnbdec.c", |
| "libavcodec/amrwbdec.c", |
| "libavcodec/blockdsp.c", |
| "libavcodec/celp_filters.c", |
| "libavcodec/celp_math.c", |
| "libavcodec/dsputil_compat.c", |
| "libavcodec/error_resilience.c", |
| "libavcodec/exif.c", |
| "libavcodec/faandct.c", |
| "libavcodec/faanidct.c", |
| "libavcodec/fdctdsp.c", |
| "libavcodec/flvdec.c", |
| "libavcodec/gsm_parser.c", |
| "libavcodec/gsmdec.c", |
| "libavcodec/gsmdec_data.c", |
| "libavcodec/h263.c", |
| "libavcodec/h263_parser.c", |
| "libavcodec/h263dec.c", |
| "libavcodec/h263dsp.c", |
| "libavcodec/idctdsp.c", |
| "libavcodec/intelh263dec.c", |
| "libavcodec/ituh263dec.c", |
| "libavcodec/jfdctfst.c", |
| "libavcodec/jfdctint.c", |
| "libavcodec/jrevdct.c", |
| "libavcodec/lsp.c", |
| "libavcodec/me_cmp.c", |
| "libavcodec/mpeg4video.c", |
| "libavcodec/mpeg4video_parser.c", |
| "libavcodec/mpeg4videodec.c", |
| "libavcodec/mpeg_er.c", |
| "libavcodec/mpegutils.c", |
| "libavcodec/mpegvideo.c", |
| "libavcodec/mpegvideo_motion.c", |
| "libavcodec/mpegvideodsp.c", |
| "libavcodec/msgsmdec.c", |
| "libavcodec/pixblockdsp.c", |
| "libavcodec/qpeldsp.c", |
| "libavcodec/simple_idct.c", |
| "libavcodec/tiff_common.c", |
| "libavcodec/xvididct.c", |
| "libavformat/amr.c", |
| "libavformat/avidec.c", |
| "libavformat/gsmdec.c", |
| ] |
| } |
| |
| if ((cpu_arch == "x86" || cpu_arch == "x64") && (ffmpeg_branding == "ChromiumOS" || ffmpeg_branding == "ChromeOS")) { |
| ffmpeg_c_sources += [ |
| "libavcodec/x86/flacdsp_init.c", |
| ] |
| ffmpeg_yasm_sources += [ |
| "libavcodec/x86/flacdsp.asm", |
| ] |
| } |
| |
| if ((cpu_arch == "x86" || cpu_arch == "x64") && (ffmpeg_branding == "Chrome" || ffmpeg_branding == "Chromium") && (is_win)) { |
| ffmpeg_c_sources += [ |
| "compat/msvcrt/snprintf.c", |
| "compat/strtod.c", |
| ] |
| } |
| |
| if (((cpu_arch == "arm" && arm_use_neon)) && (ffmpeg_branding == "Chrome" || ffmpeg_branding == "ChromeOS")) { |
| ffmpeg_gas_sources += [ |
| "libavcodec/arm/aacpsdsp_neon.S", |
| "libavcodec/arm/h264cmc_neon.S", |
| "libavcodec/arm/h264dsp_neon.S", |
| "libavcodec/arm/h264idct_neon.S", |
| "libavcodec/arm/h264qpel_neon.S", |
| "libavcodec/arm/sbrdsp_neon.S", |
| ] |
| } |
| |
| if ((cpu_arch == "arm" || (cpu_arch == "arm" && arm_use_neon)) && (ffmpeg_branding == "ChromeOS")) { |
| ffmpeg_c_sources += [ |
| "libavcodec/arm/blockdsp_init_arm.c", |
| "libavcodec/arm/idctdsp_init_arm.c", |
| "libavcodec/arm/idctdsp_init_armv5te.c", |
| "libavcodec/arm/idctdsp_init_armv6.c", |
| "libavcodec/arm/me_cmp_init_arm.c", |
| "libavcodec/arm/mpegvideo_arm.c", |
| "libavcodec/arm/mpegvideo_armv5te.c", |
| "libavcodec/arm/pixblockdsp_init_arm.c", |
| ] |
| ffmpeg_gas_sources += [ |
| "libavcodec/arm/idctdsp_arm.S", |
| "libavcodec/arm/idctdsp_armv6.S", |
| "libavcodec/arm/jrevdct_arm.S", |
| "libavcodec/arm/me_cmp_armv6.S", |
| "libavcodec/arm/mpegvideo_armv5te_s.S", |
| "libavcodec/arm/pixblockdsp_armv6.S", |
| "libavcodec/arm/simple_idct_arm.S", |
| "libavcodec/arm/simple_idct_armv5te.S", |
| "libavcodec/arm/simple_idct_armv6.S", |
| ] |
| } |
| |
| if ((cpu_arch == "x86" || cpu_arch == "x64") && (ffmpeg_branding == "ChromeOS")) { |
| ffmpeg_c_sources += [ |
| "libavcodec/x86/blockdsp_init.c", |
| "libavcodec/x86/fdct.c", |
| "libavcodec/x86/fdctdsp_init.c", |
| "libavcodec/x86/h263dsp_init.c", |
| "libavcodec/x86/idctdsp_init.c", |
| "libavcodec/x86/idctdsp_mmx.c", |
| "libavcodec/x86/me_cmp_init.c", |
| "libavcodec/x86/mpegvideo.c", |
| "libavcodec/x86/mpegvideodsp.c", |
| "libavcodec/x86/pixblockdsp_init.c", |
| "libavcodec/x86/qpeldsp_init.c", |
| "libavcodec/x86/simple_idct.c", |
| "libavcodec/x86/xvididct_init.c", |
| "libavcodec/x86/xvididct_mmx.c", |
| "libavcodec/x86/xvididct_sse2.c", |
| ] |
| ffmpeg_yasm_sources += [ |
| "libavcodec/x86/blockdsp.asm", |
| "libavcodec/x86/h263_loopfilter.asm", |
| "libavcodec/x86/idctdsp.asm", |
| "libavcodec/x86/me_cmp.asm", |
| "libavcodec/x86/pixblockdsp.asm", |
| "libavcodec/x86/qpeldsp.asm", |
| ] |
| } |
| |
| if (((cpu_arch == "arm" && arm_use_neon)) && (ffmpeg_branding == "ChromeOS")) { |
| ffmpeg_c_sources += [ |
| "libavcodec/arm/blockdsp_init_neon.c", |
| "libavcodec/arm/idctdsp_init_neon.c", |
| "libavcodec/neon/mpegvideo.c", |
| ] |
| ffmpeg_gas_sources += [ |
| "libavcodec/arm/blockdsp_neon.S", |
| "libavcodec/arm/idctdsp_neon.S", |
| "libavcodec/arm/mpegvideo_neon.S", |
| "libavcodec/arm/simple_idct_neon.S", |
| ] |
| } |
| |