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

Unified Diff: media/media.gyp

Issue 11860002: Add video capture on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: code review Created 7 years, 11 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
Index: media/media.gyp
===================================================================
--- media/media.gyp (revision 179001)
+++ media/media.gyp (working copy)
@@ -318,6 +318,8 @@
'filters/video_renderer_base.h',
'filters/vpx_video_decoder.cc',
'filters/vpx_video_decoder.h',
+ 'video/capture/android/video_capture_device_android.cc',
+ 'video/capture/android/video_capture_device_android.h',
'video/capture/fake_video_capture_device.cc',
'video/capture/fake_video_capture_device.h',
'video/capture/linux/video_capture_device_linux.cc',
@@ -476,6 +478,12 @@
'-lOpenSLES',
],
},
+ 'include_dirs': [
+ '<(SHARED_INTERMEDIATE_DIR)/media',
+ ],
+ 'dependencies': [
+ 'video_capture_android_jni_headers',
+ ],
}],
# A simple WebM encoder for animated avatars on ChromeOS.
['chromeos==1', {
@@ -565,9 +573,6 @@
],
}],
],
- }],
- ['os_posix == 1 and OS != "android"', {
- # Video capture isn't supported in Android yet.
'sources!': [
'video/capture/video_capture_device_dummy.cc',
'video/capture/video_capture_device_dummy.h',
@@ -1217,6 +1222,17 @@
'includes': [ '../build/jni_generator.gypi' ],
},
{
+ 'target_name': 'video_capture_android_jni_headers',
+ 'type': 'none',
+ 'sources': [
+ 'base/android/java/src/org/chromium/media/VideoCapture.java',
+ ],
+ 'variables': {
+ 'jni_gen_dir': 'media',
+ },
+ 'includes': [ '../build/jni_generator.gypi' ],
+ },
+ {
'target_name': 'player_android',
'type': 'static_library',
'sources': [

Powered by Google App Engine
This is Rietveld 408576698