bug 1363358 - add a MOZ_PHOTON_THEME build option. r=chmanchester
authorTed Mielczarek <ted@mielczarek.org>
Tue, 09 May 2017 09:26:16 -0400
changeset 357605 d1e46aeb0768c7908d3bd7cd183de4c1a95fdd4a
parent 357604 17670f6aeeae11dde7258edecf1373829fca9979
child 357606 e916525919a900e91ba6b165768b89eefb74ea07
push id31796
push userkwierso@gmail.com
push dateWed, 10 May 2017 23:48:19 +0000
treeherdermozilla-central@d8762cb96742 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschmanchester
bugs1363358
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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=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',