bug 1363358 - add a MOZ_PHOTON_THEME build option. r?chmanchester draft
authorTed Mielczarek <ted@mielczarek.org>
Tue, 09 May 2017 09:26:16 -0400
changeset 574851 6428bda14b01fa59d19bc4cf970a79320356f1d2
parent 574850 b7d76ece383e3a8688ece1af012d05cc3217296d
child 627711 21f192f32867b7188a69e1df4d16df9cb5fafdfc
push id57829
push userbmo:ted@mielczarek.org
push dateTue, 09 May 2017 13:26:41 +0000
reviewerschmanchester
bugs1363358
milestone55.0a1
bug 1363358 - add a MOZ_PHOTON_THEME build option. r?chmanchester MozReview-Commit-ID: 5fZqmCkAUUg
toolkit/moz.configure
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -545,16 +545,28 @@ option(env='MOZ_PHOTON_ANIMATIONS',
 @depends('MOZ_PHOTON_ANIMATIONS')
 def photon_animations(value):
     if value:
         return bool(value)
 
 set_config('MOZ_PHOTON_ANIMATIONS', photon_animations)
 set_define('MOZ_PHOTON_ANIMATIONS', photon_animations)
 
+option(env='MOZ_PHOTON_THEME',
+       help='Enable Photon theme',
+       default=delayed_getattr(milestone, 'is_nightly'))
+
+@depends('MOZ_PHOTON_THEME')
+def photon_theme(value):
+    if value:
+        return bool(value)
+
+set_config('MOZ_PHOTON_THEME', photon_theme)
+set_define('MOZ_PHOTON_THEME', photon_theme)
+
 @depends('MOZ_PLACES', 'MOZ_ANDROID_HISTORY')
 def check_places_and_android_history(places, android_history):
     if places and android_history:
         die('Cannot use MOZ_ANDROID_HISTORY alongside MOZ_PLACES.')
 
 # Permissions system
 # ==============================================================
 option(name='--disable-permissions',