author | Nick Alexander <nalexander@mozilla.com> |
Mon, 02 Nov 2015 16:46:42 -0800 | |
changeset 271113 | b423610b2e44ba5b63458608d4f78c979d970e77 |
parent 271112 | 91c66ca62277413b88b74f6f7fc5176c079afdf2 |
child 271114 | 7a6d5c81c20b61dc5f4019c281ad7e5304e99997 |
push id | 67553 |
push user | cbook@mozilla.com |
push date | Wed, 04 Nov 2015 11:31:24 +0000 |
treeherder | mozilla-inbound@8868503916ba [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | glandium |
bugs | 1220476 |
milestone | 45.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
build/autoconf/android.m4 | file | annotate | diff | comparison | revisions | |
configure.in | file | annotate | diff | comparison | revisions |
--- a/build/autoconf/android.m4 +++ b/build/autoconf/android.m4 @@ -183,18 +183,18 @@ case "$target" in AC_SUBST(ANDROID_NDK) AC_SUBST(ANDROID_TOOLCHAIN) AC_SUBST(ANDROID_PLATFORM) ;; esac ]) - -AC_DEFUN([MOZ_ANDROID_STLPORT], + +AC_DEFUN([MOZ_ANDROID_CPU_ARCH], [ if test "$OS_TARGET" = "Android" -a -z "$gonkdir"; then case "${CPU_ARCH}-${MOZ_ARCH}" in arm-armv7*) ANDROID_CPU_ARCH=armeabi-v7a ;; arm-*) @@ -204,17 +204,23 @@ if test "$OS_TARGET" = "Android" -a -z " ANDROID_CPU_ARCH=x86 ;; mips-*) # When target_cpu is mipsel, CPU_ARCH is mips ANDROID_CPU_ARCH=mips ;; esac AC_SUBST(ANDROID_CPU_ARCH) +fi +]) +AC_DEFUN([MOZ_ANDROID_STLPORT], +[ + +if test "$OS_TARGET" = "Android" -a -z "$gonkdir"; then cpu_arch_dir="$ANDROID_CPU_ARCH" if test "$MOZ_THUMB2" = 1; then cpu_arch_dir="$cpu_arch_dir/thumb" fi if test -z "$STLPORT_CPPFLAGS$STLPORT_LIBS"; then case "$android_cxx_stl" in libstdc++)
--- a/configure.in +++ b/configure.in @@ -316,17 +316,21 @@ if test -n "$gonkdir" ; then AC_DEFINE_UNQUOTED(ANDROID_VERSION, $ANDROID_VERSION) AC_SUBST(ANDROID_VERSION) AC_DEFINE(HAVE_SYS_UIO_H) AC_DEFINE(HAVE_PTHREADS) MOZ_CHROME_FILE_FORMAT=omni direct_nspr_config=1 android_cxx_stl=mozstlport else - MOZ_ANDROID_NDK + if test "$COMPILE_ENVIRONMENT"; then + MOZ_ANDROID_NDK + else + AC_DEFINE(ANDROID) + fi # COMPILE_ENVIRONMENT case "$target" in *-android*|*-linuxandroid*) if test -z "$ANDROID_PACKAGE_NAME" ; then ANDROID_PACKAGE_NAME='org.mozilla.$(MOZ_APP_NAME)' fi MOZ_CHROME_FILE_FORMAT=omni ZLIB_DIR=yes @@ -1192,17 +1196,24 @@ dnl ==================================== INTEL_ARCHITECTURE= case "$OS_TEST" in x86_64|i?86) INTEL_ARCHITECTURE=1 esac dnl Configure platform-specific CPU architecture compiler options. dnl ============================================================== -MOZ_ARCH_OPTS +if test "$COMPILE_ENVIRONMENT"; then + MOZ_ARCH_OPTS +else + if test "$OS_TARGET" = Android -a x"$MOZ_WIDGET_TOOLKIT" != x"gonk"; then + dnl Default Android builds to ARMv7. + MOZ_ARCH=armv7-a + fi +fi # COMPILE_ENVIRONMENT dnl ================================================================= dnl Set up and test static assertion macros used to avoid AC_TRY_RUN, dnl which is bad when cross compiling. dnl ================================================================= if test "$COMPILE_ENVIRONMENT"; then configure_static_assert_macros=' #define CONFIGURE_STATIC_ASSERT(condition) CONFIGURE_STATIC_ASSERT_IMPL(condition, __LINE__) @@ -1241,17 +1252,20 @@ if test "$ac_cv_static_assertion_macros_ fi fi # COMPILE_ENVIRONMENT dnl ======================================================== dnl Android libstdc++, placed here so it can use MOZ_ARCH dnl computed above. dnl ======================================================== -MOZ_ANDROID_STLPORT +MOZ_ANDROID_CPU_ARCH +if test "$COMPILE_ENVIRONMENT"; then + MOZ_ANDROID_STLPORT +fi # COMPILE_ENVIRONMENT dnl ======================================================== dnl Suppress Clang Argument Warnings dnl ======================================================== if test -n "${CLANG_CC}${CLANG_CL}"; then _WARNINGS_CFLAGS="-Qunused-arguments ${_WARNINGS_CFLAGS}" CPPFLAGS="-Qunused-arguments ${CPPFLAGS}" fi @@ -2527,16 +2541,17 @@ case "$target" in MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script' fi ;; esac if test -z "$COMPILE_ENVIRONMENT"; then SKIP_COMPILER_CHECKS=1 SKIP_LIBRARY_CHECKS=1 + PKG_SKIP_STRIP=1 else MOZ_COMPILER_OPTS fi # COMPILE_ENVIRONMENT if test -z "$SKIP_COMPILER_CHECKS"; then dnl Checks for typedefs, structures, and compiler characteristics. dnl ======================================================== AC_HEADER_STDC