Move ENABLE_PEPPER_CDMS to a buildflag header.
Removes the global build flag and #define and converts to a buildflag header in
ppapi/features.
A new target "//third_party/widevine/cdm:headers" was added since
widevine_cdm_version.h was unreferenced in the build. Given that this file now
requires //ppapi/features we really need "gn check" to work on it. I made the
existing users of ":version_h" reference this new target which encompasses the
public headers of the widevine CDM.
[email protected] (original reviewer)
[email protected] (render_messages.h owners)
[email protected] (widevine owners)
Reland of http://crrev.com/2411433002 with official build fix.
Review-Url: https://codereview.chromium.org/2409423002
Cr-Commit-Position: refs/heads/master@{#424687}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index 813b1cc..55f55b7 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -10,6 +10,7 @@
import("//chrome/common/features.gni")
import("//components/os_crypt/features.gni")
import("//media/media_options.gni")
+import("//ppapi/features/features.gni")
import("//third_party/protobuf/proto_library.gni")
# //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
@@ -1444,7 +1445,7 @@
"//third_party/re2",
"//third_party/smhasher:cityhash",
"//third_party/webrtc/modules/desktop_capture",
- "//third_party/widevine/cdm:version_h",
+ "//third_party/widevine/cdm:headers",
"//third_party/zlib",
"//third_party/zlib:compression_utils",
"//third_party/zlib:minizip",
@@ -1920,6 +1921,7 @@
]
deps += [
"//components/pdf/browser",
+ "//ppapi/features",
"//ppapi/proxy:ipc",
"//third_party/adobe/flash:flapper_version_h",
]