Backout changesets f5090987b7c6, 48a94777837d and a63437a74f7a (bug 1257468) for SM bustage on a CLOSED TREE

This commit is contained in:
Mike Hommey 2016-03-22 08:26:57 +09:00
parent 0f46d6549f
commit 0ea268dc18
9 changed files with 30 additions and 34 deletions

View File

@ -23,7 +23,7 @@ AC_SUBST(MOZ_SYSTEM_FFI)
])
AC_DEFUN([MOZ_SUBCONFIGURE_FFI], [
if test "$MOZ_BUILD_APP" != js -o -n "$JS_STANDALONE"; then
if test -z "$BUILDING_JS" -o -n "$JS_STANDALONE"; then
if test "$BUILD_CTYPES" -a -z "$MOZ_SYSTEM_FFI"; then
# Run the libffi 'configure' script.

View File

@ -128,7 +128,7 @@ fi
AC_DEFUN([MOZ_SUBCONFIGURE_ICU], [
if test "$MOZ_BUILD_APP" != js -o -n "$JS_STANDALONE"; then
if test -z "$BUILDING_JS" -o -n "$JS_STANDALONE"; then
if test -n "$USE_ICU" -a -z "$MOZ_SYSTEM_ICU"; then
# Set ICU compile options

View File

@ -4,7 +4,7 @@ dnl file, You can obtain one at http://mozilla.org/MPL/2.0/.
AC_DEFUN([MOZ_SUBCONFIGURE_JEMALLOC], [
if test "$MOZ_BUILD_APP" != js -o -n "$JS_STANDALONE"; then
if test -z "$BUILDING_JS" -o -n "$JS_STANDALONE"; then
# Run jemalloc configure script

View File

@ -8,11 +8,11 @@ ifelse([$1],,define(CONFIGURING_JS,yes))
dnl Possible ways this can be called:
dnl from toplevel configure:
dnl JS_STANDALONE= MOZ_BUILD_APP!=js
dnl JS_STANDALONE= BUILDING_JS=
dnl from js/src/configure invoked by toplevel configure:
dnl JS_STANDALONE= MOZ_BUILD_APP=js
dnl JS_STANDALONE= BUILDING_JS=1
dnl from standalone js/src/configure:
dnl JS_STANDALONE=1 MOZ_BUILD_APP=js
dnl JS_STANDALONE=1 BUILDING_JS=1
dnl ========================================================
dnl = Find the right NSPR to use.
@ -38,7 +38,7 @@ ifdef([CONFIGURING_JS],[
MOZ_BUILD_NSPR=)
])
if test "$MOZ_BUILD_APP" != js || test -n "$JS_STANDALONE"; then
if test -z "$BUILDING_JS" || test -n "$JS_STANDALONE"; then
_IS_OUTER_CONFIGURE=1
fi
@ -99,7 +99,7 @@ else
fi
if test -z "$nspr_opts"; then
if test "$MOZ_BUILD_APP" != js; then
if test -z "$BUILDING_JS"; then
dnl Toplevel configure defaults to using nsprpub from the source tree
MOZ_BUILD_NSPR=1
which_nspr="source-tree"
@ -124,7 +124,7 @@ fi
AC_SUBST(MOZ_BUILD_NSPR)
if test "$MOZ_BUILD_APP" = js; then
if test -n "$BUILDING_JS"; then
if test "$JS_POSIX_NSPR" = 1; then
AC_DEFINE(JS_POSIX_NSPR)
fi

View File

@ -255,7 +255,6 @@ def wanted_mozconfig_variables(help):
'DSYMUTIL',
'EXTERNAL_SOURCE_DIR',
'GENISOIMAGE',
'JS_STANDALONE',
'L10NBASEDIR',
'MOZILLABUILD',
'MOZ_ARTIFACT_BUILDS',
@ -581,8 +580,6 @@ def include_project_configure(project, external_source_dir, build_env, help):
def build_project(include_project_configure, build_env, help):
ret = os.path.dirname(os.path.relpath(include_project_configure,
build_env['TOPSRCDIR']))
set_config('MOZ_BUILD_APP', ret)
set_define('MOZ_BUILD_APP', ret)
add_old_configure_assignment('MOZ_BUILD_APP', ret)
return ret

View File

@ -58,7 +58,7 @@ def config_status(config):
fh.write("__all__ = ['topobjdir', 'topsrcdir', 'defines', "
"'non_global_defines', 'substs']")
if config.get('MOZ_BUILD_APP') != 'js' or config.get('JS_STANDALONE'):
if not config.get('BUILDING_JS') or config.get('JS_STANDALONE'):
fh.write('''
if __name__ == '__main__':
args = dict([(name, globals()[name]) for name in __all__])
@ -69,7 +69,7 @@ if __name__ == '__main__':
# Other things than us are going to run this file, so we need to give it
# executable permissions.
os.chmod('config.status', 0755)
if config.get('MOZ_BUILD_APP') != 'js' or config.get('JS_STANDALONE'):
if not config.get('BUILDING_JS') or config.get('JS_STANDALONE'):
if not config.get('JS_STANDALONE'):
os.environ['WRITE_MOZINFO'] = '1'
# Until we have access to the virtualenv from this script, execute

View File

@ -8,24 +8,10 @@
# =========================================================
@depends(build_project, '--help')
def building_js(build_project, help):
def js_shell_default(build_project, help):
return build_project == 'js'
# Exception to the rule above: JS_STANDALONE is a special option that doesn't
# want the js_option treatment. When we're done merging js/src/configure and
# top-level configure, it can go away, although the JS_STANDALONE config
# will still need to be set depending on building_js above.
option(env='JS_STANDALONE', default=building_js,
help='Reserved for internal use')
@depends('JS_STANDALONE')
def js_standalone(value):
if value:
set_config('JS_STANDALONE', '1')
add_old_configure_assignment('JS_STANDALONE', '1')
js_option('--disable-js-shell', default=building_js,
js_option('--disable-js-shell', default=js_shell_default,
help='Do not build the JS shell')
@depends('--disable-js-shell')
@ -36,10 +22,14 @@ def js_shell(value):
# SpiderMonkey as a shared library, and how its symbols are exported
# ==================================================================
js_option('--disable-shared-js', default=building_js,
@depends(build_project, '--help')
def js_shared_default(build_project, help):
return build_project == 'js'
js_option('--disable-shared-js', default=js_shared_default,
help='Do not create a shared library')
js_option('--disable-export-js', default=building_js,
js_option('--disable-export-js', default=js_shared_default,
help='Do not mark JS symbols as DLL exported/visible')
@depends('--disable-shared-js', '--disable-export-js')

View File

@ -75,12 +75,18 @@ MOZ_BUILD_ROOT=`pwd -W 2>/dev/null || pwd -P`
MOZ_DEFAULT_COMPILER
if test -z "$JS_STANDALONE"; then
if test "$JS_STANDALONE" = no; then
autoconfmk=autoconf-js.mk
JS_STANDALONE=
#DIST is exported from top-level configure
else
JS_STANDALONE=1
AC_DEFINE(JS_STANDALONE)
DIST="$MOZ_BUILD_ROOT/dist"
fi
AC_SUBST(JS_STANDALONE)
BUILDING_JS=1
AC_SUBST(BUILDING_JS)
AC_SUBST(autoconfmk)
MOZ_ARG_WITH_STRING(gonk-toolchain-prefix,

View File

@ -3097,6 +3097,7 @@ if test -n "$MOZ_RUST"; then
fi
fi
AC_SUBST(MOZ_BUILD_APP)
AC_SUBST(MOZ_PHOENIX)
AC_SUBST(MOZ_XULRUNNER)
AC_SUBST(MOZ_B2G)
@ -3104,6 +3105,8 @@ AC_SUBST(MOZ_MULET)
AC_SUBST(MOZ_B2G_VERSION)
AC_SUBST(MOZ_B2GDROID)
AC_DEFINE_UNQUOTED(MOZ_BUILD_APP,$MOZ_BUILD_APP)
dnl ========================================================
dnl Ensure Android SDK and build-tools versions depending on
dnl mobile target.
@ -7939,7 +7942,7 @@ export RUSTC
export MOZILLA_CENTRAL_PATH=$_topsrcdir
export STLPORT_CPPFLAGS
export STLPORT_LIBS
export JS_STANDALONE=
export JS_STANDALONE=no
export DIST
export MOZ_LINKER
export ZLIB_IN_MOZGLUE