diff options
author | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-19 01:08:23 +0000 |
---|---|---|
committer | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-19 01:08:23 +0000 |
commit | 8e0f4b4eb7802239c7cc999a4e77e868ee6e9409 (patch) | |
tree | 1df2e2bfb98b0f1eb55f640b8e8bf4c941efb248 /third_party/widevine | |
parent | 6ad3689049978411ecd67c2a60017c5d3a3d7152 (diff) | |
download | chromium_src-8e0f4b4eb7802239c7cc999a4e77e868ee6e9409.zip chromium_src-8e0f4b4eb7802239c7cc999a4e77e868ee6e9409.tar.gz chromium_src-8e0f4b4eb7802239c7cc999a4e77e868ee6e9409.tar.bz2 |
Add media_cdm_adapter.gyp: a common base for all CDM adapters.
This removes duplicate code in CDM adapter gyp targets.
Also move more code under the condition enable_pepper_cdms==1 so that when enable_pepper_cdms==0, clearkeycdm, clearkeycdmadapter and widevinecdmadapter targets won't exist.
BUG=329097
TEST=Widevine and ClearKey CDM adapters still work.
Review URL: https://codereview.chromium.org/108703004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241736 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/widevine')
-rw-r--r-- | third_party/widevine/cdm/widevine_cdm.gyp | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/third_party/widevine/cdm/widevine_cdm.gyp b/third_party/widevine/cdm/widevine_cdm.gyp index d4502fc..f7b62ef 100644 --- a/third_party/widevine/cdm/widevine_cdm.gyp +++ b/third_party/widevine/cdm/widevine_cdm.gyp @@ -56,59 +56,28 @@ [ 'branding == "Chrome" and enable_pepper_cdms==1', { 'dependencies': [ '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', + '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', 'widevine_cdm_version_h', 'widevine_cdm_binaries', ], - 'sources': [ - '<(DEPTH)/media/cdm/ppapi/api/content_decryption_module.h', - '<(DEPTH)/media/cdm/ppapi/cdm_adapter.cc', - '<(DEPTH)/media/cdm/ppapi/cdm_adapter.h', - '<(DEPTH)/media/cdm/ppapi/cdm_file_io_impl.cc', - '<(DEPTH)/media/cdm/ppapi/cdm_file_io_impl.h', - '<(DEPTH)/media/cdm/ppapi/cdm_helpers.cc', - '<(DEPTH)/media/cdm/ppapi/cdm_helpers.h', - '<(DEPTH)/media/cdm/ppapi/cdm_logging.cc', - '<(DEPTH)/media/cdm/ppapi/cdm_logging.h', - '<(DEPTH)/media/cdm/ppapi/cdm_wrapper.h', - '<(DEPTH)/media/cdm/ppapi/linked_ptr.h', - '<(DEPTH)/media/cdm/ppapi/supported_cdm_versions.h', - ], 'conditions': [ [ 'os_posix == 1 and OS != "mac"', { - 'cflags': ['-fvisibility=hidden'], - 'type': 'loadable_module', - # Allow the plugin adapter to find the CDM in the same directory. - 'ldflags': ['-Wl,-rpath=\$$ORIGIN'], 'libraries': [ # Copied by widevine_cdm_binaries. '<(PRODUCT_DIR)/libwidevinecdm.so', ], }], [ 'OS == "win"', { - 'type': 'shared_library', - # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. - 'msvs_disabled_warnings': [ 4267, ], 'libraries': [ # Copied by widevine_cdm_binaries. '<(PRODUCT_DIR)/widevinecdm.dll.lib', ], }], [ 'OS == "mac"', { - 'type': 'loadable_module', - 'product_extension': 'plugin', 'libraries': [ # Copied by widevine_cdm_binaries. '<(PRODUCT_DIR)/libwidevinecdm.dylib', ], - 'xcode_settings': { - 'OTHER_LDFLAGS': [ - # Not to strip important symbols by -Wl,-dead_strip. - '-Wl,-exported_symbol,_PPP_GetInterface', - '-Wl,-exported_symbol,_PPP_InitializeModule', - '-Wl,-exported_symbol,_PPP_ShutdownModule', - ], - 'DYLIB_INSTALL_NAME_BASE': '@loader_path', - }, }], ], }], |