Chromium Code Reviews| 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") { | |
|
xhwang
2017/01/28 05:21:53
Please add a comment about what this template is d
jrummell
2017/01/31 22:29:18
Done.
| |
| 11 action(target_name) { | |
| 12 forward_variables_from(invoker, | |
| 13 [ | |
| 14 "file", | |
| 15 "deps", | |
|
xhwang
2017/01/28 05:21:53
Is "deps" needed? Seems not used in this template.
jrummell
2017/01/31 22:29:18
We need the generated action to have a deps so it
| |
| 16 ]) | |
| 17 script = "//third_party/widevine/scripts/signature_generator.py" | |
| 18 sources = [ | |
| 19 "$file", | |
| 20 ] | |
| 21 outputs = [ | |
| 22 "$file.sig", | |
| 23 ] | |
| 24 args = [ | |
| 25 "--input_file", | |
| 26 rebase_path("$file", root_build_dir), | |
| 27 "--output_file", | |
| 28 rebase_path("$file.sig", root_build_dir), | |
| 29 ] | |
| 30 } | |
| 31 } | |
| OLD | NEW |