bug 1363358 - add a MOZ_PHOTON_THEME build option. r=chmanchester

MozReview-Commit-ID: 5fZqmCkAUUg

--HG--
extra : rebase_source : b7aca3fca0726a66e4beb6e2bf33c4350b376c1c
This commit is contained in:
Ted Mielczarek 2017-05-09 09:26:16 -04:00
parent 8f2c658ba3
commit 9927e65761

View File

@ -550,6 +550,18 @@ def photon_animations(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: