| 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/ppapi_cdm_adapter.gni") | 7 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni") |
| 8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
| 9 | 9 |
| 10 # The GYP version supports build flags "use_fake_video_decoder" and | 10 # The GYP version supports build flags "use_fake_video_decoder" and |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 24 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 25 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 25 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 26 | 26 |
| 27 defines = [ "CDM_IMPLEMENTATION" ] | 27 defines = [ "CDM_IMPLEMENTATION" ] |
| 28 | 28 |
| 29 deps = [ | 29 deps = [ |
| 30 "//base", | 30 "//base", |
| 31 "//build/config/sanitizers:deps", | 31 "//build/config/sanitizers:deps", |
| 32 "//media", # For media::AudioTimestampHelper | 32 "//media", # For media::AudioTimestampHelper |
| 33 "//media:cdm_api", # For content_decryption_module.h |
| 33 "//media:shared_memory_support", # For media::AudioBus. | 34 "//media:shared_memory_support", # For media::AudioBus. |
| 34 "//url", | 35 "//url", |
| 35 ] | 36 ] |
| 36 | 37 |
| 37 if (media_use_ffmpeg) { | 38 if (media_use_ffmpeg) { |
| 38 sources += [ | 39 sources += [ |
| 39 "external_clear_key/ffmpeg_cdm_audio_decoder.cc", | 40 "external_clear_key/ffmpeg_cdm_audio_decoder.cc", |
| 40 "external_clear_key/ffmpeg_cdm_audio_decoder.h", | 41 "external_clear_key/ffmpeg_cdm_audio_decoder.h", |
| 41 "external_clear_key/ffmpeg_cdm_video_decoder.cc", | 42 "external_clear_key/ffmpeg_cdm_video_decoder.cc", |
| 42 "external_clear_key/ffmpeg_cdm_video_decoder.h", | 43 "external_clear_key/ffmpeg_cdm_video_decoder.h", |
| (...skipping 15 matching lines...) Expand all Loading... |
| 58 output = "$target_gen_dir/clearkeycdmadapter_version.rc" | 59 output = "$target_gen_dir/clearkeycdmadapter_version.rc" |
| 59 } | 60 } |
| 60 | 61 |
| 61 ppapi_cdm_adapter("clearkeycdmadapter") { | 62 ppapi_cdm_adapter("clearkeycdmadapter") { |
| 62 # Check whether the plugin's origin URL is valid. | 63 # Check whether the plugin's origin URL is valid. |
| 63 defines = [ "CHECK_DOCUMENT_URL" ] | 64 defines = [ "CHECK_DOCUMENT_URL" ] |
| 64 deps = [ | 65 deps = [ |
| 65 ":clearkeycdm", | 66 ":clearkeycdm", |
| 66 ":clearkeycdmadapter_resources", | 67 ":clearkeycdmadapter_resources", |
| 67 "//base", # Required for the allocator implementation. | 68 "//base", # Required for the allocator implementation. |
| 69 "//media:shared_memory_support", |
| 70 "//ui/gfx/geometry", |
| 68 ] | 71 ] |
| 69 } | 72 } |
| OLD | NEW |