mobile/android/moz.configure
author Chris Manchester <cmanchester@mozilla.com>
Fri, 22 Apr 2016 13:01:22 -0700
changeset 294599 9a78e646fa7764fcf7e23226e5f89ac1bfcdf0c6
parent 294598 df22a122b132ecc40bc23253300e9e887d30d96f
child 294600 356573b6a2eda7fab8c3310319b63bdcc8cfbce9
permissions -rw-r--r--
Bug 1257958 - Move MOZ_ANDROID_MLS_STUMBLER to Python configure. r=nalexander MozReview-Commit-ID: IFyL9mirNyt

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.

env_flag('MOZ_ANDROID_EXCLUDE_FONTS',
         help='Whether to exclude font files from the build',
         default=True)

env_flag('MOZ_LOCALE_SWITCHER',
         help='Enable runtime locale switching',
         default=True)

env_flag('MOZ_ANDROID_GCM',
         help='Enable GCM registration on Nightly builds only',
         default=enabled_in_nightly,
         set_for_old_configure=True)

env_flag('MOZ_ANDROID_DOWNLOADS_INTEGRATION',
         help='Enable system download manager on Android',
         default=True)

env_flag('MOZ_ANDROID_BEAM',
         help='Enable NFC permission on Android',
         default=True)

env_flag('MOZ_ANDROID_SEARCH_ACTIVITY',
         help='Include Search Activity on Android',
         default=True)

env_flag('MOZ_ANDROID_MLS_STUMBLER',
         help='Include Mozilla Location Service Stumbler on Android',
         default=True)

@depends(target)
def check_target(target):
    if target.os != 'Android':
        log.error('You must specify --target=arm-linux-androideabi (or some '
                  'other valid Android target) when building mobile/android.')
        die('See https://developer.mozilla.org/docs/Mozilla/Developer_guide/'
            'Build_Instructions/Simple_Firefox_for_Android_build '
            'for more information about the necessary options.')

include('../../toolkit/moz.configure')
include('gradle.configure')