зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1492716 - Part 1: Stop using default=True for --enable-* or --with-* configure options. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D8833
This commit is contained in:
Родитель
ff7bbb9936
Коммит
a5e176836f
|
@ -32,10 +32,9 @@ add_old_configure_assignment('MOZ_PGO', depends('MOZ_PGO')(lambda x: bool(x)))
|
|||
# Code optimization
|
||||
# ==============================================================
|
||||
|
||||
js_option('--enable-optimize',
|
||||
js_option('--disable-optimize',
|
||||
nargs='?',
|
||||
default=True,
|
||||
help='Enable optimizations via compiler flags')
|
||||
help='Disable optimizations via compiler flags')
|
||||
|
||||
|
||||
@depends('--enable-optimize')
|
||||
|
@ -1146,10 +1145,9 @@ option(env='MOZ_DEBUG_FLAGS',
|
|||
imply_option('--enable-debug-symbols',
|
||||
depends_if('--enable-debug')(lambda v: v))
|
||||
|
||||
js_option('--enable-debug-symbols',
|
||||
js_option('--disable-debug-symbols',
|
||||
nargs='?',
|
||||
default=True,
|
||||
help='Enable debug symbols using the given compiler flags')
|
||||
help='Disable debug symbols using the given compiler flags')
|
||||
|
||||
set_config('MOZ_DEBUG_SYMBOLS',
|
||||
depends_if('--enable-debug-symbols')(lambda _: True))
|
||||
|
|
|
@ -8,9 +8,8 @@
|
|||
# Gradle binary is specified use the in tree Gradle wrapper. The wrapper
|
||||
# downloads and installs Gradle, which is good for local developers but not
|
||||
# good in automation.
|
||||
option('--with-gradle', nargs='?',
|
||||
default=True,
|
||||
help='Enable building mobile/android with Gradle '
|
||||
option('--without-gradle', nargs='?',
|
||||
help='Disable building mobile/android with Gradle '
|
||||
'(argument: location of binary or wrapper (gradle/gradlew))')
|
||||
|
||||
@depends('--with-gradle')
|
||||
|
|
|
@ -8,9 +8,8 @@ project_flag('MOZ_ANDROID_EXCLUDE_FONTS',
|
|||
help='Whether to exclude font files from the build',
|
||||
default=True)
|
||||
|
||||
option('--with-google-play-services',
|
||||
help='Enable features that depend on non-free Google Play Services',
|
||||
default=True)
|
||||
option('--without-google-play-services',
|
||||
help='Disable features that depend on non-free Google Play Services')
|
||||
|
||||
@depends('--with-google-play-services')
|
||||
def google_play_services(value):
|
||||
|
|
Загрузка…
Ссылка в новой задаче