Index: media/media.gyp |
diff --git a/media/media.gyp b/media/media.gyp |
index 78f949c7809c6344fa5ca60f7ac6c647299310fa..8b33bd8a4748369fcb76f31c46b9ff682ca22230 100644 |
--- a/media/media.gyp |
+++ b/media/media.gyp |
@@ -13,8 +13,11 @@ |
['OS == "android" or OS == "ios"', { |
# Android and iOS don't use ffmpeg. |
'use_ffmpeg%': 0, |
+ # Android and iOS don't use libvpx. |
+ 'use_libvpx%': 0, |
}, { # 'OS != "android" and OS != "ios"' |
'use_ffmpeg%': 1, |
+ 'use_libvpx%': 1, |
}], |
], |
}, |
@@ -313,6 +316,8 @@ |
'filters/video_frame_generator.h', |
'filters/video_renderer_base.cc', |
'filters/video_renderer_base.h', |
+ 'filters/vpx_video_decoder.cc', |
+ 'filters/vpx_video_decoder.h', |
'video/capture/fake_video_capture_device.cc', |
'video/capture/fake_video_capture_device.h', |
'video/capture/linux/video_capture_device_linux.cc', |
@@ -413,6 +418,17 @@ |
'webm/webm_stream_parser.h', |
], |
}], |
+ ['use_libvpx == 1', { |
+ 'dependencies': [ |
+ '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx', |
+ ], |
+ }, { # use_libvpx == 0 |
+ # Exclude the sources that depend on libvpx. |
+ 'sources!': [ |
+ 'filters/vpx_video_decoder.cc', |
+ 'filters/vpx_video_decoder.h', |
+ ], |
+ }], |
['OS == "ios"', { |
'includes': [ |
# For shared_memory_support_sources variable. |