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/ppapi_cdm_adapter.gni") | 7 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni") |
8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
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 output_dir = "$root_out_dir/ClearKeyCdm" | |
15 sources = [ | 14 sources = [ |
16 "cdm_file_io_test.cc", | 15 "cdm_file_io_test.cc", |
17 "cdm_file_io_test.h", | 16 "cdm_file_io_test.h", |
18 "external_clear_key/cdm_video_decoder.cc", | 17 "external_clear_key/cdm_video_decoder.cc", |
19 "external_clear_key/cdm_video_decoder.h", | 18 "external_clear_key/cdm_video_decoder.h", |
20 "external_clear_key/clear_key_cdm.cc", | 19 "external_clear_key/clear_key_cdm.cc", |
21 "external_clear_key/clear_key_cdm.h", | 20 "external_clear_key/clear_key_cdm.h", |
22 "external_clear_key/clear_key_cdm_common.h", | 21 "external_clear_key/clear_key_cdm_common.h", |
23 ] | 22 ] |
24 | 23 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 visibility = [ ":*" ] | 55 visibility = [ ":*" ] |
57 template_file = chrome_version_rc_template | 56 template_file = chrome_version_rc_template |
58 sources = [ | 57 sources = [ |
59 "//media/clearkeycdmadapter.ver", | 58 "//media/clearkeycdmadapter.ver", |
60 "external_clear_key/BRANDING", | 59 "external_clear_key/BRANDING", |
61 ] | 60 ] |
62 output = "$target_gen_dir/clearkeycdmadapter_version.rc" | 61 output = "$target_gen_dir/clearkeycdmadapter_version.rc" |
63 } | 62 } |
64 | 63 |
65 ppapi_cdm_adapter("clearkeycdmadapter") { | 64 ppapi_cdm_adapter("clearkeycdmadapter") { |
66 output_dir = "$root_out_dir/ClearKeyCdm" | |
67 | |
68 # Check whether the plugin's origin URL is valid. | 65 # Check whether the plugin's origin URL is valid. |
69 defines = [ "CHECK_DOCUMENT_URL" ] | 66 defines = [ "CHECK_DOCUMENT_URL" ] |
70 deps = [ | 67 deps = [ |
71 ":clearkeycdm", | 68 ":clearkeycdm", |
72 ":clearkeycdmadapter_resources", | 69 ":clearkeycdmadapter_resources", |
73 "//base", # Required for the allocator implementation. | 70 "//base", # Required for the allocator implementation. |
74 "//media:shared_memory_support", | 71 "//media:shared_memory_support", |
75 "//ui/gfx/geometry", | 72 "//ui/gfx/geometry", |
76 ] | 73 ] |
77 } | 74 } |
OLD | NEW |