update ffmpeg clean scripts, thanks to Tomas Popela

epel8
Tom Callaway 8 years ago
parent 96c125f161
commit 53efa602ea

@ -66,10 +66,12 @@ header_files=" libavcodec/x86/inline_asm.h \
libavcodec/fft-internal.h \ libavcodec/fft-internal.h \
libavcodec/fft_table.h \ libavcodec/fft_table.h \
libavcodec/flac.h \ libavcodec/flac.h \
libavcodec/flacdsp.h \
libavcodec/frame_thread_encoder.h \ libavcodec/frame_thread_encoder.h \
libavcodec/get_bits.h \ libavcodec/get_bits.h \
libavcodec/h263dsp.h \ libavcodec/h263dsp.h \
libavcodec/h264chroma.h \ libavcodec/h264chroma.h \
libavcodec/hpeldsp.h \
libavcodec/idctdsp.h \ libavcodec/idctdsp.h \
libavcodec/internal.h \ libavcodec/internal.h \
libavcodec/mathops.h \ libavcodec/mathops.h \
@ -91,11 +93,17 @@ header_files=" libavcodec/x86/inline_asm.h \
libavcodec/rl.h \ libavcodec/rl.h \
libavcodec/rnd_avg.h \ libavcodec/rnd_avg.h \
libavcodec/thread.h \ libavcodec/thread.h \
libavcodec/unary.h \
libavcodec/version.h \ libavcodec/version.h \
libavcodec/videodsp.h \
libavcodec/vlc.h \
libavcodec/vorbisdsp.h \
libavcodec/vp3data.h \ libavcodec/vp3data.h \
libavcodec/vp3dsp.h \
libavcodec/vp56.h \ libavcodec/vp56.h \
libavcodec/vp56dsp.h \ libavcodec/vp56dsp.h \
libavcodec/vp8data.h \ libavcodec/vp8data.h \
libavcodec/vp8dsp.h \
libavformat/audiointerleave.h \ libavformat/audiointerleave.h \
libavformat/avformat.h \ libavformat/avformat.h \
libavformat/dv.h \ libavformat/dv.h \
@ -128,6 +136,9 @@ header_files=" libavcodec/x86/inline_asm.h \
libavutil/cpu.h \ libavutil/cpu.h \
libavutil/cpu_internal.h \ libavutil/cpu_internal.h \
libavutil/dynarray.h \ libavutil/dynarray.h \
libavutil/ffmath.h \
libavutil/fixed_dsp.h \
libavutil/float_dsp.h \
libavutil/internal.h \ libavutil/internal.h \
libavutil/intfloat.h \ libavutil/intfloat.h \
libavutil/intreadwrite.h \ libavutil/intreadwrite.h \
@ -147,20 +158,32 @@ header_files=" libavcodec/x86/inline_asm.h \
manual_files=" libavcodec/x86/hpeldsp_rnd_template.c \ manual_files=" libavcodec/x86/hpeldsp_rnd_template.c \
libavcodec/x86/rnd_template.c \ libavcodec/x86/rnd_template.c \
libavcodec/x86/videodsp.asm \
libavcodec/x86/videodsp_init.c \ libavcodec/x86/videodsp_init.c \
libavcodec/x86/vorbisdsp_init.c \ libavcodec/x86/vorbisdsp_init.c \
libavcodec/bit_depth_template.c \ libavcodec/bit_depth_template.c \
libavcodec/fft_template.c \ libavcodec/fft_template.c \
libavcodec/flacdec.c \
libavcodec/flacdsp.c \
libavcodec/flacdsp_template.c \
libavcodec/flacdsp_lpc_template.c \
libavcodec/h264pred_template.c \ libavcodec/h264pred_template.c \
libavcodec/hpel_template.c \ libavcodec/hpel_template.c \
libavcodec/hpeldsp.c \
libavcodec/mdct_template.c \ libavcodec/mdct_template.c \
libavcodec/pel_template.c \ libavcodec/pel_template.c \
libavcodec/utils.c \ libavcodec/utils.c \
libavcodec/videodsp.c \
libavcodec/videodsp_template.c \ libavcodec/videodsp_template.c \
libavcodec/vorbisdsp.c \
libavcodec/vp3dsp.c \
libavcodec/vp8dsp.c \
libavformat/options.c \ libavformat/options.c \
libavformat/pcm.c \ libavformat/pcm.c \
libavformat/utils.c \ libavformat/utils.c \
libavutil/cpu.c \ libavutil/cpu.c \
libavutil/fixed_dsp.c \
libavutil/float_dsp.c \
libavutil/x86/cpu.c \ libavutil/x86/cpu.c \
libavutil/x86/float_dsp_init.c \ libavutil/x86/float_dsp_init.c \
libavutil/x86/x86inc.asm \ libavutil/x86/x86inc.asm \

@ -55,14 +55,19 @@ def parse_ffmpeg_gyni_file(gyni_path, arch_not_arm):
blocks = re.findall(r"(\(.*?\))\s\{(.*?)\}", section, re.DOTALL) blocks = re.findall(r"(\(.*?\))\s\{(.*?)\}", section, re.DOTALL)
for block in blocks: for block in blocks:
conditions = re.findall(r"\(?\((.*?)\)", block[0]) conditions = re.findall(r"\(?\((.*?)\)", block[0])
inserted = False
for condition in conditions: for condition in conditions:
limitations = ['is_linux', 'ffmpeg_branding == "Chromium"'] if inserted:
if all(limitation in condition for limitation in limitations): break
limitations = ['ffmpeg_branding == "Chrome"', 'ffmpeg_branding == "ChromeOS"']
if ('is_linux' in condition) and not any(limitation in condition for limitation in limitations):
if (arch_not_arm): if (arch_not_arm):
if ('x64' in condition) or ('x86' in condition): if ('x64' in condition) or ('x86' in condition):
parse_sources (block[1], output_sources, arch_not_arm) parse_sources (block[1], output_sources, arch_not_arm)
inserted = True
else: else:
parse_sources (block[1], output_sources, arch_not_arm) parse_sources (block[1], output_sources, arch_not_arm)
inserted = True
print ' '.join(output_sources) print ' '.join(output_sources)

Loading…
Cancel
Save