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 import("//media/media_options.gni") |
9 # Android doesn't use ffmpeg. | |
10 use_ffmpeg = !is_android | |
11 | 9 |
12 # The GYP version supports build flags "use_fake_video_decoder" and | 10 # The GYP version supports build flags "use_fake_video_decoder" and |
13 # "use_vpx". These should be added here if necessary but its not clear if | 11 # "use_vpx". These should be added here if necessary but its not clear if |
14 # they are required any more. | 12 # they are required any more. |
15 shared_library("clearkeycdm") { | 13 shared_library("clearkeycdm") { |
16 sources = [ | 14 sources = [ |
17 "cdm_file_io_test.cc", | 15 "cdm_file_io_test.cc", |
18 "cdm_file_io_test.h", | 16 "cdm_file_io_test.h", |
19 "external_clear_key/cdm_video_decoder.cc", | 17 "external_clear_key/cdm_video_decoder.cc", |
20 "external_clear_key/cdm_video_decoder.h", | 18 "external_clear_key/cdm_video_decoder.h", |
21 "external_clear_key/clear_key_cdm.cc", | 19 "external_clear_key/clear_key_cdm.cc", |
22 "external_clear_key/clear_key_cdm.h", | 20 "external_clear_key/clear_key_cdm.h", |
23 "external_clear_key/clear_key_cdm_common.h", | 21 "external_clear_key/clear_key_cdm_common.h", |
24 ] | 22 ] |
25 | 23 |
26 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 24 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
27 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 25 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
28 | 26 |
29 defines = [ "CDM_IMPLEMENTATION" ] | 27 defines = [ "CDM_IMPLEMENTATION" ] |
30 | 28 |
31 deps = [ | 29 deps = [ |
32 "//base", | 30 "//base", |
33 "//build/config/sanitizers:deps", | 31 "//build/config/sanitizers:deps", |
34 "//media", # For media::AudioTimestampHelper | 32 "//media", # For media::AudioTimestampHelper |
35 "//media:shared_memory_support", # For media::AudioBus. | 33 "//media:shared_memory_support", # For media::AudioBus. |
36 "//url", | 34 "//url", |
37 ] | 35 ] |
38 | 36 |
39 if (use_ffmpeg) { | 37 if (media_use_ffmpeg) { |
40 sources += [ | 38 sources += [ |
41 "external_clear_key/ffmpeg_cdm_audio_decoder.cc", | 39 "external_clear_key/ffmpeg_cdm_audio_decoder.cc", |
42 "external_clear_key/ffmpeg_cdm_audio_decoder.h", | 40 "external_clear_key/ffmpeg_cdm_audio_decoder.h", |
43 "external_clear_key/ffmpeg_cdm_video_decoder.cc", | 41 "external_clear_key/ffmpeg_cdm_video_decoder.cc", |
44 "external_clear_key/ffmpeg_cdm_video_decoder.h", | 42 "external_clear_key/ffmpeg_cdm_video_decoder.h", |
45 ] | 43 ] |
46 defines += [ "CLEAR_KEY_CDM_USE_FFMPEG_DECODER" ] | 44 defines += [ "CLEAR_KEY_CDM_USE_FFMPEG_DECODER" ] |
47 deps += [ "//third_party/ffmpeg" ] | 45 deps += [ "//third_party/ffmpeg" ] |
48 } | 46 } |
49 | 47 |
(...skipping 12 matching lines...) Expand all Loading... |
62 | 60 |
63 cdm_adapter("clearkeycdmadapter") { | 61 cdm_adapter("clearkeycdmadapter") { |
64 # Check whether the plugin's origin URL is valid. | 62 # Check whether the plugin's origin URL is valid. |
65 defines = [ "CHECK_DOCUMENT_URL" ] | 63 defines = [ "CHECK_DOCUMENT_URL" ] |
66 deps = [ | 64 deps = [ |
67 ":clearkeycdm", | 65 ":clearkeycdm", |
68 ":clearkeycdmadapter_resources", | 66 ":clearkeycdmadapter_resources", |
69 "//ppapi/cpp", | 67 "//ppapi/cpp", |
70 ] | 68 ] |
71 } | 69 } |
OLD | NEW |