summaryrefslogtreecommitdiff
path: root/chromium/components/cdm/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/cdm/renderer')
-rw-r--r--chromium/components/cdm/renderer/BUILD.gn26
-rw-r--r--chromium/components/cdm/renderer/DEPS1
-rw-r--r--chromium/components/cdm/renderer/android_key_systems.cc3
-rw-r--r--chromium/components/cdm/renderer/widevine_key_system_properties.cc9
4 files changed, 22 insertions, 17 deletions
diff --git a/chromium/components/cdm/renderer/BUILD.gn b/chromium/components/cdm/renderer/BUILD.gn
index cbf84711840..c8e6160ff68 100644
--- a/chromium/components/cdm/renderer/BUILD.gn
+++ b/chromium/components/cdm/renderer/BUILD.gn
@@ -3,13 +3,20 @@
# found in the LICENSE file.
import("//build/config/jumbo.gni")
+import("//third_party/widevine/cdm/widevine.gni")
jumbo_static_library("renderer") {
sources = [
"external_clear_key_key_system_properties.cc",
"external_clear_key_key_system_properties.h",
- "widevine_key_system_properties.cc",
- "widevine_key_system_properties.h",
+ ]
+ deps = [
+ "//base",
+ "//components/cdm/common",
+ "//content/public/renderer",
+ "//media",
+ "//media:media_buildflags",
+ "//third_party/widevine/cdm:buildflags",
]
if (is_android) {
@@ -19,12 +26,11 @@ jumbo_static_library("renderer") {
]
}
- deps = [
- "//base",
- "//components/cdm/common",
- "//content/public/renderer",
- "//media",
- "//media:media_buildflags",
- "//third_party/widevine/cdm:headers",
- ]
+ if (enable_widevine) {
+ sources += [
+ "widevine_key_system_properties.cc",
+ "widevine_key_system_properties.h",
+ ]
+ deps += [ "//third_party/widevine/cdm:headers" ]
+ }
}
diff --git a/chromium/components/cdm/renderer/DEPS b/chromium/components/cdm/renderer/DEPS
index ac8ac8d99f3..65b9b373547 100644
--- a/chromium/components/cdm/renderer/DEPS
+++ b/chromium/components/cdm/renderer/DEPS
@@ -1,4 +1,5 @@
include_rules = [
"+content/public/renderer",
+ "+third_party/widevine/cdm/buildflags.h",
"+third_party/widevine/cdm/widevine_cdm_common.h",
]
diff --git a/chromium/components/cdm/renderer/android_key_systems.cc b/chromium/components/cdm/renderer/android_key_systems.cc
index 3afe736b59b..280be2879b3 100644
--- a/chromium/components/cdm/renderer/android_key_systems.cc
+++ b/chromium/components/cdm/renderer/android_key_systems.cc
@@ -14,8 +14,7 @@
#include "media/base/eme_constants.h"
#include "media/base/media_switches.h"
#include "media/media_buildflags.h"
-
-#include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR.
+#include "third_party/widevine/cdm/widevine_cdm_common.h"
using media::EmeConfigRule;
using media::EmeFeatureSupport;
diff --git a/chromium/components/cdm/renderer/widevine_key_system_properties.cc b/chromium/components/cdm/renderer/widevine_key_system_properties.cc
index 0f58b1fa762..89ea042e215 100644
--- a/chromium/components/cdm/renderer/widevine_key_system_properties.cc
+++ b/chromium/components/cdm/renderer/widevine_key_system_properties.cc
@@ -4,11 +4,12 @@
#include "components/cdm/renderer/widevine_key_system_properties.h"
+#include "third_party/widevine/cdm/buildflags.h"
#include "third_party/widevine/cdm/widevine_cdm_common.h"
-#include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR.
-
-#if defined(WIDEVINE_CDM_AVAILABLE)
+#if !BUILDFLAG(ENABLE_WIDEVINE)
+#error This file should only be built when Widevine is enabled.
+#endif
using media::EmeConfigRule;
using media::EmeFeatureSupport;
@@ -185,5 +186,3 @@ EmeFeatureSupport WidevineKeySystemProperties::GetDistinctiveIdentifierSupport()
}
} // namespace cdm
-
-#endif // WIDEVINE_CDM_AVAILABLE