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

Side by Side Diff: webkit/media/webkit_media.gypi

Issue 15028015: Conditionally build support for Pepper-based CDMs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use AppendAscii() where possible. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/media/crypto/proxy_decryptor.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 }, { # OS != "android"' 109 }, { # OS != "android"'
110 'sources/': [ 110 'sources/': [
111 ['exclude', '^android/'], 111 ['exclude', '^android/'],
112 ], 112 ],
113 }], 113 }],
114 ['google_tv == 1', { 114 ['google_tv == 1', {
115 'sources!': [ 115 'sources!': [
116 'crypto/key_systems_info.cc', 116 'crypto/key_systems_info.cc',
117 ], 117 ],
118 }], 118 }],
119 ['enable_pepper_cdms != 1', {
120 'sources!': [
121 'crypto/ppapi_decryptor.cc',
122 'crypto/ppapi_decryptor.h',
123 ],
124 }],
119 ], 125 ],
120 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 126 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
121 'msvs_disabled_warnings': [ 4267, ], 127 'msvs_disabled_warnings': [ 4267, ],
122 }, 128 },
123 { 129 {
124 'target_name': 'clearkeycdm', 130 'target_name': 'clearkeycdm',
125 'type': 'none', 131 'type': 'none',
126 # TODO(tomfinegan): Simplify this by unconditionally including all the 132 # TODO(tomfinegan): Simplify this by unconditionally including all the
127 # decoders, and changing clearkeycdm to select which decoder to use 133 # decoders, and changing clearkeycdm to select which decoder to use
128 # based on environment variables. 134 # based on environment variables.
(...skipping 24 matching lines...) Expand all
153 ['use_libvpx == 1 and use_fake_video_decoder == 0' , { 159 ['use_libvpx == 1 and use_fake_video_decoder == 0' , {
154 'defines': ['CLEAR_KEY_CDM_USE_LIBVPX_DECODER'], 160 'defines': ['CLEAR_KEY_CDM_USE_LIBVPX_DECODER'],
155 'dependencies': [ 161 'dependencies': [
156 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx', 162 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx',
157 ], 163 ],
158 'sources': [ 164 'sources': [
159 'crypto/ppapi/libvpx_cdm_video_decoder.cc', 165 'crypto/ppapi/libvpx_cdm_video_decoder.cc',
160 'crypto/ppapi/libvpx_cdm_video_decoder.h', 166 'crypto/ppapi/libvpx_cdm_video_decoder.h',
161 ], 167 ],
162 }], 168 }],
163 ['os_posix == 1 and OS != "mac"', { 169 ['os_posix == 1 and OS != "mac" and enable_pepper_cdms==1', {
164 'type': 'loadable_module', # Must be in PRODUCT_DIR for ASAN bots. 170 'type': 'loadable_module', # Must be in PRODUCT_DIR for ASAN bots.
165 }, { # 'os_posix != 1 or OS == "mac"' 171 }],
172 ['(OS == "mac" or OS == "win") and enable_pepper_cdms==1', {
166 'type': 'shared_library', 173 'type': 'shared_library',
167 }], 174 }],
168 ['OS == "mac"', { 175 ['OS == "mac"', {
169 'xcode_settings': { 176 'xcode_settings': {
170 'DYLIB_INSTALL_NAME_BASE': '@loader_path', 177 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
171 }, 178 },
172 }] 179 }]
173 ], 180 ],
174 'defines': ['CDM_IMPLEMENTATION'], 181 'defines': ['CDM_IMPLEMENTATION'],
175 'dependencies': [ 182 'dependencies': [
(...skipping 19 matching lines...) Expand all
195 'dependencies': [ 202 'dependencies': [
196 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', 203 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp',
197 'clearkeycdm', 204 'clearkeycdm',
198 ], 205 ],
199 'sources': [ 206 'sources': [
200 'crypto/ppapi/cdm_wrapper.cc', 207 'crypto/ppapi/cdm_wrapper.cc',
201 'crypto/ppapi/cdm/content_decryption_module.h', 208 'crypto/ppapi/cdm/content_decryption_module.h',
202 'crypto/ppapi/linked_ptr.h', 209 'crypto/ppapi/linked_ptr.h',
203 ], 210 ],
204 'conditions': [ 211 'conditions': [
205 ['os_posix == 1 and OS != "mac"', { 212 ['os_posix == 1 and OS != "mac" and enable_pepper_cdms==1', {
206 'cflags': ['-fvisibility=hidden'], 213 'cflags': ['-fvisibility=hidden'],
207 'type': 'loadable_module', 214 'type': 'loadable_module',
208 # Allow the plugin wrapper to find the CDM in the same directory. 215 # Allow the plugin wrapper to find the CDM in the same directory.
209 'ldflags': ['-Wl,-rpath=\$$ORIGIN'], 216 'ldflags': ['-Wl,-rpath=\$$ORIGIN'],
210 'libraries': [ 217 'libraries': [
211 # Built by clearkeycdm. 218 # Built by clearkeycdm.
212 '<(PRODUCT_DIR)/libclearkeycdm.so', 219 '<(PRODUCT_DIR)/libclearkeycdm.so',
213 ], 220 ],
214 }], 221 }],
215 ['OS == "win"', { 222 ['OS == "win" and enable_pepper_cdms==1', {
216 'type': 'shared_library', 223 'type': 'shared_library',
217 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 224 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
218 'msvs_disabled_warnings': [ 4267, ], 225 'msvs_disabled_warnings': [ 4267, ],
219 }], 226 }],
220 ['OS == "mac"', { 227 ['OS == "mac" and enable_pepper_cdms==1', {
221 'type': 'loadable_module', 228 'type': 'loadable_module',
222 'product_extension': 'plugin', 229 'product_extension': 'plugin',
223 'xcode_settings': { 230 'xcode_settings': {
224 'OTHER_LDFLAGS': [ 231 'OTHER_LDFLAGS': [
225 # Not to strip important symbols by -Wl,-dead_strip. 232 # Not to strip important symbols by -Wl,-dead_strip.
226 '-Wl,-exported_symbol,_PPP_GetInterface', 233 '-Wl,-exported_symbol,_PPP_GetInterface',
227 '-Wl,-exported_symbol,_PPP_InitializeModule', 234 '-Wl,-exported_symbol,_PPP_InitializeModule',
228 '-Wl,-exported_symbol,_PPP_ShutdownModule' 235 '-Wl,-exported_symbol,_PPP_ShutdownModule'
229 ], 236 ],
230 'DYLIB_INSTALL_NAME_BASE': '@loader_path', 237 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
231 }, 238 },
232 }], 239 }],
233 ], 240 ],
234 } 241 }
235 ], 242 ],
236 } 243 }
OLDNEW
« no previous file with comments | « webkit/media/crypto/proxy_decryptor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698