Bug 1549886 - Move MOZ_TELEMETRY_REPORTING to python configure. r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D30335

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Hommey 2019-05-08 14:33:54 +00:00
Родитель 679c9bfc7e
Коммит fa3631a2e3
4 изменённых файлов: 31 добавлений и 9 удалений

Просмотреть файл

@ -1229,6 +1229,14 @@ set_config('MOZ_APP_VERSION', milestone.app_version)
set_config('MOZ_APP_VERSION_DISPLAY', milestone.app_version_display) set_config('MOZ_APP_VERSION_DISPLAY', milestone.app_version_display)
add_old_configure_assignment('MOZ_APP_VERSION', milestone.app_version) add_old_configure_assignment('MOZ_APP_VERSION', milestone.app_version)
# Dummy function for availability in toolkit/moz.configure. Overridden in
# mobile/android/moz.configure.
@depends(milestone.is_nightly)
def fennec_nightly(is_nightly):
return is_nightly
# The app update channel is 'default' when not supplied. The value is used in # The app update channel is 'default' when not supplied. The value is used in
# the application's confvars.sh (and is made available to a project specific # the application's confvars.sh (and is made available to a project specific
# moz.configure). # moz.configure).

Просмотреть файл

@ -116,6 +116,12 @@ option(env='FENNEC_NIGHTLY',
set_config('FENNEC_NIGHTLY', depends_if('FENNEC_NIGHTLY')(lambda _: True)) set_config('FENNEC_NIGHTLY', depends_if('FENNEC_NIGHTLY')(lambda _: True))
set_define('FENNEC_NIGHTLY', depends_if('FENNEC_NIGHTLY')(lambda _: True)) set_define('FENNEC_NIGHTLY', depends_if('FENNEC_NIGHTLY')(lambda _: True))
@depends('FENNEC_NIGHTLY')
def fennec_nightly(nightly):
return bool(nightly)
imply_option('MOZ_SERVICES_HEALTHREPORT', True) imply_option('MOZ_SERVICES_HEALTHREPORT', True)
imply_option('MOZ_ANDROID_HISTORY', True) imply_option('MOZ_ANDROID_HISTORY', True)
imply_option('--enable-small-chunk-size', True) imply_option('--enable-small-chunk-size', True)

Просмотреть файл

@ -3118,15 +3118,6 @@ AC_SUBST(MOZ_SOURCE_REPO)
AC_SUBST(MOZ_SOURCE_CHANGESET) AC_SUBST(MOZ_SOURCE_CHANGESET)
AC_SUBST(MOZ_INCLUDE_SOURCE_INFO) AC_SUBST(MOZ_INCLUDE_SOURCE_INFO)
if test "$MOZ_TELEMETRY_REPORTING"; then
AC_DEFINE(MOZ_TELEMETRY_REPORTING)
# Enable Telemetry by default for nightly and aurora channels
if test -z "$RELEASE_OR_BETA" || test -n "$FENNEC_NIGHTLY"; then
AC_DEFINE(MOZ_TELEMETRY_ON_BY_DEFAULT)
fi
fi
dnl If we have any service that uploads data (and requires data submission dnl If we have any service that uploads data (and requires data submission
dnl policy alert), set MOZ_DATA_REPORTING. dnl policy alert), set MOZ_DATA_REPORTING.
dnl We need SUBST for build system and DEFINE for xul preprocessor. dnl We need SUBST for build system and DEFINE for xul preprocessor.

Просмотреть файл

@ -640,6 +640,23 @@ def check_places_and_android_history(places, android_history):
if places and android_history: if places and android_history:
die('Cannot use MOZ_ANDROID_HISTORY alongside MOZ_PLACES.') die('Cannot use MOZ_ANDROID_HISTORY alongside MOZ_PLACES.')
option(env='MOZ_TELEMETRY_REPORTING',
help='Enable telemetry reporting')
set_define('MOZ_TELEMETRY_REPORTING', True, when='MOZ_TELEMETRY_REPORTING')
add_old_configure_assignment(
'MOZ_TELEMETRY_REPORTING', True, when='MOZ_TELEMETRY_REPORTING')
@depends('MOZ_TELEMETRY_REPORTING', milestone.is_nightly, fennec_nightly)
def telemetry_on_by_default(reporting, is_nightly, fennec_nightly):
return reporting and (is_nightly or fennec_nightly)
set_define('MOZ_TELEMETRY_ON_BY_DEFAULT', True, when=telemetry_on_by_default)
# gpsd support # gpsd support
# ============================================================== # ==============================================================
option('--enable-gpsd', env='MOZ_GPSD', option('--enable-gpsd', env='MOZ_GPSD',