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

Unified Diff: chrome/BUILD.gn

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
« no previous file with comments | « no previous file | third_party/widevine/cdm/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/BUILD.gn
diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
index 6f50b978617dccf1648f8ee6c2f002f1c900a35c..3a95db30cb66f4605e0017b0189a123bf3b63e6c 100644
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -649,6 +649,13 @@ if (is_win) {
# non-component builds, will ensure the export symbol table is correct.
":verify_chrome_framework_order",
]
+
+ # Only official builds that include Widevine need the widevine
+ # signature file.
+ if (is_chrome_branded && enable_pepper_cdms) {
+ sources += [ "$root_out_dir/$chrome_framework_name.sig" ]
+ public_deps += [ ":sign_chrome_framework_for_widevine" ]
+ }
}
action("clean_up_old_versions") {
@@ -862,12 +869,25 @@ if (is_win) {
":widevine_cdm_library_copy",
"//third_party/widevine/cdm:widevinecdmadapter",
]
+
+ # Signatures are only generated for official chrome.
+ if (is_chrome_branded) {
+ sources += [
+ "$root_out_dir/$widevine_cdm_path/widevinecdmadapter.plugin.sig",
+ "$root_out_dir/libwidevinecdm.dylib.sig",
+ ]
+ public_deps += [ ":sign_cdm_adapter_for_widevine" ]
+ }
}
copy("widevine_cdm_library_copy") {
sources = [
"$root_out_dir/$widevine_cdm_path/libwidevinecdm.dylib",
]
+ if (is_chrome_branded) {
+ sources +=
+ [ "$root_out_dir/$widevine_cdm_path/libwidevinecdm.dylib.sig" ]
+ }
outputs = [
"$root_out_dir/{{source_file_part}}",
]
@@ -887,6 +907,25 @@ if (is_win) {
"//third_party/widevine/cdm:widevine_cdm_manifest",
]
}
+
+ widevine_sign_file("sign_cdm_adapter_for_widevine") {
+ file = "$root_out_dir/$widevine_cdm_path/widevinecdmadapter.plugin"
+ deps = [
+ "//third_party/widevine/cdm:widevinecdmadapter",
+ ]
+ }
+
+ widevine_sign_file("sign_chrome_framework_for_widevine") {
+ file = "$root_out_dir/$chrome_framework_name.framework/"
+ if (defined(chrome_framework_version)) {
Robert Sesek 2017/02/23 18:09:32 Can the script that produces the signature file go
jrummell 2017/02/23 18:39:03 I tried it, and get the error: ERROR Input to targ
Robert Sesek 2017/02/23 18:54:49 Ah, that makes sense. There's an issue with ninja
+ file += "Versions/$chrome_framework_version/"
+ }
+ file += "$chrome_framework_name"
+ signature_file = "$root_out_dir/$chrome_framework_name.sig"
+ deps = [
+ ":chrome_framework",
+ ]
+ }
}
group("widevine_cdm_library") {
« no previous file with comments | « no previous file | third_party/widevine/cdm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698