2016-03-08 07:49:35 +03:00
|
|
|
# -*- 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/.
|
|
|
|
|
2016-04-22 23:01:21 +03:00
|
|
|
env_flag('MOZ_ANDROID_EXCLUDE_FONTS',
|
|
|
|
help='Whether to exclude font files from the build',
|
|
|
|
default=True)
|
|
|
|
|
2016-04-22 23:01:21 +03:00
|
|
|
env_flag('MOZ_LOCALE_SWITCHER',
|
|
|
|
help='Enable runtime locale switching',
|
|
|
|
default=True)
|
|
|
|
|
2016-04-22 23:01:21 +03:00
|
|
|
env_flag('MOZ_ANDROID_GCM',
|
|
|
|
help='Enable GCM registration on Nightly builds only',
|
|
|
|
default=enabled_in_nightly,
|
|
|
|
set_for_old_configure=True)
|
|
|
|
|
2016-04-02 04:39:54 +03:00
|
|
|
@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.')
|
|
|
|
|
2016-03-08 07:49:35 +03:00
|
|
|
include('../../toolkit/moz.configure')
|
2016-03-17 21:04:08 +03:00
|
|
|
include('gradle.configure')
|