Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(698)

Unified Diff: third_party/widevine/cdm/widevine.gni

Issue 2647393004: Add Widevine signature files into Mac build (Closed)
Patch Set: template Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/widevine/cdm/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fb92dd41494fd34a4c79e0d654413a229474fc2b 100644
--- a/third_party/widevine/cdm/widevine.gni
+++ b/third_party/widevine/cdm/widevine.gni
@@ -6,3 +6,26 @@ declare_args() {
# Allow widevinecdmadapter to be built in Chromium.
enable_widevine = false
}
+
+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.
+ action(target_name) {
+ forward_variables_from(invoker,
+ [
+ "file",
+ "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
+ ])
+ 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),
+ ]
+ }
+}
« no previous file with comments | « third_party/widevine/cdm/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698