| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//chrome/version.gni") # TODO layering violation! | 6 import("//chrome/version.gni") # TODO layering violation! |
| 7 import("//media/cdm/ppapi/cdm_adapter.gni") | 7 import("//media/cdm/ppapi/cdm_adapter.gni") |
| 8 | 8 |
| 9 # Android doesn't use ffmpeg. | 9 # Android doesn't use ffmpeg. |
| 10 use_ffmpeg = !is_android | 10 use_ffmpeg = !is_android |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 "external_clear_key/clear_key_cdm_common.h", | 23 "external_clear_key/clear_key_cdm_common.h", |
| 24 ] | 24 ] |
| 25 | 25 |
| 26 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 26 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 27 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 27 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 28 | 28 |
| 29 defines = [ "CDM_IMPLEMENTATION" ] | 29 defines = [ "CDM_IMPLEMENTATION" ] |
| 30 | 30 |
| 31 deps = [ | 31 deps = [ |
| 32 "//base", | 32 "//base", |
| 33 "//build/config/sanitizers:deps", |
| 33 "//media", # For media::AudioTimestampHelper | 34 "//media", # For media::AudioTimestampHelper |
| 34 "//media:shared_memory_support", # For media::AudioBus. | 35 "//media:shared_memory_support", # For media::AudioBus. |
| 35 "//url", | 36 "//url", |
| 36 ] | 37 ] |
| 37 | 38 |
| 38 if (use_ffmpeg) { | 39 if (use_ffmpeg) { |
| 39 sources += [ | 40 sources += [ |
| 40 "external_clear_key/ffmpeg_cdm_audio_decoder.cc", | 41 "external_clear_key/ffmpeg_cdm_audio_decoder.cc", |
| 41 "external_clear_key/ffmpeg_cdm_audio_decoder.h", | 42 "external_clear_key/ffmpeg_cdm_audio_decoder.h", |
| 42 "external_clear_key/ffmpeg_cdm_video_decoder.cc", | 43 "external_clear_key/ffmpeg_cdm_video_decoder.cc", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 61 | 62 |
| 62 cdm_adapter("clearkeycdmadapter") { | 63 cdm_adapter("clearkeycdmadapter") { |
| 63 # Check whether the plugin's origin URL is valid. | 64 # Check whether the plugin's origin URL is valid. |
| 64 defines = [ "CHECK_DOCUMENT_URL" ] | 65 defines = [ "CHECK_DOCUMENT_URL" ] |
| 65 deps = [ | 66 deps = [ |
| 66 ":clearkeycdm", | 67 ":clearkeycdm", |
| 67 ":clearkeycdmadapter_resources", | 68 ":clearkeycdmadapter_resources", |
| 68 "//ppapi/cpp", | 69 "//ppapi/cpp", |
| 69 ] | 70 ] |
| 70 } | 71 } |
| OLD | NEW |