diff -r 000000000000 -r 6474c204b198 mobile/android/config/mozconfigs/common --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mobile/android/config/mozconfigs/common Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,53 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +# This file is included at the top of all native android mozconfigs + +. "$topsrcdir/build/mozconfig.common" + +# Set the most aggressive settings for szip. Not the default because it's +# much slower and we didn't want to slow down developers builds. +# Has no effect when MOZ_ENABLE_SZIP is not set in mobile/android/confvars.sh. +MOZ_SZIP_FLAGS="-D auto -f auto" + +ac_add_options --enable-elf-hack + +ANDROID_NDK_VERSION="r8e" +ANDROID_NDK_VERSION_32BIT="r8c" +ANDROID_SDK_VERSION="17" + +# Build Fennec +ac_add_options --enable-application=mobile/android + +if test `uname -m` = 'x86_64'; then + ac_add_options --with-android-ndk="$topsrcdir/android-ndk" + ac_add_options --with-android-sdk="$topsrcdir/android-sdk-linux/platforms/android-$ANDROID_SDK_VERSION" +else + ac_add_options --with-android-ndk="/tools/android-ndk-$ANDROID_NDK_VERSION_32BIT" + ac_add_options --with-android-sdk="/tools/android-sdk-r$ANDROID_SDK_VERSION/platforms/android-$ANDROID_SDK_VERSION" +fi + +ac_add_options --with-android-gnu-compiler-version=4.7 +ac_add_options --with-android-version=9 +ac_add_options --with-system-zlib +ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL} + +# Treat warnings as errors in directories with FAIL_ON_WARNINGS. +ac_add_options --enable-warnings-as-errors + +# Package js shell. +export MOZ_PACKAGE_JSSHELL=1 + +# Use ccache +. "$topsrcdir/build/mozconfig.cache" + +HOST_CC="/tools/gcc-4.7.2-0moz1/bin/gcc" +HOST_CXX="/tools/gcc-4.7.2-0moz1/bin/g++" + +# Avoid dependency on libstdc++ 4.7 +ac_add_options --enable-stdcxx-compat + +mk_add_options "export ANT_HOME=$topsrcdir/apache-ant" + +mk_add_options "export PATH=$topsrcdir/apache-ant/bin:$PATH"