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

Unified Diff: media/cast/BUILD.gn

Issue 581803003: Define a new media_cast component for iOS cast builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cast_receiver and cast_sender dependency list; change how media_for_cast_ios builds media:share… Created 6 years, 3 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 | « media/base/video_frame.cc ('k') | media/cast/cast.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/BUILD.gn
diff --git a/media/cast/BUILD.gn b/media/cast/BUILD.gn
index 8b4951b5559a5f9d7c9d31c79c8707de0f4dc4bd..e56f0bf0302bbf2a6004d4626dc64a92d59b5389 100644
--- a/media/cast/BUILD.gn
+++ b/media/cast/BUILD.gn
@@ -138,6 +138,24 @@ source_set("sender") {
"//third_party/libvpx",
"//third_party/opus",
]
+
+ # use a restricted subset of media and no software codecs on iOS
+ if (is_ios) {
+ deps += [ "//media:media_for_cast_ios" ]
+ deps -= [
+ "//media",
+ "//third_party/libvpx",
+ "//third_party/opus",
+ ]
+ sources -= [
+ "sender/external_video_encoder.h",
+ "sender/external_video_encoder.cc",
+ "sender/video_encoder_impl.h",
+ "sender/video_encoder_impl.cc",
+ "sender/vp8_encoder.cc",
+ "sender/vp8_encoder.h",
+ ]
+ }
}
source_set("receiver") {
@@ -158,10 +176,20 @@ source_set("receiver") {
":net",
"//media",
"//media:shared_memory_support",
- "//third_party/opus",
"//third_party/libvpx",
+ "//third_party/opus",
"//ui/gfx",
]
+
+ # use a restricted subset of media and no software codecs on iOS
+ if (is_ios) {
+ deps += [ "//media:media_for_cast_ios" ]
+ deps -= [
+ "//media",
+ "//third_party/libvpx",
+ "//third_party/opus",
+ ]
+ }
}
source_set("test_support") {
« no previous file with comments | « media/base/video_frame.cc ('k') | media/cast/cast.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698