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/version.gni") # TODO layering violation! |
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", |
(...skipping 26 matching lines...) Expand all Loading... |
43 ] | 43 ] |
44 defines += [ "CLEAR_KEY_CDM_USE_FFMPEG_DECODER" ] | 44 defines += [ "CLEAR_KEY_CDM_USE_FFMPEG_DECODER" ] |
45 deps += [ "//third_party/ffmpeg" ] | 45 deps += [ "//third_party/ffmpeg" ] |
46 } | 46 } |
47 | 47 |
48 if (is_mac) { | 48 if (is_mac) { |
49 ldflags = [ "-Wl,-install_name,@loader_path/libclearkeycdm.dylib" ] | 49 ldflags = [ "-Wl,-install_name,@loader_path/libclearkeycdm.dylib" ] |
50 } | 50 } |
51 } | 51 } |
52 | 52 |
53 process_version_rc_template("clearkeycdmadapter_resources") { | 53 process_version("clearkeycdmadapter_resources") { |
54 visibility = [ ":*" ] | 54 visibility = [ ":*" ] |
| 55 template_file = chrome_version_rc_template |
55 sources = [ | 56 sources = [ |
56 "//media/clearkeycdmadapter.ver", | 57 "//media/clearkeycdmadapter.ver", |
57 "external_clear_key/BRANDING", | 58 "external_clear_key/BRANDING", |
58 ] | 59 ] |
59 output = "$target_gen_dir/clearkeycdmadapter_version.rc" | 60 output = "$target_gen_dir/clearkeycdmadapter_version.rc" |
60 } | 61 } |
61 | 62 |
62 ppapi_cdm_adapter("clearkeycdmadapter") { | 63 ppapi_cdm_adapter("clearkeycdmadapter") { |
63 output_dir = "$root_out_dir/$clearkey_cdm_path" | 64 output_dir = "$root_out_dir/$clearkey_cdm_path" |
64 | 65 |
65 # Check whether the plugin's origin URL is valid. | 66 # Check whether the plugin's origin URL is valid. |
66 defines = [ "CHECK_DOCUMENT_URL" ] | 67 defines = [ "CHECK_DOCUMENT_URL" ] |
67 deps = [ | 68 deps = [ |
68 ":clearkeycdm", | 69 ":clearkeycdm", |
69 ":clearkeycdmadapter_resources", | 70 ":clearkeycdmadapter_resources", |
70 "//base", # Required for the allocator implementation. | 71 "//base", # Required for the allocator implementation. |
71 "//media:shared_memory_support", | 72 "//media:shared_memory_support", |
72 "//ui/gfx/geometry", | 73 "//ui/gfx/geometry", |
73 ] | 74 ] |
74 } | 75 } |
OLD | NEW |