mobile/android/config/mozconfigs/common
author Ted Mielczarek <ted@mielczarek.org>
Thu, 28 May 2015 07:14:49 -0400
changeset 266170 adbf7c8af745
parent 259050 ac5b76223f2f
child 266282 06c3ceb59140
permissions -rw-r--r--
Bug 1162060 - Add Socorro auth token to Android and B2G mozconfigs. r=mshal, a=NPOTB

# 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="21"

# 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

ac_add_options --with-mozilla-api-keyfile=/builds/mozilla-fennec-geoloc-api.key
ac_add_options --with-adjust-sdk-keyfile=/builds/adjust-sdk.token
export SOCORRO_SYMBOL_UPLOAD_TOKEN_FILE=/builds/crash-stats-api.token

# Package js shell.
export MOZ_PACKAGE_JSSHELL=1

# Use ccache
. "$topsrcdir/build/mozconfig.cache"

HOST_CC="$topsrcdir/gcc/bin/gcc"
HOST_CXX="$topsrcdir/gcc/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"

JS_BINARY="$topsrcdir/mobile/android/config/js_wrapper.sh"