Bug 1258618 - Use True instead of '1' for add_old_configure_assignment. r=nalexander

This commit is contained in:
Mike Hommey 2016-03-22 14:12:29 +09:00
Родитель 9b54a468a9
Коммит aec687f13d
4 изменённых файлов: 13 добавлений и 13 удалений

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

@ -626,12 +626,12 @@ def milestone(build_env):
if 'a1' in milestone:
set_config('NIGHTLY_BUILD', True)
set_define('NIGHTLY_BUILD', True)
add_old_configure_assignment('NIGHTLY_BUILD', '1')
add_old_configure_assignment('NIGHTLY_BUILD', True)
is_nightly = True
elif 'a' not in milestone:
set_config('RELEASE_BUILD', True)
set_define('RELEASE_BUILD', True)
add_old_configure_assignment('RELEASE_BUILD', '1')
add_old_configure_assignment('RELEASE_BUILD', True)
is_release = True
return namespace(version=milestone,

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

@ -22,7 +22,7 @@ option(env='JS_STANDALONE', default=building_js,
def js_standalone(value):
if value:
set_config('JS_STANDALONE', True)
add_old_configure_assignment('JS_STANDALONE', '1')
add_old_configure_assignment('JS_STANDALONE', True)
js_option('--disable-js-shell', default=building_js,
@ -59,7 +59,7 @@ def static_js(shared_js, export_js):
if not export_js:
error('Must export JS symbols when building a shared library.')
set_config('JS_SHARED_LIBRARY', True)
add_old_configure_assignment('JS_SHARED_LIBRARY', '1')
add_old_configure_assignment('JS_SHARED_LIBRARY', True)
else:
if export_js:
set_define('STATIC_EXPORTABLE_JS_API', True)
@ -104,7 +104,7 @@ def instruments(value, target):
if value:
set_config('MOZ_INSTRUMENTS', True)
set_define('MOZ_INSTRUMENTS', True)
add_old_configure_assignment('MOZ_INSTRUMENTS', '1')
add_old_configure_assignment('MOZ_INSTRUMENTS', True)
imply_option('--enable-profiling', reason='--enable-instruments')
@ -127,7 +127,7 @@ def profiling(value, target):
if value:
set_config('MOZ_PROFILING', True)
set_define('MOZ_PROFILING', True)
add_old_configure_assignment('MOZ_PROFILING', '1')
add_old_configure_assignment('MOZ_PROFILING', True)
if target.kernel == 'WINNT' or (target.kernel == 'Linux' and
target.os == 'GNU'):

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

@ -42,7 +42,7 @@ option('--disable-compile-environment',
def compile_environment(value):
if value:
set_config('COMPILE_ENVIRONMENT', True)
add_old_configure_assignment('COMPILE_ENVIRONMENT', '1')
add_old_configure_assignment('COMPILE_ENVIRONMENT', True)
return bool(value)
@ -163,7 +163,7 @@ def yasm_asflags(yasm, target):
set_config('YASM_ASFLAGS', asflags)
set_config('HAVE_YASM', True)
# Until the YASM variable is not necessary in old-configure.
add_old_configure_assignment('YASM', '1')
add_old_configure_assignment('YASM', True)
return asflags
# Miscellaneous programs

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

@ -56,7 +56,7 @@ def dmd(value):
if value:
set_config('MOZ_DMD', True)
set_define('MOZ_DMD', True)
add_old_configure_assignment('MOZ_DMD', '1')
add_old_configure_assignment('MOZ_DMD', True)
imply_option('--enable-profiling')
@ -161,7 +161,7 @@ def x11(value, toolkit):
set_define('MOZ_ENABLE_XREMOTE', True)
set_config('MOZ_X11', True)
set_define('MOZ_X11', True)
add_old_configure_assignment('MOZ_X11', '1')
add_old_configure_assignment('MOZ_X11', True)
return value and toolkit in x11_toolkits
@ -217,7 +217,7 @@ option(env='USE_FC_FREETYPE',
def fc_freetype(value, toolkit):
if value or (toolkit in ('gtk2', 'gtk3', 'qt') and
value.origin == 'default'):
add_old_configure_assignment('USE_FC_FREETYPE', '1')
add_old_configure_assignment('USE_FC_FREETYPE', True)
# Apple platform decoder support
@ -227,7 +227,7 @@ def applemedia(toolkit):
if toolkit in ('cocoa', 'uikit'):
set_config('MOZ_APPLEMEDIA', True)
set_define('MOZ_APPLEMEDIA', True)
add_old_configure_assignment('MOZ_APPLEMEDIA', '1')
add_old_configure_assignment('MOZ_APPLEMEDIA', True)
return True
return False
@ -285,7 +285,7 @@ def fmp4(value, target, wmf, applemedia):
if enabled:
set_config('MOZ_FMP4', True)
set_define('MOZ_FMP4', True)
add_old_configure_assignment('MOZ_FMP4', '1')
add_old_configure_assignment('MOZ_FMP4', True)
return enabled