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 |
9 # Android doesn't use ffmpeg. | 9 # Android doesn't use ffmpeg. |
10 use_ffmpeg = !is_android | 10 use_ffmpeg = !is_android |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 ] | 44 ] |
45 defines += [ "CLEAR_KEY_CDM_USE_FFMPEG_DECODER" ] | 45 defines += [ "CLEAR_KEY_CDM_USE_FFMPEG_DECODER" ] |
46 deps += [ "//third_party/ffmpeg" ] | 46 deps += [ "//third_party/ffmpeg" ] |
47 } | 47 } |
48 | 48 |
49 # TODO(GYP) on Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | 49 # TODO(GYP) on Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
50 } | 50 } |
51 | 51 |
52 process_version("clearkeycdmadapter_resources") { | 52 process_version("clearkeycdmadapter_resources") { |
53 visibility = [ ":*" ] | 53 visibility = [ ":*" ] |
| 54 template_file = chrome_version_rc_template |
54 sources = [ | 55 sources = [ |
55 "//media/clearkeycdmadapter.ver", | 56 "//media/clearkeycdmadapter.ver", |
56 "external_clear_key/BRANDING", | 57 "external_clear_key/BRANDING", |
57 ] | 58 ] |
58 output = "$target_gen_dir/clearkeycdmadapter_version.rc" | 59 output = "$target_gen_dir/clearkeycdmadapter_version.rc" |
59 } | 60 } |
60 | 61 |
61 cdm_adapter("clearkeycdmadapter") { | 62 cdm_adapter("clearkeycdmadapter") { |
62 # Check whether the plugin's origin URL is valid. | 63 # Check whether the plugin's origin URL is valid. |
63 defines = [ "CHECK_DOCUMENT_URL" ] | 64 defines = [ "CHECK_DOCUMENT_URL" ] |
64 deps = [ | 65 deps = [ |
65 ":clearkeycdm", | 66 ":clearkeycdm", |
66 ":clearkeycdmadapter_resources", | 67 ":clearkeycdmadapter_resources", |
67 "//ppapi/cpp", | 68 "//ppapi/cpp", |
68 ] | 69 ] |
69 } | 70 } |
OLD | NEW |