Bug 1289634 - Enable Widevine EME by default in browser builds. r=glandium,a=lizzard
authorChris Pearce <cpearce@mozilla.com>
Fri, 29 Jul 2016 17:14:55 +1200
changeset 342275 4f3cf594c46857cae6e728c7487eb40a1be22c70
parent 342274 02110ecb55b9b91b4c6de46560cb35d4da8dec80
child 342276 546319b9e7bb810a0c20016356e1d087853028c9
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium, lizzard
bugs1289634
milestone49.0
Bug 1289634 - Enable Widevine EME by default in browser builds. r=glandium,a=lizzard MozReview-Commit-ID: F3Tcpat1uDW
toolkit/moz.configure
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -327,17 +327,26 @@ def fmp4(value, target, wmf, applemedia)
         return True
 
 set_config('MOZ_FMP4', fmp4)
 set_define('MOZ_FMP4', fmp4)
 add_old_configure_assignment('MOZ_FMP4', fmp4)
 
 # EME Support
 # ==============================================================
-option('--enable-eme', nargs='*', choices=('adobe','widevine',),
+# Widevine is enabled by default in desktop browser builds.
+@depends(build_project, '--help')
+def eme_default(build_project, help):
+    if build_project == 'browser':
+        return 'widevine'
+
+option('--enable-eme',
+       nargs='*',
+       choices=('adobe','widevine',),
+       default=eme_default,
        help='Enable support for Encrypted Media Extensions')
 
 @depends('--enable-eme', fmp4)
 def eme(value, fmp4):
     enabled = bool(value)
     if value.origin == 'default':
         enabled = enabled or fmp4
     if enabled and not fmp4: