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

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

mercurial