mobile/android/config/mozconfigs/common

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 4
michael@0 5 # This file is included at the top of all native android mozconfigs
michael@0 6
michael@0 7 . "$topsrcdir/build/mozconfig.common"
michael@0 8
michael@0 9 # Set the most aggressive settings for szip. Not the default because it's
michael@0 10 # much slower and we didn't want to slow down developers builds.
michael@0 11 # Has no effect when MOZ_ENABLE_SZIP is not set in mobile/android/confvars.sh.
michael@0 12 MOZ_SZIP_FLAGS="-D auto -f auto"
michael@0 13
michael@0 14 ac_add_options --enable-elf-hack
michael@0 15
michael@0 16 ANDROID_NDK_VERSION="r8e"
michael@0 17 ANDROID_NDK_VERSION_32BIT="r8c"
michael@0 18 ANDROID_SDK_VERSION="17"
michael@0 19
michael@0 20 # Build Fennec
michael@0 21 ac_add_options --enable-application=mobile/android
michael@0 22
michael@0 23 if test `uname -m` = 'x86_64'; then
michael@0 24 ac_add_options --with-android-ndk="$topsrcdir/android-ndk"
michael@0 25 ac_add_options --with-android-sdk="$topsrcdir/android-sdk-linux/platforms/android-$ANDROID_SDK_VERSION"
michael@0 26 else
michael@0 27 ac_add_options --with-android-ndk="/tools/android-ndk-$ANDROID_NDK_VERSION_32BIT"
michael@0 28 ac_add_options --with-android-sdk="/tools/android-sdk-r$ANDROID_SDK_VERSION/platforms/android-$ANDROID_SDK_VERSION"
michael@0 29 fi
michael@0 30
michael@0 31 ac_add_options --with-android-gnu-compiler-version=4.7
michael@0 32 ac_add_options --with-android-version=9
michael@0 33 ac_add_options --with-system-zlib
michael@0 34 ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
michael@0 35
michael@0 36 # Treat warnings as errors in directories with FAIL_ON_WARNINGS.
michael@0 37 ac_add_options --enable-warnings-as-errors
michael@0 38
michael@0 39 # Package js shell.
michael@0 40 export MOZ_PACKAGE_JSSHELL=1
michael@0 41
michael@0 42 # Use ccache
michael@0 43 . "$topsrcdir/build/mozconfig.cache"
michael@0 44
michael@0 45 HOST_CC="/tools/gcc-4.7.2-0moz1/bin/gcc"
michael@0 46 HOST_CXX="/tools/gcc-4.7.2-0moz1/bin/g++"
michael@0 47
michael@0 48 # Avoid dependency on libstdc++ 4.7
michael@0 49 ac_add_options --enable-stdcxx-compat
michael@0 50
michael@0 51 mk_add_options "export ANT_HOME=$topsrcdir/apache-ant"
michael@0 52
michael@0 53 mk_add_options "export PATH=$topsrcdir/apache-ant/bin:$PATH"

mercurial