| 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': [ |
| 7 'media_variables.gypi', |
| 8 ], |
| 6 'variables': { | 9 'variables': { |
| 7 'conditions': [ | |
| 8 ['OS == "android"', { | |
| 9 # Android doesn't use ffmpeg. | |
| 10 'use_ffmpeg%': 0, | |
| 11 }, { # 'OS != "android"' | |
| 12 'use_ffmpeg%': 1, | |
| 13 }], | |
| 14 ], | |
| 15 # 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|, |
| 16 # and produce video frames filled with a solid color instead. | 11 # and produce video frames filled with a solid color instead. |
| 17 'use_fake_video_decoder%': 0, | 12 'use_fake_video_decoder%': 0, |
| 18 # Set |use_libvpx| to 1 to use libvpx for VP8 decoding in |clearkeycdm|. | 13 # Set |use_libvpx_in_clear_key_cdm| to 1 to use libvpx for VP8 decoding in |
| 19 'use_libvpx%': 0, | 14 # |clearkeycdm|. |
| 15 'use_libvpx_in_clear_key_cdm%': 0, |
| 20 }, | 16 }, |
| 21 'conditions': [ | 17 'conditions': [ |
| 22 ['enable_pepper_cdms==1', { | 18 ['enable_pepper_cdms==1', { |
| 23 'includes': [ | 19 'includes': [ |
| 24 '../build/util/version.gypi', | 20 '../build/util/version.gypi', |
| 25 ], | 21 ], |
| 26 'targets': [ | 22 'targets': [ |
| 27 { | 23 { |
| 28 # GN version: //media/cdm/ppapi:clearkeycdm | 24 # GN version: //media/cdm/ppapi:clearkeycdm |
| 29 'target_name': 'clearkeycdm', | 25 'target_name': 'clearkeycdm', |
| 30 'type': 'none', | 26 'type': 'none', |
| 31 # TODO(tomfinegan): Simplify this by unconditionally including all the | 27 # TODO(tomfinegan): Simplify this by unconditionally including all the |
| 32 # decoders, and changing clearkeycdm to select which decoder to use | 28 # decoders, and changing clearkeycdm to select which decoder to use |
| 33 # based on environment variables. | 29 # based on environment variables. |
| 34 'conditions': [ | 30 'conditions': [ |
| 35 ['use_fake_video_decoder == 1' , { | 31 ['use_fake_video_decoder == 1' , { |
| 36 'defines': ['CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER'], | 32 'defines': ['CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER'], |
| 37 'sources': [ | 33 'sources': [ |
| 38 'cdm/ppapi/external_clear_key/fake_cdm_video_decoder.cc', | 34 'cdm/ppapi/external_clear_key/fake_cdm_video_decoder.cc', |
| 39 'cdm/ppapi/external_clear_key/fake_cdm_video_decoder.h', | 35 'cdm/ppapi/external_clear_key/fake_cdm_video_decoder.h', |
| 40 ], | 36 ], |
| 41 }], | 37 }], |
| 42 ['use_ffmpeg == 1' , { | 38 ['media_use_ffmpeg == 1' , { |
| 43 'defines': ['CLEAR_KEY_CDM_USE_FFMPEG_DECODER'], | 39 'defines': ['CLEAR_KEY_CDM_USE_FFMPEG_DECODER'], |
| 44 'dependencies': [ | 40 'dependencies': [ |
| 45 '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | 41 '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
| 46 ], | 42 ], |
| 47 'sources': [ | 43 'sources': [ |
| 48 'cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc', | 44 'cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc', |
| 49 'cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.h', | 45 'cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.h', |
| 50 ], | 46 ], |
| 51 }], | 47 }], |
| 52 ['use_ffmpeg == 1 and use_fake_video_decoder == 0' , { | 48 ['media_use_ffmpeg == 1 and use_fake_video_decoder == 0' , { |
| 53 'sources': [ | 49 'sources': [ |
| 54 'cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.cc', | 50 'cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.cc', |
| 55 'cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.h', | 51 'cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.h', |
| 56 ], | 52 ], |
| 57 }], | 53 }], |
| 58 ['use_libvpx == 1 and use_fake_video_decoder == 0' , { | 54 ['use_libvpx_in_clear_key_cdm == 1 and use_fake_video_decoder == 0'
, { |
| 59 'defines': ['CLEAR_KEY_CDM_USE_LIBVPX_DECODER'], | 55 'defines': ['CLEAR_KEY_CDM_USE_LIBVPX_DECODER'], |
| 60 'dependencies': [ | 56 'dependencies': [ |
| 61 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx', | 57 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx', |
| 62 ], | 58 ], |
| 63 'sources': [ | 59 'sources': [ |
| 64 'cdm/ppapi/external_clear_key/libvpx_cdm_video_decoder.cc', | 60 'cdm/ppapi/external_clear_key/libvpx_cdm_video_decoder.cc', |
| 65 'cdm/ppapi/external_clear_key/libvpx_cdm_video_decoder.h', | 61 'cdm/ppapi/external_clear_key/libvpx_cdm_video_decoder.h', |
| 66 ], | 62 ], |
| 67 }], | 63 }], |
| 68 ['os_posix == 1 and OS != "mac" and enable_pepper_cdms==1', { | 64 ['os_posix == 1 and OS != "mac" and enable_pepper_cdms==1', { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 # Built by clearkeycdm. | 136 # Built by clearkeycdm. |
| 141 '<(PRODUCT_DIR)/libclearkeycdm.so', | 137 '<(PRODUCT_DIR)/libclearkeycdm.so', |
| 142 ], | 138 ], |
| 143 }], | 139 }], |
| 144 ], | 140 ], |
| 145 }, | 141 }, |
| 146 ], | 142 ], |
| 147 }], | 143 }], |
| 148 ], | 144 ], |
| 149 } | 145 } |
| OLD | NEW |