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/process_version_rc_template.gni") | 6 import("//chrome/process_version_rc_template.gni") |
7 import("//media/cdm/ppapi/cdm_paths.gni") | 7 import("//media/cdm/ppapi/cdm_paths.gni") |
8 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni") | 8 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni") |
9 import("//media/media_options.gni") | 9 import("//media/media_options.gni") |
10 | 10 |
11 shared_library("clearkeycdm") { | 11 shared_library("clearkeycdm") { |
12 output_dir = "$root_out_dir/$clearkey_cdm_path" | 12 output_dir = "$root_out_dir/$clearkey_cdm_path" |
13 sources = [ | 13 sources = [ |
14 "cdm_file_io_test.cc", | 14 "cdm_file_io_test.cc", |
15 "cdm_file_io_test.h", | 15 "cdm_file_io_test.h", |
16 "external_clear_key/cdm_video_decoder.cc", | 16 "external_clear_key/cdm_video_decoder.cc", |
17 "external_clear_key/cdm_video_decoder.h", | 17 "external_clear_key/cdm_video_decoder.h", |
18 "external_clear_key/clear_key_cdm.cc", | 18 "external_clear_key/clear_key_cdm.cc", |
19 "external_clear_key/clear_key_cdm.h", | 19 "external_clear_key/clear_key_cdm.h", |
20 "external_clear_key/clear_key_cdm_common.h", | 20 "external_clear_key/clear_key_cdm_common.h", |
21 ] | 21 ] |
22 | 22 |
23 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 23 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
24 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 24 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
25 | 25 |
26 defines = [ "CDM_IMPLEMENTATION" ] | 26 defines = [ "CDM_IMPLEMENTATION" ] |
27 | 27 |
28 deps = [ | 28 deps = [ |
29 "//base", | 29 "//base", |
30 "//build/config/sanitizers:deps", | 30 "//build/config:exe_and_shlib_deps", |
31 "//media", # For media::AudioTimestampHelper | 31 "//media", # For media::AudioTimestampHelper |
32 "//media:cdm_api", # For content_decryption_module.h | 32 "//media:cdm_api", # For content_decryption_module.h |
33 "//media:shared_memory_support", # For media::AudioBus. | 33 "//media:shared_memory_support", # For media::AudioBus. |
34 "//url", | 34 "//url", |
35 ] | 35 ] |
36 | 36 |
37 if (media_use_ffmpeg) { | 37 if (media_use_ffmpeg) { |
38 sources += [ | 38 sources += [ |
39 "external_clear_key/ffmpeg_cdm_audio_decoder.cc", | 39 "external_clear_key/ffmpeg_cdm_audio_decoder.cc", |
40 "external_clear_key/ffmpeg_cdm_audio_decoder.h", | 40 "external_clear_key/ffmpeg_cdm_audio_decoder.h", |
(...skipping 24 matching lines...) Expand all Loading... |
65 # Check whether the plugin's origin URL is valid. | 65 # Check whether the plugin's origin URL is valid. |
66 defines = [ "CHECK_DOCUMENT_URL" ] | 66 defines = [ "CHECK_DOCUMENT_URL" ] |
67 deps = [ | 67 deps = [ |
68 ":clearkeycdm", | 68 ":clearkeycdm", |
69 ":clearkeycdmadapter_resources", | 69 ":clearkeycdmadapter_resources", |
70 "//base", # Required for the allocator implementation. | 70 "//base", # Required for the allocator implementation. |
71 "//media:shared_memory_support", | 71 "//media:shared_memory_support", |
72 "//ui/gfx/geometry", | 72 "//ui/gfx/geometry", |
73 ] | 73 ] |
74 } | 74 } |
OLD | NEW |