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

Unified Diff: media/media.gyp

Issue 1140113002: Implement screen capture for android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: media/media.gyp
diff --git a/media/media.gyp b/media/media.gyp
index f5e797b61fe5ea05cc3abeccf93be9587a92859d..5b03a5168d5291acf9c1e87d5ae1f1647bcc4506 100644
--- a/media/media.gyp
+++ b/media/media.gyp
@@ -680,12 +680,25 @@
'base/browser_cdm_factory.h',
],
}],
+ ['enable_webrtc==1 and OS=="android"', {
+ 'sources': [
+ 'screen_capture/android/screen_capturer_android.cc',
+ 'screen_capture/android/screen_capturer_android.h',
+ 'screen_capture/android/screen_capture_factory_android.cc',
+ 'screen_capture/android/screen_capture_factory_android.h',
+ ],
+ 'dependencies': [
+ '../third_party/webrtc/modules/modules.gyp:desktop_capture',
+ '../third_party/webrtc/base/base.gyp:rtc_base',
+ ],
+ }],
['OS=="android"', {
'dependencies': [
'media_android_jni_headers',
'media_java',
'player_android',
'video_capture_android_jni_headers',
+ 'screen_capture_android_jni_headers',
],
'sources': [
'base/media.cc',
@@ -1716,6 +1729,19 @@
'includes': ['../build/jni_generator.gypi'],
},
{
+ # GN: //media/base/android:screen_capture_android_jni_headers
+ 'target_name': 'screen_capture_android_jni_headers',
+ 'type': 'none',
+ 'sources': [
+ 'base/android/java/src/org/chromium/media/ScreenCapture.java',
+ 'base/android/java/src/org/chromium/media/ScreenCaptureFactory.java',
+ ],
+ 'variables': {
+ 'jni_gen_package': 'media',
+ },
+ 'includes': ['../build/jni_generator.gypi'],
+ },
+ {
# GN: //media/base/android:android
'target_name': 'player_android',
'type': 'static_library',
@@ -1763,6 +1789,7 @@
'dependencies': [
'../base/base.gyp:base',
'../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
+ '../third_party/webrtc/base/base.gyp:rtc_base',
'../ui/gl/gl.gyp:gl',
'../url/url.gyp:url_lib',
'media_android_jni_headers',

Powered by Google App Engine
This is Rietveld 408576698