OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 declare_args() { | 5 declare_args() { |
6 # Allow widevinecdmadapter to be built in Chromium. | 6 # Allow widevinecdmadapter to be built in Chromium. |
7 enable_widevine = false | 7 enable_widevine = false |
8 } | 8 } |
| 9 |
| 10 template("widevine_sign_file") { |
| 11 # For official builds, generate a signature file in the same directory |
| 12 # as |file| which will be used by Widevine. |
| 13 action(target_name) { |
| 14 forward_variables_from(invoker, |
| 15 [ |
| 16 "file", |
| 17 "deps", |
| 18 ]) |
| 19 script = "//third_party/widevine/scripts/signature_generator.py" |
| 20 sources = [ |
| 21 "$file", |
| 22 ] |
| 23 outputs = [ |
| 24 "$file.sig", |
| 25 ] |
| 26 args = [ |
| 27 "--input_file", |
| 28 rebase_path("$file", root_build_dir), |
| 29 "--output_file", |
| 30 rebase_path("$file.sig", root_build_dir), |
| 31 ] |
| 32 } |
| 33 } |
OLD | NEW |