| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 11 matching lines...) Expand all Loading... |
| 22 { | 22 { |
| 23 'target_name': 'clearkeycdm', | 23 'target_name': 'clearkeycdm', |
| 24 'type': 'none', | 24 'type': 'none', |
| 25 # TODO(tomfinegan): Simplify this by unconditionally including all the | 25 # TODO(tomfinegan): Simplify this by unconditionally including all the |
| 26 # decoders, and changing clearkeycdm to select which decoder to use | 26 # decoders, and changing clearkeycdm to select which decoder to use |
| 27 # based on environment variables. | 27 # based on environment variables. |
| 28 'conditions': [ | 28 'conditions': [ |
| 29 ['use_fake_video_decoder == 1' , { | 29 ['use_fake_video_decoder == 1' , { |
| 30 'defines': ['CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER'], | 30 'defines': ['CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER'], |
| 31 'sources': [ | 31 'sources': [ |
| 32 'crypto/ppapi/fake_cdm_video_decoder.cc', | 32 'cdm/ppapi/fake_cdm_video_decoder.cc', |
| 33 'crypto/ppapi/fake_cdm_video_decoder.h', | 33 'cdm/ppapi/fake_cdm_video_decoder.h', |
| 34 ], | 34 ], |
| 35 }], | 35 }], |
| 36 ['use_ffmpeg == 1' , { | 36 ['use_ffmpeg == 1' , { |
| 37 'defines': ['CLEAR_KEY_CDM_USE_FFMPEG_DECODER'], | 37 'defines': ['CLEAR_KEY_CDM_USE_FFMPEG_DECODER'], |
| 38 'dependencies': [ | 38 'dependencies': [ |
| 39 '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | 39 '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
| 40 ], | 40 ], |
| 41 'sources': [ | 41 'sources': [ |
| 42 'crypto/ppapi/ffmpeg_cdm_audio_decoder.cc', | 42 'cdm/ppapi/ffmpeg_cdm_audio_decoder.cc', |
| 43 'crypto/ppapi/ffmpeg_cdm_audio_decoder.h', | 43 'cdm/ppapi/ffmpeg_cdm_audio_decoder.h', |
| 44 ], | 44 ], |
| 45 }], | 45 }], |
| 46 ['use_ffmpeg == 1 and use_fake_video_decoder == 0' , { | 46 ['use_ffmpeg == 1 and use_fake_video_decoder == 0' , { |
| 47 'sources': [ | 47 'sources': [ |
| 48 'crypto/ppapi/ffmpeg_cdm_video_decoder.cc', | 48 'cdm/ppapi/ffmpeg_cdm_video_decoder.cc', |
| 49 'crypto/ppapi/ffmpeg_cdm_video_decoder.h', | 49 'cdm/ppapi/ffmpeg_cdm_video_decoder.h', |
| 50 ], | 50 ], |
| 51 }], | 51 }], |
| 52 ['use_libvpx == 1 and use_fake_video_decoder == 0' , { | 52 ['use_libvpx == 1 and use_fake_video_decoder == 0' , { |
| 53 'defines': ['CLEAR_KEY_CDM_USE_LIBVPX_DECODER'], | 53 'defines': ['CLEAR_KEY_CDM_USE_LIBVPX_DECODER'], |
| 54 'dependencies': [ | 54 'dependencies': [ |
| 55 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx', | 55 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx', |
| 56 ], | 56 ], |
| 57 'sources': [ | 57 'sources': [ |
| 58 'crypto/ppapi/libvpx_cdm_video_decoder.cc', | 58 'cdm/ppapi/libvpx_cdm_video_decoder.cc', |
| 59 'crypto/ppapi/libvpx_cdm_video_decoder.h', | 59 'cdm/ppapi/libvpx_cdm_video_decoder.h', |
| 60 ], | 60 ], |
| 61 }], | 61 }], |
| 62 ['os_posix == 1 and OS != "mac" and enable_pepper_cdms==1', { | 62 ['os_posix == 1 and OS != "mac" and enable_pepper_cdms==1', { |
| 63 'type': 'loadable_module', # Must be in PRODUCT_DIR for ASAN bots. | 63 'type': 'loadable_module', # Must be in PRODUCT_DIR for ASAN bots. |
| 64 }], | 64 }], |
| 65 ['(OS == "mac" or OS == "win") and enable_pepper_cdms==1', { | 65 ['(OS == "mac" or OS == "win") and enable_pepper_cdms==1', { |
| 66 'type': 'shared_library', | 66 'type': 'shared_library', |
| 67 }], | 67 }], |
| 68 ['OS == "mac"', { | 68 ['OS == "mac"', { |
| 69 'xcode_settings': { | 69 'xcode_settings': { |
| 70 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | 70 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
| 71 }, | 71 }, |
| 72 }] | 72 }] |
| 73 ], | 73 ], |
| 74 'defines': ['CDM_IMPLEMENTATION'], | 74 'defines': ['CDM_IMPLEMENTATION'], |
| 75 'dependencies': [ | 75 'dependencies': [ |
| 76 'media', |
| 77 # Include the following for media::AudioBus. |
| 78 'shared_memory_support', |
| 76 '<(DEPTH)/base/base.gyp:base', | 79 '<(DEPTH)/base/base.gyp:base', |
| 77 '<(DEPTH)/media/media.gyp:media', | |
| 78 # Include the following for media::AudioBus. | |
| 79 '<(DEPTH)/media/media.gyp:shared_memory_support', | |
| 80 ], | 80 ], |
| 81 'sources': [ | 81 'sources': [ |
| 82 'crypto/ppapi/cdm_video_decoder.cc', | 82 'cdm/ppapi/cdm_video_decoder.cc', |
| 83 'crypto/ppapi/cdm_video_decoder.h', | 83 'cdm/ppapi/cdm_video_decoder.h', |
| 84 'crypto/ppapi/clear_key_cdm.cc', | 84 'cdm/ppapi/clear_key_cdm.cc', |
| 85 'crypto/ppapi/clear_key_cdm.h', | 85 'cdm/ppapi/clear_key_cdm.h', |
| 86 ], | 86 ], |
| 87 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 87 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 88 'msvs_disabled_warnings': [ 4267, ], | 88 'msvs_disabled_warnings': [ 4267, ], |
| 89 }, | 89 }, |
| 90 { | 90 { |
| 91 'target_name': 'clearkeycdmadapter', | 91 'target_name': 'clearkeycdmadapter', |
| 92 'type': 'none', | 92 'type': 'none', |
| 93 # Check whether the plugin's origin URL is valid. | 93 # Check whether the plugin's origin URL is valid. |
| 94 'defines': ['CHECK_DOCUMENT_URL'], | 94 'defines': ['CHECK_DOCUMENT_URL'], |
| 95 'dependencies': [ | 95 'dependencies': [ |
| 96 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', | 96 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', |
| 97 'clearkeycdm', | 97 'clearkeycdm', |
| 98 ], | 98 ], |
| 99 'sources': [ | 99 'sources': [ |
| 100 'crypto/ppapi/cdm_wrapper.cc', | 100 'cdm/ppapi/api/content_decryption_module.h', |
| 101 'crypto/ppapi/cdm/content_decryption_module.h', | 101 'cdm/ppapi/cdm_wrapper.cc', |
| 102 'crypto/ppapi/linked_ptr.h', | 102 'cdm/ppapi/linked_ptr.h', |
| 103 ], | 103 ], |
| 104 'conditions': [ | 104 'conditions': [ |
| 105 ['os_posix == 1 and OS != "mac" and enable_pepper_cdms==1', { | 105 ['os_posix == 1 and OS != "mac" and enable_pepper_cdms==1', { |
| 106 'cflags': ['-fvisibility=hidden'], | 106 'cflags': ['-fvisibility=hidden'], |
| 107 'type': 'loadable_module', | 107 'type': 'loadable_module', |
| 108 # Allow the plugin wrapper to find the CDM in the same directory. | 108 # Allow the plugin wrapper to find the CDM in the same directory. |
| 109 'ldflags': ['-Wl,-rpath=\$$ORIGIN'], | 109 'ldflags': ['-Wl,-rpath=\$$ORIGIN'], |
| 110 'libraries': [ | 110 'libraries': [ |
| 111 # Built by clearkeycdm. | 111 # Built by clearkeycdm. |
| 112 '<(PRODUCT_DIR)/libclearkeycdm.so', | 112 '<(PRODUCT_DIR)/libclearkeycdm.so', |
| (...skipping 14 matching lines...) Expand all Loading... |
| 127 '-Wl,-exported_symbol,_PPP_InitializeModule', | 127 '-Wl,-exported_symbol,_PPP_InitializeModule', |
| 128 '-Wl,-exported_symbol,_PPP_ShutdownModule' | 128 '-Wl,-exported_symbol,_PPP_ShutdownModule' |
| 129 ], | 129 ], |
| 130 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | 130 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
| 131 }, | 131 }, |
| 132 }], | 132 }], |
| 133 ], | 133 ], |
| 134 } | 134 } |
| 135 ], | 135 ], |
| 136 } | 136 } |
| OLD | NEW |