Chromium Code Reviews| 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"', { | 8 ['OS == "android"', { |
| 9 # Android doesn't use ffmpeg. | 9 # Android doesn't use ffmpeg. |
| 10 'use_ffmpeg%': 0, | 10 'use_ffmpeg%': 0, |
| 11 }, { # 'OS != "android"' | 11 }, { # 'OS != "android"' |
| 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|, | 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. | 16 # and produce video frames filled with a solid color instead. |
| 17 'use_fake_video_decoder%': 0, | 17 'use_fake_video_decoder%': 0, |
| 18 # Set |use_libvpx| to 1 to use libvpx for VP8 decoding in |clearkeycdm|. | 18 # Set |use_libvpx| to 1 to use libvpx for VP8 decoding in |clearkeycdm|. |
| 19 'use_libvpx%': 0, | 19 'use_libvpx%': 0, |
| 20 }, | 20 }, |
| 21 'conditions': [ | 21 'conditions': [ |
| 22 ['enable_pepper_cdms==1', { | 22 ['enable_pepper_cdms==1', { |
| 23 'targets': [ | 23 'includes': [ |
| 24 '../build/util/version.gypi', | |
| 25 ], | |
| 26 'targets': [ | |
| 24 { | 27 { |
| 25 'target_name': 'clearkeycdm', | 28 'target_name': 'clearkeycdm', |
| 26 'type': 'none', | 29 'type': 'none', |
| 27 # TODO(tomfinegan): Simplify this by unconditionally including all the | 30 # TODO(tomfinegan): Simplify this by unconditionally including all the |
| 28 # decoders, and changing clearkeycdm to select which decoder to use | 31 # decoders, and changing clearkeycdm to select which decoder to use |
| 29 # based on environment variables. | 32 # based on environment variables. |
| 30 'conditions': [ | 33 'conditions': [ |
| 31 ['use_fake_video_decoder == 1' , { | 34 ['use_fake_video_decoder == 1' , { |
| 32 'defines': ['CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER'], | 35 'defines': ['CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER'], |
| 33 'sources': [ | 36 'sources': [ |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 87 'cdm/ppapi/external_clear_key/cdm_video_decoder.cc', | 90 'cdm/ppapi/external_clear_key/cdm_video_decoder.cc', |
| 88 'cdm/ppapi/external_clear_key/cdm_video_decoder.h', | 91 'cdm/ppapi/external_clear_key/cdm_video_decoder.h', |
| 89 'cdm/ppapi/external_clear_key/clear_key_cdm.cc', | 92 'cdm/ppapi/external_clear_key/clear_key_cdm.cc', |
| 90 'cdm/ppapi/external_clear_key/clear_key_cdm.h', | 93 'cdm/ppapi/external_clear_key/clear_key_cdm.h', |
| 91 'cdm/ppapi/external_clear_key/clear_key_cdm_common.h', | 94 'cdm/ppapi/external_clear_key/clear_key_cdm_common.h', |
| 92 ], | 95 ], |
| 93 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 96 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 94 'msvs_disabled_warnings': [ 4267, ], | 97 'msvs_disabled_warnings': [ 4267, ], |
| 95 }, | 98 }, |
| 96 { | 99 { |
| 100 'target_name': 'clearkeycdmadapter_resources', | |
| 101 'type': 'none', | |
| 102 'conditions': [ | |
| 103 ['branding == "Chrome"', { | |
| 104 'variables': { | |
| 105 'branding_path': '../chrome/app/theme/google_chrome/BRANDING', | |
| 106 }, | |
| 107 }, { # else branding!="Chrome" | |
| 108 'variables': { | |
| 109 'branding_path': '../chrome/app/theme/chromium/BRANDING', | |
| 110 }, | |
| 111 }], | |
| 112 ], | |
| 113 'variables': { | |
| 114 'output_dir': '.', | |
| 115 'template_input_path': '../chrome/app/chrome_version.rc.version', | |
| 116 }, | |
| 117 'sources': [ | |
| 118 'clearkeycdmadapter.ver', | |
| 119 ], | |
| 120 'includes': [ | |
| 121 '../chrome/version_resource_rules.gypi', | |
| 122 ], | |
| 123 }, | |
|
xhwang
2014/10/31 18:25:04
Is there a way to actually put these in the cdmada
jrummell
2014/10/31 23:03:11
From what I've been able to tell, it appears that
| |
| 124 { | |
| 97 'target_name': 'clearkeycdmadapter', | 125 'target_name': 'clearkeycdmadapter', |
| 98 'type': 'none', | 126 'type': 'none', |
| 99 # Check whether the plugin's origin URL is valid. | 127 # Check whether the plugin's origin URL is valid. |
| 100 'defines': ['CHECK_DOCUMENT_URL'], | 128 'defines': ['CHECK_DOCUMENT_URL'], |
| 101 'dependencies': [ | 129 'dependencies': [ |
| 102 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', | 130 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', |
| 103 'media_cdm_adapter.gyp:cdmadapter', | 131 'media_cdm_adapter.gyp:cdmadapter', |
| 104 'clearkeycdm', | 132 'clearkeycdm', |
| 133 'clearkeycdmadapter_resources', | |
| 134 ], | |
| 135 'sources': [ | |
| 136 '<(SHARED_INTERMEDIATE_DIR)/clearkeycdmadapter_version.rc', | |
| 105 ], | 137 ], |
| 106 'conditions': [ | 138 'conditions': [ |
| 107 ['os_posix == 1 and OS != "mac" and enable_pepper_cdms==1', { | 139 ['os_posix == 1 and OS != "mac" and enable_pepper_cdms==1', { |
| 108 # Because clearkeycdm has type 'loadable_module' (see comments), | 140 # Because clearkeycdm has type 'loadable_module' (see comments), |
| 109 # we must explicitly specify this dependency. | 141 # we must explicitly specify this dependency. |
| 110 'libraries': [ | 142 'libraries': [ |
| 111 # Built by clearkeycdm. | 143 # Built by clearkeycdm. |
| 112 '<(PRODUCT_DIR)/libclearkeycdm.so', | 144 '<(PRODUCT_DIR)/libclearkeycdm.so', |
| 113 ], | 145 ], |
| 114 }], | 146 }], |
| 115 ], | 147 ], |
| 116 }, | 148 }, |
| 117 ], | 149 ], |
| 118 }], | 150 }], |
| 119 ], | 151 ], |
| 120 } | 152 } |
| OLD | NEW |