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

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

Issue 2647393004: Add Widevine signature files into Mac build (Closed)
Patch Set: changes (plus rebase) Created 3 years, 10 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
« chrome/BUILD.gn ('K') | « 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..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),
+ ]
+ }
+}
« chrome/BUILD.gn ('K') | « third_party/widevine/cdm/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698