Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(791)

Unified Diff: media/media_cdm.gypi

Issue 2279593004: Delete gyp files from media/ (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/media.gyp ('k') | media/media_cdm_adapter.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/media_cdm.gypi
diff --git a/media/media_cdm.gypi b/media/media_cdm.gypi
deleted file mode 100644
index 0e6f705d1cccbdb5add6444507d7701b7948e02d..0000000000000000000000000000000000000000
--- a/media/media_cdm.gypi
+++ /dev/null
@@ -1,200 +0,0 @@
-# Copyright 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-{
- 'includes': [
- 'cdm_paths.gypi',
- 'media_variables.gypi',
- ],
- 'variables': {
- # Set |use_fake_video_decoder| to 1 to ignore input frames in |clearkeycdm|,
- # and produce video frames filled with a solid color instead.
- 'use_fake_video_decoder%': 0,
- # Set |use_libvpx_in_clear_key_cdm| to 1 to use libvpx for VP8 decoding in
- # |clearkeycdm|.
- 'use_libvpx_in_clear_key_cdm%': 0,
- },
- 'conditions': [
- ['enable_pepper_cdms==1', {
- 'includes': [
- '../build/util/version.gypi',
- ],
- 'targets': [
- {
- 'target_name': 'clearkeycdm_binary',
- 'product_name': 'clearkeycdm',
- 'type': 'none',
- # TODO(tomfinegan): Simplify this by unconditionally including all the
- # decoders, and changing clearkeycdm to select which decoder to use
- # based on environment variables.
- 'conditions': [
- ['use_fake_video_decoder == 1' , {
- 'defines': ['CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER'],
- 'sources': [
- 'cdm/ppapi/external_clear_key/fake_cdm_video_decoder.cc',
- 'cdm/ppapi/external_clear_key/fake_cdm_video_decoder.h',
- ],
- }],
- ['media_use_ffmpeg == 1' , {
- 'defines': ['CLEAR_KEY_CDM_USE_FFMPEG_DECODER'],
- 'dependencies': [
- '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
- ],
- 'sources': [
- 'cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc',
- 'cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.h',
- ],
- }],
- ['media_use_ffmpeg == 1 and use_fake_video_decoder == 0' , {
- 'sources': [
- 'cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.cc',
- 'cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.h',
- ],
- }],
- ['use_libvpx_in_clear_key_cdm == 1 and use_fake_video_decoder == 0' , {
- 'defines': ['CLEAR_KEY_CDM_USE_LIBVPX_DECODER'],
- 'dependencies': [
- '<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx',
- ],
- 'sources': [
- 'cdm/ppapi/external_clear_key/libvpx_cdm_video_decoder.cc',
- 'cdm/ppapi/external_clear_key/libvpx_cdm_video_decoder.h',
- ],
- }],
- ['os_posix == 1 and OS != "mac"', {
- 'type': 'loadable_module', # Must be in PRODUCT_DIR for ASAN bot.
- }],
- ['OS == "mac" or OS == "win"', {
- 'type': 'shared_library',
- }],
- ['OS == "mac"', {
- 'xcode_settings': {
- 'DYLIB_INSTALL_NAME_BASE': '@rpath',
- },
- }, {
- # Put Clear Key CDM in the correct path directly except
- # for mac. On mac strip_save_dsym doesn't work with product_dir
- # so we rely on "clearkeycdm" target to copy it over.
- # See http://crbug.com/611990
- 'product_dir': '<(PRODUCT_DIR)/<(clearkey_cdm_path)',
- }]
- ],
- 'defines': ['CDM_IMPLEMENTATION'],
- 'dependencies': [
- 'media',
- '../url/url.gyp:url_lib',
- # Include the following for media::AudioBus.
- 'shared_memory_support',
- '<(DEPTH)/base/base.gyp:base',
- ],
- 'sources': [
- 'cdm/ppapi/cdm_file_io_test.cc',
- 'cdm/ppapi/cdm_file_io_test.h',
- 'cdm/ppapi/external_clear_key/cdm_video_decoder.cc',
- 'cdm/ppapi/external_clear_key/cdm_video_decoder.h',
- 'cdm/ppapi/external_clear_key/clear_key_cdm.cc',
- 'cdm/ppapi/external_clear_key/clear_key_cdm.h',
- 'cdm/ppapi/external_clear_key/clear_key_cdm_common.h',
- ],
- # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
- 'msvs_disabled_warnings': [ 4267, ],
- },
- {
- # GN version: //media/cdm/ppapi:clearkeycdm
- # On Mac this copies the clearkeycdm binary to <(clearkey_cdm_path).
- # On other platforms the binary is already in <(clearkey_cdm_path).
- # See "clearkeycdm_binary" above.
- 'target_name': 'clearkeycdm',
- 'type': 'none',
- 'dependencies': [
- 'clearkeycdm_binary',
- ],
- 'conditions': [
- ['OS == "mac"', {
- 'copies': [{
- 'destination': '<(PRODUCT_DIR)/<(clearkey_cdm_path)',
- 'files': [ '<(PRODUCT_DIR)/libclearkeycdm.dylib' ],
- }],
- }],
- ],
- },
- {
- # GN version: //media/cdm/ppapi:clearkeycdmadapter_resources
- 'target_name': 'clearkeycdmadapter_resources',
- 'type': 'none',
- 'variables': {
- 'output_dir': '.',
- 'branding_path': '../chrome/app/theme/<(branding_path_component)/BRANDING',
- 'template_input_path': '../chrome/app/chrome_version.rc.version',
- 'extra_variable_files_arguments':
- [ '-f', 'cdm/ppapi/external_clear_key/BRANDING' ],
- 'extra_variable_files': [ 'cdm/ppapi/external_clear_key/BRANDING' ],
- },
- 'sources': [
- 'clearkeycdmadapter.ver',
- ],
- 'includes': [
- '../chrome/version_resource_rules.gypi',
- ],
- },
- {
- 'target_name': 'clearkeycdmadapter_binary',
- 'product_name': 'clearkeycdmadapter',
- 'type': 'none',
- # Check whether the plugin's origin URL is valid.
- 'defines': ['CHECK_DOCUMENT_URL'],
- 'dependencies': [
- '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp',
- 'media_cdm_adapter.gyp:cdmadapter',
- 'clearkeycdm',
- 'clearkeycdmadapter_resources',
- ],
- 'sources': [
- '<(SHARED_INTERMEDIATE_DIR)/clearkeycdmadapter_version.rc',
- ],
- 'conditions': [
- ['os_posix == 1 and OS != "mac"', {
- # Because clearkeycdm has type 'loadable_module' (see comments),
- # we must explicitly specify this dependency.
- 'libraries': [
- '-lrt',
- # Built by clearkeycdm.
- '<(PRODUCT_DIR)/<(clearkey_cdm_path)/libclearkeycdm.so',
- ],
- }],
- ['OS == "mac"', {
- 'xcode_settings': {
- 'LD_RUNPATH_SEARCH_PATHS' : [ '@loader_path/.' ],
- },
- }, {
- # Put Clear Key CDM adapter to the correct path directly except
- # for mac. On mac strip_save_dsym doesn't work with product_dir
- # so we rely on "clearkeycdmadapter" target to copy it over.
- # See http://crbug.com/611990
- 'product_dir': '<(PRODUCT_DIR)/<(clearkey_cdm_path)',
- }]
- ],
- },
- {
- # GN version: //media/cdm/ppapi:clearkeycdmadapter
- # On Mac this copies the clearkeycdmadapter binary to
- # <(clearkey_cdm_path). On all other platforms the binary is already
- # in <(clearkey_cdm_path). See "clearkeycdmadapter_binary" above.
- 'target_name': 'clearkeycdmadapter',
- 'type': 'none',
- 'dependencies': [
- 'clearkeycdmadapter_binary',
- ],
- 'conditions': [
- ['OS == "mac"', {
- 'copies': [{
- 'destination': '<(PRODUCT_DIR)/<(clearkey_cdm_path)',
- 'files': [ '<(PRODUCT_DIR)/clearkeycdmadapter.plugin' ],
- }],
- }],
- ],
- }],
- }],
- ],
-}
« no previous file with comments | « media/media.gyp ('k') | media/media_cdm_adapter.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698