| 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 'includes': [ | 6 'includes': [ |
| 7 'media_variables.gypi', | 7 'media_variables.gypi', |
| 8 ], | 8 ], |
| 9 'variables': { | 9 'variables': { |
| 10 # Set |use_fake_video_decoder| to 1 to ignore input frames in |clearkeycdm|, | 10 # Set |use_fake_video_decoder| to 1 to ignore input frames in |clearkeycdm|, |
| 11 # and produce video frames filled with a solid color instead. | 11 # and produce video frames filled with a solid color instead. |
| 12 'use_fake_video_decoder%': 0, | 12 'use_fake_video_decoder%': 0, |
| 13 # Set |use_libvpx_in_clear_key_cdm| to 1 to use libvpx for VP8 decoding in | 13 # Set |use_libvpx_in_clear_key_cdm| to 1 to use libvpx for VP8 decoding in |
| 14 # |clearkeycdm|. | 14 # |clearkeycdm|. |
| 15 'use_libvpx_in_clear_key_cdm%': 0, | 15 'use_libvpx_in_clear_key_cdm%': 0, |
| 16 }, | 16 }, |
| 17 'conditions': [ | 17 'conditions': [ |
| 18 ['enable_pepper_cdms==1', { | 18 ['enable_pepper_cdms==1', { |
| 19 'includes': [ | 19 'includes': [ |
| 20 '../build/util/version.gypi', | 20 '../build/util/version.gypi', |
| 21 ], | 21 ], |
| 22 'targets': [ | 22 'targets': [ |
| 23 { | 23 { |
| 24 # GN version: //media/cdm/ppapi:clearkeycdm | 24 # GN version: //media/cdm/ppapi:clearkeycdm |
| 25 'target_name': 'clearkeycdm', | 25 'target_name': 'clearkeycdm', |
| 26 'product_dir': '<(PRODUCT_DIR)/ClearKeyCdm', |
| 26 'type': 'none', | 27 'type': 'none', |
| 27 # TODO(tomfinegan): Simplify this by unconditionally including all the | 28 # TODO(tomfinegan): Simplify this by unconditionally including all the |
| 28 # decoders, and changing clearkeycdm to select which decoder to use | 29 # decoders, and changing clearkeycdm to select which decoder to use |
| 29 # based on environment variables. | 30 # based on environment variables. |
| 30 'conditions': [ | 31 'conditions': [ |
| 31 ['use_fake_video_decoder == 1' , { | 32 ['use_fake_video_decoder == 1' , { |
| 32 'defines': ['CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER'], | 33 'defines': ['CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER'], |
| 33 'sources': [ | 34 'sources': [ |
| 34 'cdm/ppapi/external_clear_key/fake_cdm_video_decoder.cc', | 35 'cdm/ppapi/external_clear_key/fake_cdm_video_decoder.cc', |
| 35 'cdm/ppapi/external_clear_key/fake_cdm_video_decoder.h', | 36 'cdm/ppapi/external_clear_key/fake_cdm_video_decoder.h', |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 'sources': [ | 109 'sources': [ |
| 109 'clearkeycdmadapter.ver', | 110 'clearkeycdmadapter.ver', |
| 110 ], | 111 ], |
| 111 'includes': [ | 112 'includes': [ |
| 112 '../chrome/version_resource_rules.gypi', | 113 '../chrome/version_resource_rules.gypi', |
| 113 ], | 114 ], |
| 114 }, | 115 }, |
| 115 { | 116 { |
| 116 # GN version: //media/cdm/ppapi:clearkeycdmadapter | 117 # GN version: //media/cdm/ppapi:clearkeycdmadapter |
| 117 'target_name': 'clearkeycdmadapter', | 118 'target_name': 'clearkeycdmadapter', |
| 119 'product_dir': '<(PRODUCT_DIR)/ClearKeyCdm', |
| 118 'type': 'none', | 120 'type': 'none', |
| 119 # Check whether the plugin's origin URL is valid. | 121 # Check whether the plugin's origin URL is valid. |
| 120 'defines': ['CHECK_DOCUMENT_URL'], | 122 'defines': ['CHECK_DOCUMENT_URL'], |
| 121 'dependencies': [ | 123 'dependencies': [ |
| 122 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', | 124 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', |
| 123 'media_cdm_adapter.gyp:cdmadapter', | 125 'media_cdm_adapter.gyp:cdmadapter', |
| 124 'clearkeycdm', | 126 'clearkeycdm', |
| 125 'clearkeycdmadapter_resources', | 127 'clearkeycdmadapter_resources', |
| 126 ], | 128 ], |
| 127 'sources': [ | 129 'sources': [ |
| 128 '<(SHARED_INTERMEDIATE_DIR)/clearkeycdmadapter_version.rc', | 130 '<(SHARED_INTERMEDIATE_DIR)/clearkeycdmadapter_version.rc', |
| 129 ], | 131 ], |
| 130 'conditions': [ | 132 'conditions': [ |
| 131 ['os_posix == 1 and OS != "mac"', { | 133 ['os_posix == 1 and OS != "mac"', { |
| 132 # Because clearkeycdm has type 'loadable_module' (see comments), | 134 # Because clearkeycdm has type 'loadable_module' (see comments), |
| 133 # we must explicitly specify this dependency. | 135 # we must explicitly specify this dependency. |
| 134 'libraries': [ | 136 'libraries': [ |
| 135 '-lrt', | 137 '-lrt', |
| 136 # Built by clearkeycdm. | 138 # Built by clearkeycdm. |
| 137 '<(PRODUCT_DIR)/libclearkeycdm.so', | 139 '<(PRODUCT_DIR)/libclearkeycdm.so', |
| 138 ], | 140 ], |
| 139 }], | 141 }], |
| 140 ], | 142 ], |
| 141 }, | 143 }, |
| 142 ], | 144 ], |
| 143 }], | 145 }], |
| 144 ], | 146 ], |
| 145 } | 147 } |
| OLD | NEW |