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
3 # found in the LICENSE file.
9 # Android doesn't use ffmpeg.
11 }, { # 'OS != "android"'
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.
17 'use_fake_video_decoder%': 0,
18 # Set |use_libvpx| to 1 to use libvpx for VP8 decoding in |clearkeycdm|.
22 ['enable_pepper_cdms==1', {
25 'target_name': 'clearkeycdm',
27 # TODO(tomfinegan): Simplify this by unconditionally including all the
28 # decoders, and changing clearkeycdm to select which decoder to use
29 # based on environment variables.
31 ['use_fake_video_decoder == 1' , {
32 'defines': ['CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER'],
34 'cdm/ppapi/external_clear_key/fake_cdm_video_decoder.cc',
35 'cdm/ppapi/external_clear_key/fake_cdm_video_decoder.h',
38 ['use_ffmpeg == 1' , {
39 'defines': ['CLEAR_KEY_CDM_USE_FFMPEG_DECODER'],
41 '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
44 'cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc',
45 'cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.h',
48 ['use_ffmpeg == 1 and use_fake_video_decoder == 0' , {
50 'cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.cc',
51 'cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.h',
54 ['use_libvpx == 1 and use_fake_video_decoder == 0' , {
55 'defines': ['CLEAR_KEY_CDM_USE_LIBVPX_DECODER'],
57 '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx',
60 'cdm/ppapi/external_clear_key/libvpx_cdm_video_decoder.cc',
61 'cdm/ppapi/external_clear_key/libvpx_cdm_video_decoder.h',
64 ['os_posix == 1 and OS != "mac" and enable_pepper_cdms==1', {
65 'type': 'loadable_module', # Must be in PRODUCT_DIR for ASAN bot.
67 ['(OS == "mac" or OS == "win") and enable_pepper_cdms==1', {
68 'type': 'shared_library',
72 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
76 'defines': ['CDM_IMPLEMENTATION'],
79 # Include the following for media::AudioBus.
80 'shared_memory_support',
81 '<(DEPTH)/base/base.gyp:base',
84 'cdm/ppapi/cdm_file_io_test.cc',
85 'cdm/ppapi/cdm_file_io_test.h',
86 'cdm/ppapi/external_clear_key/cdm_video_decoder.cc',
87 'cdm/ppapi/external_clear_key/cdm_video_decoder.h',
88 'cdm/ppapi/external_clear_key/clear_key_cdm.cc',
89 'cdm/ppapi/external_clear_key/clear_key_cdm.h',
90 'cdm/ppapi/external_clear_key/clear_key_cdm_common.h',
92 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
93 'msvs_disabled_warnings': [ 4267, ],
96 'target_name': 'clearkeycdmadapter',
98 # Check whether the plugin's origin URL is valid.
99 'defines': ['CHECK_DOCUMENT_URL'],
101 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp',
102 'media_cdm_adapter.gyp:cdmadapter',
106 ['os_posix == 1 and OS != "mac" and enable_pepper_cdms==1', {
107 # Because clearkeycdm has type 'loadable_module' (see comments),
108 # we must explicitly specify this dependency.
110 # Built by clearkeycdm.
111 '<(PRODUCT_DIR)/libclearkeycdm.so',