| 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..a0b31648064a0ea630af25edd96ecca47e871646 100644
|
| --- a/third_party/widevine/cdm/widevine.gni
|
| +++ b/third_party/widevine/cdm/widevine.gni
|
| @@ -6,3 +6,35 @@ declare_args() {
|
| # Allow widevinecdmadapter to be built in Chromium.
|
| enable_widevine = false
|
| }
|
| +
|
| +template("widevine_sign_file") {
|
| + # For official builds, generate a signature file for |file| which will
|
| + # be used by Widevine. If |signature_file| is not specified, the signature
|
| + # file will be in the same directory as |file|.
|
| + action(target_name) {
|
| + forward_variables_from(invoker,
|
| + [
|
| + "file",
|
| + "signature_file",
|
| + "deps",
|
| + ])
|
| + assert(defined(file), "File to be signed must be specified.")
|
| + if (!defined(signature_file)) {
|
| + signature_file = "$file.sig"
|
| + }
|
| +
|
| + script = "//third_party/widevine/scripts/signature_generator.py"
|
| + sources = [
|
| + "$file",
|
| + ]
|
| + outputs = [
|
| + "$signature_file",
|
| + ]
|
| + args = [
|
| + "--input_file",
|
| + rebase_path("$file", root_build_dir),
|
| + "--output_file",
|
| + rebase_path("$signature_file", root_build_dir),
|
| + ]
|
| + }
|
| +}
|
|
|