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

Unified Diff: media/media.gyp

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/cast/cast.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/media.gyp
diff --git a/media/media.gyp b/media/media.gyp
index 59dd35678d44848e0068f590a5e0f46a497e9fa7..89d75c1391a4d19c3e538674cc776516552dfbdd 100644
--- a/media/media.gyp
+++ b/media/media.gyp
@@ -1883,5 +1883,66 @@
},
],
}],
+ ['OS=="ios"', {
+ 'targets': [
+ {
+ # Minimal media component for media/cast on iOS.
+ # GN version: //media:media_for_cast_ios
+ 'target_name': 'media_for_cast_ios',
+ 'type': '<(component)',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ '../ui/gfx/gfx.gyp:gfx_geometry',
+ 'shared_memory_support',
+ ],
+ 'defines': [
+ 'MEDIA_IMPLEMENTATION',
+ 'MEDIA_FOR_CAST_IOS',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '..',
+ ],
+ },
+ 'include_dirs': [
+ '..',
+ ],
+ 'sources': [
+ 'base/mac/coremedia_glue.h',
+ 'base/mac/coremedia_glue.mm',
+ 'base/mac/corevideo_glue.h',
+ 'base/mac/videotoolbox_glue.h',
+ 'base/mac/videotoolbox_glue.mm',
+ 'base/video_frame.cc',
+ 'base/video_frame.h',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
+ ],
+ },
+ 'conditions': [
+ ['arm_neon==1', {
+ 'defines': [
+ 'USE_NEON'
+ ],
+ }],
+ ], # conditions
+ 'target_conditions': [
+ ['OS == "ios" and _toolset != "host"', {
+ 'sources/': [
+ # Pull in specific Mac files for iOS (which have been filtered
+ # out by file name rules).
+ ['include', '^base/mac/coremedia_glue\\.h$'],
+ ['include', '^base/mac/coremedia_glue\\.mm$'],
+ ['include', '^base/mac/corevideo_glue\\.h$'],
+ ['include', '^base/mac/videotoolbox_glue\\.h$'],
+ ['include', '^base/mac/videotoolbox_glue\\.mm$'],
+ ],
+ }],
+ ], # target_conditions
+ },
+ ],
+ }],
],
}
« no previous file with comments | « media/cast/cast.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698