Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / ffmpeg / ffmpeg_generated.gni
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # NOTE: this file is autogenerated by ffmpeg/chromium/scripts/generate_gyp.py
6
7 import("//build/config/arm.gni")
8 import("ffmpeg_options.gni")
9
10 # Declare empty versions of each variable for easier +=ing later.
11 ffmpeg_c_sources = []
12 ffmpeg_gas_sources = []
13 ffmpeg_yasm_sources = []
14
15 ffmpeg_c_sources += [
16   "libavcodec/allcodecs.c",
17   "libavcodec/avdct.c",
18   "libavcodec/avfft.c",
19   "libavcodec/avpacket.c",
20   "libavcodec/avpicture.c",
21   "libavcodec/bitstream.c",
22   "libavcodec/bitstream_filter.c",
23   "libavcodec/codec_desc.c",
24   "libavcodec/dirac.c",
25   "libavcodec/dv_profile.c",
26   "libavcodec/fft_fixed.c",
27   "libavcodec/fft_fixed_32.c",
28   "libavcodec/fft_float.c",
29   "libavcodec/fft_init_table.c",
30   "libavcodec/flac.c",
31   "libavcodec/flacdata.c",
32   "libavcodec/fmtconvert.c",
33   "libavcodec/golomb.c",
34   "libavcodec/h264pred.c",
35   "libavcodec/hpeldsp.c",
36   "libavcodec/imgconvert.c",
37   "libavcodec/mathtables.c",
38   "libavcodec/mdct_fixed.c",
39   "libavcodec/mdct_fixed_32.c",
40   "libavcodec/mdct_float.c",
41   "libavcodec/mpeg12data.c",
42   "libavcodec/mpeg4audio.c",
43   "libavcodec/mpegaudiodata.c",
44   "libavcodec/options.c",
45   "libavcodec/opus.c",
46   "libavcodec/opus_parser.c",
47   "libavcodec/parser.c",
48   "libavcodec/pcm.c",
49   "libavcodec/pthread.c",
50   "libavcodec/pthread_frame.c",
51   "libavcodec/pthread_slice.c",
52   "libavcodec/raw.c",
53   "libavcodec/rdft.c",
54   "libavcodec/utils.c",
55   "libavcodec/videodsp.c",
56   "libavcodec/vorbis.c",
57   "libavcodec/vorbis_data.c",
58   "libavcodec/vorbis_parser.c",
59   "libavcodec/vorbisdec.c",
60   "libavcodec/vorbisdsp.c",
61   "libavcodec/vp3.c",
62   "libavcodec/vp3_parser.c",
63   "libavcodec/vp3dsp.c",
64   "libavcodec/vp56rac.c",
65   "libavcodec/vp8.c",
66   "libavcodec/vp8_parser.c",
67   "libavcodec/vp8dsp.c",
68   "libavcodec/xiph.c",
69   "libavformat/allformats.c",
70   "libavformat/avio.c",
71   "libavformat/aviobuf.c",
72   "libavformat/cutils.c",
73   "libavformat/dump.c",
74   "libavformat/flac_picture.c",
75   "libavformat/format.c",
76   "libavformat/id3v1.c",
77   "libavformat/id3v2.c",
78   "libavformat/isom.c",
79   "libavformat/matroska.c",
80   "libavformat/matroskadec.c",
81   "libavformat/metadata.c",
82   "libavformat/mux.c",
83   "libavformat/oggdec.c",
84   "libavformat/oggparsecelt.c",
85   "libavformat/oggparsedirac.c",
86   "libavformat/oggparseflac.c",
87   "libavformat/oggparseogm.c",
88   "libavformat/oggparseopus.c",
89   "libavformat/oggparseskeleton.c",
90   "libavformat/oggparsespeex.c",
91   "libavformat/oggparsetheora.c",
92   "libavformat/oggparsevorbis.c",
93   "libavformat/oggparsevp8.c",
94   "libavformat/options.c",
95   "libavformat/os_support.c",
96   "libavformat/pcm.c",
97   "libavformat/replaygain.c",
98   "libavformat/riff.c",
99   "libavformat/riffdec.c",
100   "libavformat/rmsipr.c",
101   "libavformat/seek.c",
102   "libavformat/url.c",
103   "libavformat/utils.c",
104   "libavformat/vorbiscomment.c",
105   "libavformat/wavdec.c",
106   "libavutil/atomic.c",
107   "libavutil/avstring.c",
108   "libavutil/base64.c",
109   "libavutil/bprint.c",
110   "libavutil/buffer.c",
111   "libavutil/channel_layout.c",
112   "libavutil/cpu.c",
113   "libavutil/crc.c",
114   "libavutil/dict.c",
115   "libavutil/display.c",
116   "libavutil/downmix_info.c",
117   "libavutil/error.c",
118   "libavutil/eval.c",
119   "libavutil/fifo.c",
120   "libavutil/file_open.c",
121   "libavutil/fixed_dsp.c",
122   "libavutil/float_dsp.c",
123   "libavutil/frame.c",
124   "libavutil/imgutils.c",
125   "libavutil/intfloat_readwrite.c",
126   "libavutil/intmath.c",
127   "libavutil/lfg.c",
128   "libavutil/lls1.c",
129   "libavutil/lls2.c",
130   "libavutil/log.c",
131   "libavutil/log2_tab.c",
132   "libavutil/mathematics.c",
133   "libavutil/md5.c",
134   "libavutil/mem.c",
135   "libavutil/opt.c",
136   "libavutil/parseutils.c",
137   "libavutil/pixdesc.c",
138   "libavutil/random_seed.c",
139   "libavutil/rational.c",
140   "libavutil/samplefmt.c",
141   "libavutil/sha.c",
142   "libavutil/stereo3d.c",
143   "libavutil/threadmessage.c",
144   "libavutil/time.c",
145   "libavutil/timecode.c",
146   "libavutil/utils.c",
147 ]
148
149 if (ffmpeg_branding == "ChromiumOS" || ffmpeg_branding == "ChromeOS" || ffmpeg_branding == "Chrome") {
150   ffmpeg_c_sources += [
151     "libavformat/rawdec.c",
152   ]
153 }
154
155 if (cpu_arch == "x86" || cpu_arch == "x64") {
156   ffmpeg_c_sources += [
157     "libavcodec/x86/constants.c",
158     "libavcodec/x86/fft_init.c",
159     "libavcodec/x86/fmtconvert_init.c",
160     "libavcodec/x86/h264_intrapred_init.c",
161     "libavcodec/x86/hpeldsp_init.c",
162     "libavcodec/x86/videodsp_init.c",
163     "libavcodec/x86/vorbisdsp_init.c",
164     "libavcodec/x86/vp3dsp_init.c",
165     "libavcodec/x86/vp8dsp_init.c",
166     "libavutil/x86/cpu.c",
167     "libavutil/x86/float_dsp_init.c",
168     "libavutil/x86/lls_init.c",
169   ]
170   ffmpeg_yasm_sources += [
171     "libavcodec/x86/deinterlace.asm",
172     "libavcodec/x86/fft.asm",
173     "libavcodec/x86/fmtconvert.asm",
174     "libavcodec/x86/fpel.asm",
175     "libavcodec/x86/h264_intrapred.asm",
176     "libavcodec/x86/h264_intrapred_10bit.asm",
177     "libavcodec/x86/hpeldsp.asm",
178     "libavcodec/x86/videodsp.asm",
179     "libavcodec/x86/vorbisdsp.asm",
180     "libavcodec/x86/vp3dsp.asm",
181     "libavcodec/x86/vp8dsp.asm",
182     "libavcodec/x86/vp8dsp_loopfilter.asm",
183     "libavutil/x86/cpuid.asm",
184     "libavutil/x86/emms.asm",
185     "libavutil/x86/float_dsp.asm",
186     "libavutil/x86/lls.asm",
187   ]
188 }
189
190 if (ffmpeg_branding == "Chrome" || ffmpeg_branding == "ChromeOS") {
191   ffmpeg_c_sources += [
192     "libavcodec/aac_ac3_parser.c",
193     "libavcodec/aac_parser.c",
194     "libavcodec/aacadtsdec.c",
195     "libavcodec/aacdec.c",
196     "libavcodec/aacps.c",
197     "libavcodec/aacpsdsp.c",
198     "libavcodec/aacsbr.c",
199     "libavcodec/aactab.c",
200     "libavcodec/ac3tab.c",
201     "libavcodec/cabac.c",
202     "libavcodec/dct.c",
203     "libavcodec/dct32_fixed.c",
204     "libavcodec/dct32_float.c",
205     "libavcodec/h264.c",
206     "libavcodec/h264_cabac.c",
207     "libavcodec/h264_cavlc.c",
208     "libavcodec/h264_direct.c",
209     "libavcodec/h264_loopfilter.c",
210     "libavcodec/h264_mb.c",
211     "libavcodec/h264_parser.c",
212     "libavcodec/h264_picture.c",
213     "libavcodec/h264_ps.c",
214     "libavcodec/h264_refs.c",
215     "libavcodec/h264_sei.c",
216     "libavcodec/h264_slice.c",
217     "libavcodec/h264chroma.c",
218     "libavcodec/h264dsp.c",
219     "libavcodec/h264idct.c",
220     "libavcodec/h264qpel.c",
221     "libavcodec/kbdwin.c",
222     "libavcodec/mpegaudio.c",
223     "libavcodec/mpegaudio_parser.c",
224     "libavcodec/mpegaudiodec_fixed.c",
225     "libavcodec/mpegaudiodecheader.c",
226     "libavcodec/mpegaudiodsp.c",
227     "libavcodec/mpegaudiodsp_data.c",
228     "libavcodec/mpegaudiodsp_fixed.c",
229     "libavcodec/mpegaudiodsp_float.c",
230     "libavcodec/sbrdsp.c",
231     "libavcodec/sinewin.c",
232     "libavcodec/startcode.c",
233     "libavformat/aacdec.c",
234     "libavformat/apetag.c",
235     "libavformat/img2.c",
236     "libavformat/mov.c",
237     "libavformat/mov_chan.c",
238     "libavformat/mp3dec.c",
239   ]
240 }
241
242 if (cpu_arch == "arm" || (cpu_arch == "arm" && arm_use_neon)) {
243   ffmpeg_c_sources += [
244     "libavcodec/arm/fft_fixed_init_arm.c",
245     "libavcodec/arm/fft_init_arm.c",
246     "libavcodec/arm/fmtconvert_init_arm.c",
247     "libavcodec/arm/h264pred_init_arm.c",
248     "libavcodec/arm/hpeldsp_init_arm.c",
249     "libavcodec/arm/hpeldsp_init_armv6.c",
250     "libavcodec/arm/videodsp_init_arm.c",
251     "libavcodec/arm/videodsp_init_armv5te.c",
252     "libavcodec/arm/vorbisdsp_init_arm.c",
253     "libavcodec/arm/vp3dsp_init_arm.c",
254     "libavcodec/arm/vp8dsp_init_arm.c",
255     "libavcodec/arm/vp8dsp_init_armv6.c",
256     "libavutil/arm/cpu.c",
257     "libavutil/arm/float_dsp_init_arm.c",
258     "libavutil/arm/float_dsp_init_vfp.c",
259   ]
260   ffmpeg_gas_sources += [
261     "libavcodec/arm/fft_vfp.S",
262     "libavcodec/arm/fmtconvert_vfp.S",
263     "libavcodec/arm/fmtconvert_vfp_armv6.S",
264     "libavcodec/arm/hpeldsp_arm.S",
265     "libavcodec/arm/hpeldsp_armv6.S",
266     "libavcodec/arm/mdct_vfp.S",
267     "libavcodec/arm/videodsp_armv5te.S",
268     "libavcodec/arm/vp8_armv6.S",
269     "libavcodec/arm/vp8dsp_armv6.S",
270     "libavutil/arm/float_dsp_vfp.S",
271   ]
272 }
273
274 if (ffmpeg_branding == "ChromiumOS" || ffmpeg_branding == "ChromeOS") {
275   ffmpeg_c_sources += [
276     "libavcodec/flac_parser.c",
277     "libavcodec/flacdec.c",
278     "libavcodec/flacdsp.c",
279     "libavformat/flacdec.c",
280   ]
281 }
282
283 if ((cpu_arch == "x86" || cpu_arch == "x64") && (ffmpeg_branding == "Chrome" || ffmpeg_branding == "ChromeOS")) {
284   ffmpeg_c_sources += [
285     "libavcodec/x86/dct_init.c",
286     "libavcodec/x86/h264_qpel.c",
287     "libavcodec/x86/h264chroma_init.c",
288     "libavcodec/x86/h264dsp_init.c",
289     "libavcodec/x86/mpegaudiodsp.c",
290     "libavcodec/x86/sbrdsp_init.c",
291   ]
292   ffmpeg_yasm_sources += [
293     "libavcodec/x86/dct32.asm",
294     "libavcodec/x86/h264_chromamc.asm",
295     "libavcodec/x86/h264_chromamc_10bit.asm",
296     "libavcodec/x86/h264_deblock.asm",
297     "libavcodec/x86/h264_deblock_10bit.asm",
298     "libavcodec/x86/h264_idct.asm",
299     "libavcodec/x86/h264_idct_10bit.asm",
300     "libavcodec/x86/h264_qpel_10bit.asm",
301     "libavcodec/x86/h264_qpel_8bit.asm",
302     "libavcodec/x86/h264_weight.asm",
303     "libavcodec/x86/h264_weight_10bit.asm",
304     "libavcodec/x86/imdct36.asm",
305     "libavcodec/x86/qpel.asm",
306     "libavcodec/x86/sbrdsp.asm",
307   ]
308 }
309
310 if ((cpu_arch == "arm" && arm_use_neon)) {
311   ffmpeg_c_sources += [
312     "libavcodec/arm/hpeldsp_init_neon.c",
313     "libavcodec/arm/vp8dsp_init_neon.c",
314     "libavutil/arm/float_dsp_init_neon.c",
315   ]
316   ffmpeg_gas_sources += [
317     "libavcodec/arm/fft_fixed_neon.S",
318     "libavcodec/arm/fft_neon.S",
319     "libavcodec/arm/fmtconvert_neon.S",
320     "libavcodec/arm/h264pred_neon.S",
321     "libavcodec/arm/hpeldsp_neon.S",
322     "libavcodec/arm/mdct_fixed_neon.S",
323     "libavcodec/arm/mdct_neon.S",
324     "libavcodec/arm/rdft_neon.S",
325     "libavcodec/arm/vorbisdsp_neon.S",
326     "libavcodec/arm/vp3dsp_neon.S",
327     "libavcodec/arm/vp8dsp_neon.S",
328     "libavutil/arm/float_dsp_neon.S",
329   ]
330 }
331
332 if ((cpu_arch == "arm" || (cpu_arch == "arm" && arm_use_neon)) && (ffmpeg_branding == "ChromiumOS" || ffmpeg_branding == "ChromeOS")) {
333   ffmpeg_c_sources += [
334     "libavcodec/arm/flacdsp_init_arm.c",
335   ]
336   ffmpeg_gas_sources += [
337     "libavcodec/arm/flacdsp_arm.S",
338   ]
339 }
340
341 if ((cpu_arch == "arm" || (cpu_arch == "arm" && arm_use_neon)) && (ffmpeg_branding == "Chrome" || ffmpeg_branding == "ChromeOS")) {
342   ffmpeg_c_sources += [
343     "libavcodec/arm/aacpsdsp_init_arm.c",
344     "libavcodec/arm/h264chroma_init_arm.c",
345     "libavcodec/arm/h264dsp_init_arm.c",
346     "libavcodec/arm/h264qpel_init_arm.c",
347     "libavcodec/arm/mpegaudiodsp_init_arm.c",
348     "libavcodec/arm/sbrdsp_init_arm.c",
349   ]
350   ffmpeg_gas_sources += [
351     "libavcodec/arm/mpegaudiodsp_fixed_armv6.S",
352     "libavcodec/arm/startcode_armv6.S",
353   ]
354 }
355
356 if (ffmpeg_branding == "ChromeOS") {
357   ffmpeg_c_sources += [
358     "libavcodec/acelp_filters.c",
359     "libavcodec/acelp_pitch_delay.c",
360     "libavcodec/acelp_vectors.c",
361     "libavcodec/amrnbdec.c",
362     "libavcodec/amrwbdec.c",
363     "libavcodec/blockdsp.c",
364     "libavcodec/celp_filters.c",
365     "libavcodec/celp_math.c",
366     "libavcodec/dsputil_compat.c",
367     "libavcodec/error_resilience.c",
368     "libavcodec/exif.c",
369     "libavcodec/faandct.c",
370     "libavcodec/faanidct.c",
371     "libavcodec/fdctdsp.c",
372     "libavcodec/flvdec.c",
373     "libavcodec/gsm_parser.c",
374     "libavcodec/gsmdec.c",
375     "libavcodec/gsmdec_data.c",
376     "libavcodec/h263.c",
377     "libavcodec/h263_parser.c",
378     "libavcodec/h263dec.c",
379     "libavcodec/h263dsp.c",
380     "libavcodec/idctdsp.c",
381     "libavcodec/intelh263dec.c",
382     "libavcodec/ituh263dec.c",
383     "libavcodec/jfdctfst.c",
384     "libavcodec/jfdctint.c",
385     "libavcodec/jrevdct.c",
386     "libavcodec/lsp.c",
387     "libavcodec/me_cmp.c",
388     "libavcodec/mpeg4video.c",
389     "libavcodec/mpeg4video_parser.c",
390     "libavcodec/mpeg4videodec.c",
391     "libavcodec/mpeg_er.c",
392     "libavcodec/mpegutils.c",
393     "libavcodec/mpegvideo.c",
394     "libavcodec/mpegvideo_motion.c",
395     "libavcodec/mpegvideodsp.c",
396     "libavcodec/msgsmdec.c",
397     "libavcodec/pixblockdsp.c",
398     "libavcodec/qpeldsp.c",
399     "libavcodec/simple_idct.c",
400     "libavcodec/tiff_common.c",
401     "libavcodec/xvididct.c",
402     "libavformat/amr.c",
403     "libavformat/avidec.c",
404     "libavformat/gsmdec.c",
405   ]
406 }
407
408 if ((cpu_arch == "x86" || cpu_arch == "x64") && (ffmpeg_branding == "ChromiumOS" || ffmpeg_branding == "ChromeOS")) {
409   ffmpeg_c_sources += [
410     "libavcodec/x86/flacdsp_init.c",
411   ]
412   ffmpeg_yasm_sources += [
413     "libavcodec/x86/flacdsp.asm",
414   ]
415 }
416
417 if ((cpu_arch == "x86" || cpu_arch == "x64") && (ffmpeg_branding == "Chrome" || ffmpeg_branding == "Chromium") && (is_win)) {
418   ffmpeg_c_sources += [
419     "compat/msvcrt/snprintf.c",
420     "compat/strtod.c",
421   ]
422 }
423
424 if (((cpu_arch == "arm" && arm_use_neon)) && (ffmpeg_branding == "Chrome" || ffmpeg_branding == "ChromeOS")) {
425   ffmpeg_gas_sources += [
426     "libavcodec/arm/aacpsdsp_neon.S",
427     "libavcodec/arm/h264cmc_neon.S",
428     "libavcodec/arm/h264dsp_neon.S",
429     "libavcodec/arm/h264idct_neon.S",
430     "libavcodec/arm/h264qpel_neon.S",
431     "libavcodec/arm/sbrdsp_neon.S",
432   ]
433 }
434
435 if ((cpu_arch == "arm" || (cpu_arch == "arm" && arm_use_neon)) && (ffmpeg_branding == "ChromeOS")) {
436   ffmpeg_c_sources += [
437     "libavcodec/arm/blockdsp_init_arm.c",
438     "libavcodec/arm/idctdsp_init_arm.c",
439     "libavcodec/arm/idctdsp_init_armv5te.c",
440     "libavcodec/arm/idctdsp_init_armv6.c",
441     "libavcodec/arm/me_cmp_init_arm.c",
442     "libavcodec/arm/mpegvideo_arm.c",
443     "libavcodec/arm/mpegvideo_armv5te.c",
444     "libavcodec/arm/pixblockdsp_init_arm.c",
445   ]
446   ffmpeg_gas_sources += [
447     "libavcodec/arm/idctdsp_arm.S",
448     "libavcodec/arm/idctdsp_armv6.S",
449     "libavcodec/arm/jrevdct_arm.S",
450     "libavcodec/arm/me_cmp_armv6.S",
451     "libavcodec/arm/mpegvideo_armv5te_s.S",
452     "libavcodec/arm/pixblockdsp_armv6.S",
453     "libavcodec/arm/simple_idct_arm.S",
454     "libavcodec/arm/simple_idct_armv5te.S",
455     "libavcodec/arm/simple_idct_armv6.S",
456   ]
457 }
458
459 if ((cpu_arch == "x86" || cpu_arch == "x64") && (ffmpeg_branding == "ChromeOS")) {
460   ffmpeg_c_sources += [
461     "libavcodec/x86/blockdsp_init.c",
462     "libavcodec/x86/fdct.c",
463     "libavcodec/x86/fdctdsp_init.c",
464     "libavcodec/x86/h263dsp_init.c",
465     "libavcodec/x86/idct_mmx_xvid.c",
466     "libavcodec/x86/idct_sse2_xvid.c",
467     "libavcodec/x86/idctdsp_init.c",
468     "libavcodec/x86/idctdsp_mmx.c",
469     "libavcodec/x86/me_cmp_init.c",
470     "libavcodec/x86/mpegvideo.c",
471     "libavcodec/x86/mpegvideodsp.c",
472     "libavcodec/x86/pixblockdsp_init.c",
473     "libavcodec/x86/qpeldsp_init.c",
474     "libavcodec/x86/simple_idct.c",
475     "libavcodec/x86/xvididct_init.c",
476   ]
477   ffmpeg_yasm_sources += [
478     "libavcodec/x86/blockdsp.asm",
479     "libavcodec/x86/h263_loopfilter.asm",
480     "libavcodec/x86/idctdsp.asm",
481     "libavcodec/x86/me_cmp.asm",
482     "libavcodec/x86/pixblockdsp.asm",
483     "libavcodec/x86/qpeldsp.asm",
484   ]
485 }
486
487 if (((cpu_arch == "arm" && arm_use_neon)) && (ffmpeg_branding == "ChromeOS")) {
488   ffmpeg_c_sources += [
489     "libavcodec/arm/blockdsp_init_neon.c",
490     "libavcodec/arm/idctdsp_init_neon.c",
491     "libavcodec/neon/mpegvideo.c",
492   ]
493   ffmpeg_gas_sources += [
494     "libavcodec/arm/blockdsp_neon.S",
495     "libavcodec/arm/idctdsp_neon.S",
496     "libavcodec/arm/mpegvideo_neon.S",
497     "libavcodec/arm/simple_idct_neon.S",
498   ]
499 }
500