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

Unified Diff: third_party/ffmpeg/ffmpeg.gyp

Issue 2093007: Chromium side changes for enabling VP8 and WebM support. (Closed)
Patch Set: Final fixes Created 10 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/mime_util_unittest.cc ('k') | third_party/ffmpeg/source/config/Chrome/linux/ia32/config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ffmpeg/ffmpeg.gyp
diff --git a/third_party/ffmpeg/ffmpeg.gyp b/third_party/ffmpeg/ffmpeg.gyp
index 98339117c0ec9126fffe9f7ec455b7e926cdd0d6..bfe0b6fdc0241c24b7f719011cf2e2defda64413 100644
--- a/third_party/ffmpeg/ffmpeg.gyp
+++ b/third_party/ffmpeg/ffmpeg.gyp
@@ -56,6 +56,16 @@
['target_arch=="arm"', {
'ffmpeg_asm_lib': 0,
}],
+
+ # libvpx location.
+ # TODO(scherkus): libvpx_hack_dir is a hack to make -L work on linux.
+ ['OS=="mac" or OS=="win"', {
+ 'libvpx_dir': '../libvpx',
+ 'libvpx_hack_dir': '../libvpx',
+ }, {
+ 'libvpx_dir': '../libvpx',
+ 'libvpx_hack_dir': 'third_party/libvpx',
+ }],
],
'ffmpeg_variant%': '<(target_arch)',
@@ -86,6 +96,7 @@
'source/patched-ffmpeg-mt/libavcodec/golomb.c',
'source/patched-ffmpeg-mt/libavcodec/imgconvert.c',
'source/patched-ffmpeg-mt/libavcodec/jrevdct.c',
+ 'source/patched-ffmpeg-mt/libavcodec/libvpxdec.c',
'source/patched-ffmpeg-mt/libavcodec/mdct.c',
'source/patched-ffmpeg-mt/libavcodec/mpeg12data.c',
'source/patched-ffmpeg-mt/libavcodec/mpeg4audio.c',
@@ -109,6 +120,8 @@
'source/patched-ffmpeg-mt/libavformat/cutils.c',
'source/patched-ffmpeg-mt/libavformat/id3v1.c',
'source/patched-ffmpeg-mt/libavformat/isom.c',
+ 'source/patched-ffmpeg-mt/libavformat/matroska.c',
+ 'source/patched-ffmpeg-mt/libavformat/matroskadec.c',
'source/patched-ffmpeg-mt/libavformat/metadata.c',
'source/patched-ffmpeg-mt/libavformat/metadata_compat.c',
'source/patched-ffmpeg-mt/libavformat/oggdec.c',
@@ -117,12 +130,16 @@
'source/patched-ffmpeg-mt/libavformat/oggparsevorbis.c',
'source/patched-ffmpeg-mt/libavformat/options.c',
'source/patched-ffmpeg-mt/libavformat/riff.c',
+ 'source/patched-ffmpeg-mt/libavformat/rm.c',
+ 'source/patched-ffmpeg-mt/libavformat/rmdec.c',
'source/patched-ffmpeg-mt/libavformat/utils.c',
'source/patched-ffmpeg-mt/libavformat/vorbiscomment.c',
'source/patched-ffmpeg-mt/libavutil/avstring.c',
+ 'source/patched-ffmpeg-mt/libavutil/base64.c',
'source/patched-ffmpeg-mt/libavutil/crc.c',
'source/patched-ffmpeg-mt/libavutil/intfloat_readwrite.c',
'source/patched-ffmpeg-mt/libavutil/log.c',
+ 'source/patched-ffmpeg-mt/libavutil/lzo.c',
'source/patched-ffmpeg-mt/libavutil/mathematics.c',
'source/patched-ffmpeg-mt/libavutil/mem.c',
'source/patched-ffmpeg-mt/libavutil/pixdesc.c',
@@ -135,6 +152,7 @@
'source/config/<(ffmpeg_branding)/<(OS)/<(ffmpeg_config)',
'source/patched-ffmpeg-mt',
'source/config',
+ '<(libvpx_dir)/include',
],
'defines': [
'HAVE_AV_CONFIG_H',
@@ -364,9 +382,11 @@
'ldflags': [
'-Wl,-Bsymbolic',
'-L<(shared_generated_dir)',
+ '-L<(libvpx_hack_dir)/lib/<(OS)/<(target_arch)',
],
'libraries': [
'-lz',
+ '-lvpx',
],
'conditions': [
['ffmpeg_asm_lib==1', {
@@ -386,6 +406,7 @@
#
# http://code.google.com/p/gyp/issues/detail?id=108
'<(shared_generated_dir)/<(STATIC_LIB_PREFIX)<(asm_library)<(STATIC_LIB_SUFFIX)',
+ '<(libvpx_hack_dir)/lib/<(OS)/<(target_arch)/libvpx.a',
],
'link_settings': {
'libraries': [
@@ -413,7 +434,8 @@
# butterflies still exist...as do rainbows, sunshine,
# tulips, etc., etc...but not kittens. Those went away
# with this flag.
- '-Wl,-read_only_relocs,suppress'
+ '-Wl,-read_only_relocs,suppress',
+ '-L<(libvpx_hack_dir)/lib/mac/ia32'
],
},
}], # OS=="mac"
« no previous file with comments | « net/base/mime_util_unittest.cc ('k') | third_party/ffmpeg/source/config/Chrome/linux/ia32/config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698