Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'conditions': [ | 7 'conditions': [ |
| 8 ['OS == "android" or OS == "ios"', { | 8 ['OS == "android" or OS == "ios"', { |
| 9 # Android and iOS don't use ffmpeg. | 9 # Android and iOS don't use ffmpeg. |
| 10 'use_ffmpeg%': 0, | 10 'use_ffmpeg%': 0, |
| 11 }, { # 'OS != "android" and OS != "ios"' | 11 }, { # 'OS != "android" and OS != "ios"' |
| 12 'use_ffmpeg%': 1, | 12 'use_ffmpeg%': 1, |
| 13 }], | 13 }], |
| 14 ], | 14 ], |
| 15 # Set |use_fake_video_decoder| to 1 to ignore input frames in |clearkeycdm|, | |
| 16 # and produce video frames filled with a solid color instead. | |
| 17 'use_fake_video_decoder%': 0, | |
| 18 # Set |use_libvpx| to 1 to use libvpx for VP8 decoding in |clearkeycdm|. | |
| 19 'use_libvpx%': 0, | |
| 15 }, | 20 }, |
| 16 'targets': [ | 21 'targets': [ |
| 17 { | 22 { |
| 18 'target_name': 'webkit_media', | 23 'target_name': 'webkit_media', |
| 19 'type': 'static_library', | 24 'type': 'static_library', |
| 20 'variables': { 'enable_wexit_time_destructors': 1, }, | 25 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 21 'include_dirs': [ | 26 'include_dirs': [ |
| 22 '<(SHARED_INTERMEDIATE_DIR)', # Needed by key_systems.cc. | 27 '<(SHARED_INTERMEDIATE_DIR)', # Needed by key_systems.cc. |
| 23 ], | 28 ], |
| 24 'dependencies': [ | 29 'dependencies': [ |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 105 }, { # OS != "android"' | 110 }, { # OS != "android"' |
| 106 'sources/': [ | 111 'sources/': [ |
| 107 ['exclude', '^android/'], | 112 ['exclude', '^android/'], |
| 108 ], | 113 ], |
| 109 }], | 114 }], |
| 110 ], | 115 ], |
| 111 }, | 116 }, |
| 112 { | 117 { |
| 113 'target_name': 'clearkeycdm', | 118 'target_name': 'clearkeycdm', |
| 114 'type': 'none', | 119 'type': 'none', |
| 120 # TODO(tomfinegan): Simplify this by unconditionally including all the | |
| 121 # decoders, and changing clearkeycdm to select which decoder to use | |
| 122 # based on environment variables. | |
| 115 'conditions': [ | 123 'conditions': [ |
| 116 ['use_ffmpeg == 1' , { | 124 ['use_fake_video_decoder == 1' , { |
| 125 'defines': ['CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER'], | |
| 126 'sources': [ | |
| 127 'crypto/ppapi/fake_cdm_video_decoder.cc', | |
| 128 'crypto/ppapi/fake_cdm_video_decoder.h', | |
| 129 ], | |
| 130 }], | |
| 131 ['use_ffmpeg == 1' , { | |
| 117 'defines': ['CLEAR_KEY_CDM_USE_FFMPEG_DECODER'], | 132 'defines': ['CLEAR_KEY_CDM_USE_FFMPEG_DECODER'], |
| 118 'dependencies': [ | 133 'dependencies': [ |
| 119 '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | 134 '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
| 120 ], | 135 ], |
| 121 'sources': [ | 136 'sources': [ |
| 122 'crypto/ppapi/ffmpeg_cdm_audio_decoder.cc', | 137 'crypto/ppapi/ffmpeg_cdm_audio_decoder.cc', |
| 123 'crypto/ppapi/ffmpeg_cdm_audio_decoder.h', | 138 'crypto/ppapi/ffmpeg_cdm_audio_decoder.h', |
| 139 ], | |
| 140 }], | |
| 141 ['use_ffmpeg == 1 and use_fake_video_decoder == 0' , { | |
| 142 'defines': ['CLEAR_KEY_CDM_USE_FFMPEG_DECODER'], | |
|
ddorwin
2012/12/04 22:38:15
These 4 lines aren't necessary. Just the additiona
Tom Finegan
2012/12/04 23:17:39
Done.
| |
| 143 'dependencies': [ | |
| 144 '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | |
| 145 ], | |
| 146 'sources': [ | |
| 124 'crypto/ppapi/ffmpeg_cdm_video_decoder.cc', | 147 'crypto/ppapi/ffmpeg_cdm_video_decoder.cc', |
| 125 'crypto/ppapi/ffmpeg_cdm_video_decoder.h', | 148 'crypto/ppapi/ffmpeg_cdm_video_decoder.h', |
| 126 ], | 149 ], |
| 127 }], | 150 }], |
| 151 ['use_libvpx == 1 and use_fake_video_decoder == 0' , { | |
| 152 'defines': ['CLEAR_KEY_CDM_USE_LIBVPX_DECODER'], | |
| 153 'dependencies': [ | |
| 154 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx', | |
| 155 ], | |
| 156 'sources': [ | |
| 157 'crypto/ppapi/libvpx_cdm_video_decoder.cc', | |
| 158 'crypto/ppapi/libvpx_cdm_video_decoder.h', | |
| 159 ], | |
| 160 }], | |
| 128 ['os_posix == 1 and OS != "mac"', { | 161 ['os_posix == 1 and OS != "mac"', { |
| 129 'type': 'loadable_module', # Must be in PRODUCT_DIR for ASAN bots. | 162 'type': 'loadable_module', # Must be in PRODUCT_DIR for ASAN bots. |
| 130 }, { # 'os_posix != 1 or OS == "mac"' | 163 }, { # 'os_posix != 1 or OS == "mac"' |
| 131 'type': 'shared_library', | 164 'type': 'shared_library', |
| 132 }], | 165 }], |
| 133 ], | 166 ], |
| 134 'defines': ['CDM_IMPLEMENTATION'], | 167 'defines': ['CDM_IMPLEMENTATION'], |
| 135 'dependencies': [ | 168 'dependencies': [ |
| 136 '<(DEPTH)/base/base.gyp:base', | 169 '<(DEPTH)/base/base.gyp:base', |
| 137 '<(DEPTH)/media/media.gyp:media', | 170 '<(DEPTH)/media/media.gyp:media', |
| 138 ], | 171 ], |
| 139 'sources': [ | 172 'sources': [ |
| 173 'crypto/ppapi/cdm_video_decoder.cc', | |
| 174 'crypto/ppapi/cdm_video_decoder.h', | |
| 140 'crypto/ppapi/clear_key_cdm.cc', | 175 'crypto/ppapi/clear_key_cdm.cc', |
| 141 'crypto/ppapi/clear_key_cdm.h', | 176 'crypto/ppapi/clear_key_cdm.h', |
| 142 ], | 177 ], |
| 143 }, | 178 }, |
| 144 { | 179 { |
| 145 'target_name': 'clearkeycdmplugin', | 180 'target_name': 'clearkeycdmplugin', |
| 146 'type': 'none', | 181 'type': 'none', |
| 147 'dependencies': [ | 182 'dependencies': [ |
| 148 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', | 183 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', |
| 149 'clearkeycdm', | 184 'clearkeycdm', |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 176 # Not to strip important symbols by -Wl,-dead_strip. | 211 # Not to strip important symbols by -Wl,-dead_strip. |
| 177 '-Wl,-exported_symbol,_PPP_GetInterface', | 212 '-Wl,-exported_symbol,_PPP_GetInterface', |
| 178 '-Wl,-exported_symbol,_PPP_InitializeModule', | 213 '-Wl,-exported_symbol,_PPP_InitializeModule', |
| 179 '-Wl,-exported_symbol,_PPP_ShutdownModule' | 214 '-Wl,-exported_symbol,_PPP_ShutdownModule' |
| 180 ]}, | 215 ]}, |
| 181 }], | 216 }], |
| 182 ], | 217 ], |
| 183 } | 218 } |
| 184 ], | 219 ], |
| 185 } | 220 } |
| OLD | NEW |