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

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

Issue 2411433002: Move ENABLE_PEPPER_CDMS to a buildflag header. (Closed)
Patch Set: fix Created 4 years, 2 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
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..1f93ac0a0b34c0a5692552a86e1c68a2027a574f 100644
--- a/third_party/widevine/cdm/widevine.gni
+++ b/third_party/widevine/cdm/widevine.gni
@@ -2,7 +2,16 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/features.gni")
+
declare_args() {
# Allow widevinecdmadapter to be built in Chromium.
enable_widevine = false
}
+
+# Enables the use of CDMs in pepper plugins.
+#
+# This is available as a buildflag for C++ preprocessor, see
+# //third_party/widevine/cdm:cdm_features.
+enable_pepper_cdms =
+ enable_plugins && (is_linux || is_mac || is_win) && !is_chromecast
jrummell 2016/10/10 22:45:57 Why did you put the flag in third_party/widevine/c
brettw 2016/10/10 23:43:42 Good idea, done.

Powered by Google App Engine
This is Rietveld 408576698