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