mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| diff --git chrome/common/chrome_content_client.cc chrome/common/chrome_content_client.cc
 | |
| index f8a16d124dec..40e3c9439ed8 100644
 | |
| --- chrome/common/chrome_content_client.cc
 | |
| +++ chrome/common/chrome_content_client.cc
 | |
| @@ -94,7 +94,8 @@
 | |
|  
 | |
|  #if BUILDFLAG(ENABLE_LIBRARY_CDMS)
 | |
|  #include "media/cdm/cdm_paths.h"  // nogncheck
 | |
| -#if defined(WIDEVINE_CDM_AVAILABLE) && !defined(WIDEVINE_CDM_IS_COMPONENT)
 | |
| +#if defined(WIDEVINE_CDM_AVAILABLE) && !defined(WIDEVINE_CDM_IS_COMPONENT) && \
 | |
| +    defined(WIDEVINE_CDM_VERSION_STRING)
 | |
|  #define WIDEVINE_CDM_AVAILABLE_NOT_COMPONENT
 | |
|  #endif
 | |
|  #endif  // BUILDFLAG(ENABLE_LIBRARY_CDMS)
 | |
| diff --git third_party/widevine/cdm/BUILD.gn third_party/widevine/cdm/BUILD.gn
 | |
| index 55b471ea93f8..6dac0552d66f 100644
 | |
| --- third_party/widevine/cdm/BUILD.gn
 | |
| +++ third_party/widevine/cdm/BUILD.gn
 | |
| @@ -4,6 +4,7 @@
 | |
|  
 | |
|  import("//build/config/chrome_build.gni")
 | |
|  import("//build/config/features.gni")
 | |
| +import("//cef/libcef/features/features.gni")
 | |
|  import("//media/cdm/library_cdm/cdm_paths.gni")
 | |
|  import("//media/media_options.gni")
 | |
|  import("//third_party/widevine/cdm/widevine.gni")
 | |
| @@ -11,7 +12,7 @@ import("//third_party/widevine/cdm/widevine.gni")
 | |
|  # Internal Cast builds set enable_widevine=true to bring in Widevine support.
 | |
|  # TODO(xhwang): Support component updated CDM on other platforms and remove this
 | |
|  # assert.
 | |
| -assert(!enable_widevine || is_win || is_mac || is_chromecast,
 | |
| +assert(!enable_widevine || is_win || is_mac || is_chromecast || enable_cef,
 | |
|         "Component updated CDM only supported on Windows and Mac for now.")
 | |
|  
 | |
|  widevine_arch = current_cpu
 |