1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mobile/android/config/mozconfigs/common Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,53 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 +# This file is included at the top of all native android mozconfigs 1.9 + 1.10 +. "$topsrcdir/build/mozconfig.common" 1.11 + 1.12 +# Set the most aggressive settings for szip. Not the default because it's 1.13 +# much slower and we didn't want to slow down developers builds. 1.14 +# Has no effect when MOZ_ENABLE_SZIP is not set in mobile/android/confvars.sh. 1.15 +MOZ_SZIP_FLAGS="-D auto -f auto" 1.16 + 1.17 +ac_add_options --enable-elf-hack 1.18 + 1.19 +ANDROID_NDK_VERSION="r8e" 1.20 +ANDROID_NDK_VERSION_32BIT="r8c" 1.21 +ANDROID_SDK_VERSION="17" 1.22 + 1.23 +# Build Fennec 1.24 +ac_add_options --enable-application=mobile/android 1.25 + 1.26 +if test `uname -m` = 'x86_64'; then 1.27 + ac_add_options --with-android-ndk="$topsrcdir/android-ndk" 1.28 + ac_add_options --with-android-sdk="$topsrcdir/android-sdk-linux/platforms/android-$ANDROID_SDK_VERSION" 1.29 +else 1.30 + ac_add_options --with-android-ndk="/tools/android-ndk-$ANDROID_NDK_VERSION_32BIT" 1.31 + ac_add_options --with-android-sdk="/tools/android-sdk-r$ANDROID_SDK_VERSION/platforms/android-$ANDROID_SDK_VERSION" 1.32 +fi 1.33 + 1.34 +ac_add_options --with-android-gnu-compiler-version=4.7 1.35 +ac_add_options --with-android-version=9 1.36 +ac_add_options --with-system-zlib 1.37 +ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL} 1.38 + 1.39 +# Treat warnings as errors in directories with FAIL_ON_WARNINGS. 1.40 +ac_add_options --enable-warnings-as-errors 1.41 + 1.42 +# Package js shell. 1.43 +export MOZ_PACKAGE_JSSHELL=1 1.44 + 1.45 +# Use ccache 1.46 +. "$topsrcdir/build/mozconfig.cache" 1.47 + 1.48 +HOST_CC="/tools/gcc-4.7.2-0moz1/bin/gcc" 1.49 +HOST_CXX="/tools/gcc-4.7.2-0moz1/bin/g++" 1.50 + 1.51 +# Avoid dependency on libstdc++ 4.7 1.52 +ac_add_options --enable-stdcxx-compat 1.53 + 1.54 +mk_add_options "export ANT_HOME=$topsrcdir/apache-ant" 1.55 + 1.56 +mk_add_options "export PATH=$topsrcdir/apache-ant/bin:$PATH"