Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: ffmpeg.gyp

Issue 3461024: try to reuse ffmpeg config for linux on other *nix (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/ffmpeg/source/
Patch Set: '' Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # There's a couple key GYP variables that control how FFmpeg is built: 5 # There's a couple key GYP variables that control how FFmpeg is built:
6 # ffmpeg_branding 6 # ffmpeg_branding
7 # Controls whether we build the Chromium or Google Chrome version of 7 # Controls whether we build the Chromium or Google Chrome version of
8 # FFmpeg. The Google Chrome version contains additional codecs. 8 # FFmpeg. The Google Chrome version contains additional codecs.
9 # Typical values are Chromium, Chrome, ChromiumOS, and ChromeOS. 9 # Typical values are Chromium, Chrome, ChromiumOS, and ChromeOS.
10 # use_system_ffmpeg 10 # use_system_ffmpeg
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 'ffmpeg_config%': 'arm-neon', 54 'ffmpeg_config%': 'arm-neon',
55 }, { 55 }, {
56 'ffmpeg_config%': '<(target_arch)', 56 'ffmpeg_config%': '<(target_arch)',
57 }], 57 }],
58 ['target_arch=="x64" or target_arch=="ia32"', { 58 ['target_arch=="x64" or target_arch=="ia32"', {
59 'ffmpeg_asm_lib': 1, 59 'ffmpeg_asm_lib': 1,
60 }], 60 }],
61 ['target_arch=="arm"', { 61 ['target_arch=="arm"', {
62 'ffmpeg_asm_lib': 0, 62 'ffmpeg_asm_lib': 0,
63 }], 63 }],
64 ['OS=="mac" or OS=="win"', {
65 'os_config%': '<(OS)',
66 }, { # all other Unix OS's use the linux config
67 'os_config%': 'linux',
68 }],
64 69
65 # libvpx location. 70 # libvpx location.
66 # TODO(scherkus): libvpx_hack_dir is a hack to make -L work on linux. 71 # TODO(scherkus): libvpx_hack_dir is a hack to make -L work on linux.
67 ['OS=="mac" or OS=="win"', { 72 ['OS=="mac" or OS=="win"', {
68 'libvpx_incl_dir': '../libvpx/include', 73 'libvpx_incl_dir': '../libvpx/include',
69 'libvpx_hack_dir': '../libvpx', 74 'libvpx_hack_dir': '../libvpx',
70 }], 75 }],
71 ['OS!="mac" and OS!="win" and inside_chromium_build==1', { 76 ['OS!="mac" and OS!="win" and inside_chromium_build==1', {
72 'libvpx_incl_dir': '../libvpx/include', 77 'libvpx_incl_dir': '../libvpx/include',
73 'libvpx_hack_dir': 'third_party/libvpx', 78 'libvpx_hack_dir': 'third_party/libvpx',
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 'patched-ffmpeg-mt/libavutil/crc.c', 163 'patched-ffmpeg-mt/libavutil/crc.c',
159 'patched-ffmpeg-mt/libavutil/eval.c', 164 'patched-ffmpeg-mt/libavutil/eval.c',
160 'patched-ffmpeg-mt/libavutil/intfloat_readwrite.c', 165 'patched-ffmpeg-mt/libavutil/intfloat_readwrite.c',
161 'patched-ffmpeg-mt/libavutil/inverse.c', # aug 11 166 'patched-ffmpeg-mt/libavutil/inverse.c', # aug 11
162 'patched-ffmpeg-mt/libavutil/log.c', 167 'patched-ffmpeg-mt/libavutil/log.c',
163 'patched-ffmpeg-mt/libavutil/lzo.c', 168 'patched-ffmpeg-mt/libavutil/lzo.c',
164 'patched-ffmpeg-mt/libavutil/mathematics.c', 169 'patched-ffmpeg-mt/libavutil/mathematics.c',
165 'patched-ffmpeg-mt/libavutil/mem.c', 170 'patched-ffmpeg-mt/libavutil/mem.c',
166 'patched-ffmpeg-mt/libavutil/pixdesc.c', 171 'patched-ffmpeg-mt/libavutil/pixdesc.c',
167 'patched-ffmpeg-mt/libavutil/rational.c', 172 'patched-ffmpeg-mt/libavutil/rational.c',
168 'config/<(ffmpeg_branding)/<(OS)/<(ffmpeg_config)/config.h', 173 'config/<(ffmpeg_branding)/<(os_config)/<(ffmpeg_config)/config.h',
169 'config/libavutil/avconfig.h', 174 'config/libavutil/avconfig.h',
170 ], 175 ],
171 'include_dirs': [ 176 'include_dirs': [
172 'config/<(ffmpeg_branding)/<(OS)/<(ffmpeg_config)', 177 'config/<(ffmpeg_branding)/<(os_config)/<(ffmpeg_config)',
173 'patched-ffmpeg-mt', 178 'patched-ffmpeg-mt',
174 'config', 179 'config',
175 ], 180 ],
176 'defines': [ 181 'defines': [
177 'HAVE_AV_CONFIG_H', 182 'HAVE_AV_CONFIG_H',
178 '_POSIX_C_SOURCE=200112', 183 '_POSIX_C_SOURCE=200112',
179 ], 184 ],
180 'cflags': [ 185 'cflags': [
181 '-fomit-frame-pointer', 186 '-fomit-frame-pointer',
182 ], 187 ],
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 # TODO(ajwong): When scons is dead, collapse this with the 419 # TODO(ajwong): When scons is dead, collapse this with the
415 # absolute path entry inside the OS="mac" conditional, and 420 # absolute path entry inside the OS="mac" conditional, and
416 # move it out of the conditionals block altogether. 421 # move it out of the conditionals block altogether.
417 '-l<(asm_library)', 422 '-l<(asm_library)',
418 ], 423 ],
419 }], 424 }],
420 ['use_system_vpx==0', { 425 ['use_system_vpx==0', {
421 'ldflags': [ 426 'ldflags': [
422 '-L<(libvpx_hack_dir)/lib/<(OS)/<(target_arch)', 427 '-L<(libvpx_hack_dir)/lib/<(OS)/<(target_arch)',
423 ], 428 ],
429 }, {
430 # Using libvpx provided by the system.
431 'ldflags': [
432 '-L/usr/local/lib',
scherkus (not reviewing) 2010/10/14 19:03:42 shouldn't this already be in the path? use_system
ruben 2010/10/14 19:11:35 Yes, I was surprised it wasn't also, but how would
scherkus (not reviewing) 2010/10/14 19:40:48 I think when libvpx was first released they didn't
433 ],
424 }], 434 }],
425 ], 435 ],
426 }, 436 },
427 }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris " 437 }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris "
428 ['OS=="mac"', { 438 ['OS=="mac"', {
429 'libraries': [ 439 'libraries': [
430 # TODO(ajwong): Move into link_settings when this is fixed: 440 # TODO(ajwong): Move into link_settings when this is fixed:
431 # 441 #
432 # http://code.google.com/p/gyp/issues/detail?id=108 442 # http://code.google.com/p/gyp/issues/detail?id=108
433 '<(shared_generated_dir)/<(STATIC_LIB_PREFIX)<(asm_library)<(STA TIC_LIB_SUFFIX)', 443 '<(shared_generated_dir)/<(STATIC_LIB_PREFIX)<(asm_library)<(STA TIC_LIB_SUFFIX)',
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 ], # conditions 897 ], # conditions
888 }, 898 },
889 ], # targets 899 ], # targets
890 } 900 }
891 901
892 # Local Variables: 902 # Local Variables:
893 # tab-width:2 903 # tab-width:2
894 # indent-tabs-mode:nil 904 # indent-tabs-mode:nil
895 # End: 905 # End:
896 # vim: set expandtab tabstop=2 shiftwidth=2: 906 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698