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! | |
7 import("//media/cdm/ppapi/cdm_adapter.gni") | |
6 | 8 |
7 # Android doesn't use ffmpeg. | 9 # Android doesn't use ffmpeg. |
8 use_ffmpeg = !is_android | 10 use_ffmpeg = !is_android |
9 | 11 |
10 # The GYP version supports build flags "use_fake_video_decoder" and | 12 # 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 | 13 # "use_vpx". These should be added here if necessary but its not clear if |
12 # they are required any more. | 14 # they are required any more. |
13 shared_library("clearkeycdm") { | 15 shared_library("clearkeycdm") { |
14 sources = [ | 16 sources = [ |
15 "cdm_file_io_test.cc", | 17 "cdm_file_io_test.cc", |
(...skipping 24 matching lines...) Expand all Loading... | |
40 "external_clear_key/ffmpeg_cdm_video_decoder.cc", | 42 "external_clear_key/ffmpeg_cdm_video_decoder.cc", |
41 "external_clear_key/ffmpeg_cdm_video_decoder.h", | 43 "external_clear_key/ffmpeg_cdm_video_decoder.h", |
42 ] | 44 ] |
43 defines += [ "CLEAR_KEY_CDM_USE_FFMPEG_DECODER" ] | 45 defines += [ "CLEAR_KEY_CDM_USE_FFMPEG_DECODER" ] |
44 deps += [ "//third_party/ffmpeg" ] | 46 deps += [ "//third_party/ffmpeg" ] |
45 } | 47 } |
46 | 48 |
47 # TODO(GYP) on Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | 49 # TODO(GYP) on Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
48 } | 50 } |
49 | 51 |
50 # TODO(GYP): clearkeycdmadapter_resources | 52 clearkeycdmadapter_rc_file = "$target_gen_dir/clearkeycdmadapter_version.rc" |
51 | 53 |
52 group("clearkeycdmadapter") { | 54 process_version("clearkeycdmadapter_resources") { |
55 sources = [ | |
56 "external_clear_key/BRANDING", | |
57 "//media/clearkeycdmadapter.ver", | |
58 ] | |
59 output = clearkeycdmadapter_rc_file | |
60 } | |
61 | |
62 cdm_adapter("clearkeycdmadapter") { | |
63 sources = [ | |
64 clearkeycdmadapter_rc_file | |
65 ] | |
Dirk Pranke
2015/02/25 00:23:20
Nit: formatted correctly?
| |
66 | |
67 # Check whether the plugin's origin URL is valid. | |
68 defines = [ "CHECK_DOCUMENT_URL" ] | |
53 deps = [ | 69 deps = [ |
54 #":cdmadapter", TODO(GYP) | |
55 ":clearkeycdm", | 70 ":clearkeycdm", |
56 | 71 ":clearkeycdmadapter_resources", |
57 #":clearkeycdmadapter_resources", TODO(GYP) | |
58 "//ppapi/cpp", | 72 "//ppapi/cpp", |
59 ] | 73 ] |
74 | |
75 if (is_posix && !is_mac && enable_pepper_cdms) { | |
76 # Because clearkeycdm has type 'loadable_module', we must explicitly | |
77 # specify this dependency. | |
78 ldflags = [ | |
79 rebase_path("$root_out_dir/libclearkeycdm.so", root_build_dir) | |
80 ] | |
81 libs = [ "rt" ] | |
82 } | |
60 } | 83 } |
OLD | NEW |