Bug 1159371 - Make --disable-compile-environment work with --enable-application=mobile/android. r=glandium

This commit is contained in:
Nick Alexander 2015-05-01 13:42:15 -07:00
parent a9c8b24c11
commit 20b64aeed1
3 changed files with 29 additions and 9 deletions

View File

@ -367,6 +367,15 @@ dnl ========================================================
dnl AR_FLAGS set here so HOST_AR_FLAGS can be set correctly (see bug 538269)
AR_FLAGS='crs $@'
if test -z "$COMPILE_ENVIRONMENT"; then
if test "$target" != "$host"; then
# Assert that we're cross compiling, but don't require a compile toolchain (as
# MOZ_CROSS_COMPILER does below).
CROSS_COMPILE=1
AC_DEFINE(CROSS_COMPILE)
fi
fi # !COMPILE_ENVIRONMENT
if test "$COMPILE_ENVIRONMENT"; then
if test "$target" != "$host"; then
@ -1965,7 +1974,7 @@ case "$target" in
TARGET_COMPILER_ABI="ibmc"
CC_VERSION=`lslpp -Lcq vac.C 2>/dev/null | awk -F: '{ print $3 }'`
CXX_VERSION=`lslpp -Lcq vacpp.cmp.core 2>/dev/null | awk -F: '{ print $3 }'`
fi
fi # COMPILE_ENVIRONMENT
fi
case "${target_os}" in
aix4.1*)
@ -1974,7 +1983,7 @@ case "$target" in
esac
if test "$COMPILE_ENVIRONMENT"; then
MOZ_CHECK_HEADERS(sys/inttypes.h)
fi
fi # COMPILE_ENVIRONMENT
AC_DEFINE(NSCAP_DISABLE_DEBUG_PTR_TYPES)
;;
@ -2101,7 +2110,9 @@ ia64*-hpux*)
MOZ_SYNTH_PICO=1
else
_PLATFORM_DEFAULT_TOOLKIT=cairo-android
MOZ_LINKER=1
if test "$COMPILE_ENVIRONMENT"; then
MOZ_LINKER=1
fi
fi
TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
@ -2587,7 +2598,7 @@ if test -z "$COMPILE_ENVIRONMENT"; then
SKIP_LIBRARY_CHECKS=1
else
MOZ_COMPILER_OPTS
fi
fi # COMPILE_ENVIRONMENT
if test -z "$SKIP_COMPILER_CHECKS"; then
dnl Checks for typedefs, structures, and compiler characteristics.
@ -3919,7 +3930,9 @@ case "${target}" in
NSS_DISABLE_DBM=1
MOZ_THEME_FASTSTRIPE=1
MOZ_TREE_FREETYPE=1
MOZ_MEMORY=1
if test "$COMPILE_ENVIRONMENT"; then
MOZ_MEMORY=1
fi
MOZ_RAW=1
;;
@ -5451,7 +5464,7 @@ if test -n "$MOZ_VPX" -a -z "$MOZ_NATIVE_LIBVPX"; then
VPX_ASFLAGS="-f win32 -rnasm -pnasm -DPIC"
VPX_X86_ASM=1
dnl The encoder needs obj_int_extract to get asm offsets.
fi
fi # COMPILE_ENVIRONMENT and others
;;
*:arm*)
if test -n "$GNU_AS" ; then
@ -5481,7 +5494,7 @@ if test -n "$MOZ_VPX" -a -z "$MOZ_NATIVE_LIBVPX"; then
if test -n "$COMPILE_ENVIRONMENT" -a -n "$VPX_X86_ASM" -a -z "$VPX_AS"; then
AC_MSG_ERROR([yasm is a required build tool for this architecture when webm is enabled. You may either install yasm or --disable-webm (which disables the WebM video format). See https://developer.mozilla.org/en/YASM for more details.])
fi
fi # COMPILE_ENVIRONMENT and others
if test -z "$GNU_CC" -a -z "$INTEL_CC" -a -z "$CLANG_CC" ; then
dnl We prefer to get asm offsets using inline assembler, which the above
@ -7339,7 +7352,7 @@ if test -n "$COMPILE_ENVIRONMENT" -a -n "$USE_ELF_HACK"; then
USE_ELF_HACK=
fi
fi
fi
fi # COMPILE_ENVIRONMENT and others.
dnl ========================================================
dnl = libstdc++ compatibility hacks

View File

@ -760,6 +760,10 @@ for var in ('ANDROID_PACKAGE_NAME', 'ANDROID_CPU_ARCH',
# Mangle our package name to avoid Bug 750548.
DEFINES['MANGLED_ANDROID_PACKAGE_NAME'] = CONFIG['ANDROID_PACKAGE_NAME'].replace('fennec', 'f3nn3c')
DEFINES['MOZ_APP_ABI'] = CONFIG['TARGET_XPCOM_ABI']
if not CONFIG['COMPILE_ENVIRONMENT']:
# These should really come from the included binaries, but that's not easy.
DEFINES['MOZ_APP_ABI'] = 'arm-eabi-gcc3' # Observe quote differences here ...
DEFINES['TARGET_XPCOM_ABI'] = '"arm-eabi-gcc3"' # ... and here.
if '-march=armv7' in CONFIG['OS_CFLAGS']:
DEFINES['MOZ_MIN_CPU_VERSION'] = 7

View File

@ -46,8 +46,11 @@ MOZ_APP_ID={aa3c5121-dab2-40e2-81ca-7ea25febc110}
MOZ_APP_STATIC_INI=1
# Enable on-demand decompression
# Enable on-demand decompression. This requires a host compile toolchain to
# build szip to use during packaging.
if test "$COMPILE_ENVIRONMENT"; then
MOZ_ENABLE_SZIP=1
fi
# Enable navigator.mozPay
MOZ_PAY=1