summaryrefslogtreecommitdiffstats
path: root/third_party/widevine
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/widevine')
-rw-r--r--third_party/widevine/cdm/android/widevine_cdm_version.h25
-rw-r--r--third_party/widevine/cdm/widevine_cdm.gyp5
2 files changed, 30 insertions, 0 deletions
diff --git a/third_party/widevine/cdm/android/widevine_cdm_version.h b/third_party/widevine/cdm/android/widevine_cdm_version.h
new file mode 100644
index 0000000..d22411e
--- /dev/null
+++ b/third_party/widevine/cdm/android/widevine_cdm_version.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WIDEVINE_CDM_VERSION_H_
+#define WIDEVINE_CDM_VERSION_H_
+
+#include "third_party/widevine/cdm/widevine_cdm_common.h"
+
+// Indicates that the Widevine CDM is available.
+#define WIDEVINE_CDM_AVAILABLE
+
+// TODO(ddorwin): Remove when we have CDM availability detection
+// (http://crbug.com/224793).
+#define DISABLE_WIDEVINE_CDM_CANPLAYTYPE
+
+// Indicates that ISO BMFF CENC support is available in the Widevine CDM.
+// Must be enabled if any of the codecs below are enabled.
+#define WIDEVINE_CDM_CENC_SUPPORT_AVAILABLE
+// Indicates that AVC1 decoding is available for ISO BMFF CENC.
+#define WIDEVINE_CDM_AVC1_SUPPORT_AVAILABLE
+// Indicates that AAC decoding is available for ISO BMFF CENC.
+#define WIDEVINE_CDM_AAC_SUPPORT_AVAILABLE
+
+#endif // WIDEVINE_CDM_VERSION_H_
diff --git a/third_party/widevine/cdm/widevine_cdm.gyp b/third_party/widevine/cdm/widevine_cdm.gyp
index a4185e6..d9b7e7e 100644
--- a/third_party/widevine/cdm/widevine_cdm.gyp
+++ b/third_party/widevine/cdm/widevine_cdm.gyp
@@ -38,6 +38,11 @@
'binaries/win/<(target_arch)/widevinecdm.dll.lib',
],
}],
+ # TODO(xhwang): Enable this for non-Chrome build if necessary.
+ [ 'OS == "android"', {
+ 'widevine_cdm_version_h_file%':
+ 'android/widevine_cdm_version.h',
+ }],
],
}],
],