| Index: third_party/widevine/cdm/widevine.gni
|
| diff --git a/third_party/widevine/cdm/widevine.gni b/third_party/widevine/cdm/widevine.gni
|
| index b10a92b47494fe4954df89e40b9e4e80a12fb653..3dc16cb5cf720b5f0fd583ae84385f7b056eee50 100644
|
| --- a/third_party/widevine/cdm/widevine.gni
|
| +++ b/third_party/widevine/cdm/widevine.gni
|
| @@ -6,3 +6,28 @@ declare_args() {
|
| # Allow widevinecdmadapter to be built in Chromium.
|
| enable_widevine = false
|
| }
|
| +
|
| +template("widevine_sign_file") {
|
| + # For official builds, generate a signature file in the same directory
|
| + # as |file| which will be used by Widevine.
|
| + action(target_name) {
|
| + forward_variables_from(invoker,
|
| + [
|
| + "file",
|
| + "deps",
|
| + ])
|
| + script = "//third_party/widevine/scripts/signature_generator.py"
|
| + sources = [
|
| + "$file",
|
| + ]
|
| + outputs = [
|
| + "$file.sig",
|
| + ]
|
| + args = [
|
| + "--input_file",
|
| + rebase_path("$file", root_build_dir),
|
| + "--output_file",
|
| + rebase_path("$file.sig", root_build_dir),
|
| + ]
|
| + }
|
| +}
|
|
|