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 | 6 |
7 # Android doesn't use ffmpeg. | 7 # Android doesn't use ffmpeg. |
8 use_ffmpeg = !is_android | 8 use_ffmpeg = !is_android |
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 |
11 # "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 |
12 # they are required any more. | 12 # they are required any more. |
13 shared_library("clearkeycdm") { | 13 shared_library("clearkeycdm") { |
14 sources = [ | 14 sources = [ |
15 "cdm_file_io_test.cc", | 15 "cdm_file_io_test.cc", |
16 "cdm_file_io_test.h", | 16 "cdm_file_io_test.h", |
17 "external_clear_key/cdm_video_decoder.cc", | 17 "external_clear_key/cdm_video_decoder.cc", |
18 "external_clear_key/cdm_video_decoder.h", | 18 "external_clear_key/cdm_video_decoder.h", |
19 "external_clear_key/clear_key_cdm.cc", | 19 "external_clear_key/clear_key_cdm.cc", |
20 "external_clear_key/clear_key_cdm.h", | 20 "external_clear_key/clear_key_cdm.h", |
21 "external_clear_key/clear_key_cdm_common.h", | 21 "external_clear_key/clear_key_cdm_common.h", |
22 ] | 22 ] |
23 | 23 |
24 defines = [ "CDM_IMPLEMENTATION" ] | 24 defines = [ "CDM_IMPLEMENTATION" ] |
25 | 25 |
26 deps = [ | 26 deps = [ |
27 "//base", | 27 "//base", |
| 28 "//media", # For media::AudioTimestampHelper |
28 "//media:shared_memory_support", # For media::AudioBus. | 29 "//media:shared_memory_support", # For media::AudioBus. |
29 "//url", | 30 "//url", |
30 ] | 31 ] |
31 | 32 |
32 if (use_ffmpeg) { | 33 if (use_ffmpeg) { |
33 sources += [ | 34 sources += [ |
34 "external_clear_key/ffmpeg_cdm_audio_decoder.cc", | 35 "external_clear_key/ffmpeg_cdm_audio_decoder.cc", |
35 "external_clear_key/ffmpeg_cdm_audio_decoder.h", | 36 "external_clear_key/ffmpeg_cdm_audio_decoder.h", |
36 "external_clear_key/ffmpeg_cdm_video_decoder.cc", | 37 "external_clear_key/ffmpeg_cdm_video_decoder.cc", |
37 "external_clear_key/ffmpeg_cdm_video_decoder.h", | 38 "external_clear_key/ffmpeg_cdm_video_decoder.h", |
(...skipping 14 matching lines...) Expand all Loading... |
52 | 53 |
53 group("clearkeycdmadapter") { | 54 group("clearkeycdmadapter") { |
54 deps = [ | 55 deps = [ |
55 #":cdmadapter", TODO(GYP) | 56 #":cdmadapter", TODO(GYP) |
56 ":clearkeycdm", | 57 ":clearkeycdm", |
57 | 58 |
58 #":clearkeycdmadapter_resources", TODO(GYP) | 59 #":clearkeycdmadapter_resources", TODO(GYP) |
59 "//ppapi:ppapi_cpp", | 60 "//ppapi:ppapi_cpp", |
60 ] | 61 ] |
61 } | 62 } |
OLD | NEW |