2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2016-03-08 04:49:35 +00:00
|
|
|
# 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-05-12 18:55:58 +00:00
|
|
|
project_flag('MOZ_ANDROID_EXCLUDE_FONTS',
|
|
|
|
help='Whether to exclude font files from the build',
|
|
|
|
default=True)
|
2016-04-22 20:01:21 +00:00
|
|
|
|
2016-05-12 18:55:58 +00:00
|
|
|
project_flag('MOZ_LOCALE_SWITCHER',
|
|
|
|
help='Enable runtime locale switching',
|
|
|
|
default=True)
|
2016-04-22 20:01:21 +00:00
|
|
|
|
2016-05-12 18:55:58 +00:00
|
|
|
project_flag('MOZ_ANDROID_GCM',
|
|
|
|
help='Enable GCM registration on Nightly builds only',
|
2016-06-02 17:54:17 +00:00
|
|
|
default=True,
|
2016-05-12 18:55:58 +00:00
|
|
|
set_for_old_configure=True)
|
2016-04-22 20:01:21 +00:00
|
|
|
|
2016-05-12 18:55:58 +00:00
|
|
|
project_flag('MOZ_ANDROID_DOWNLOADS_INTEGRATION',
|
|
|
|
help='Enable system download manager on Android',
|
|
|
|
default=True)
|
2016-04-22 20:01:21 +00:00
|
|
|
|
2016-05-12 18:55:58 +00:00
|
|
|
project_flag('MOZ_ANDROID_BEAM',
|
|
|
|
help='Enable NFC permission on Android',
|
|
|
|
default=True)
|
2016-04-22 20:01:21 +00:00
|
|
|
|
2016-05-12 18:55:58 +00:00
|
|
|
project_flag('MOZ_ANDROID_SEARCH_ACTIVITY',
|
|
|
|
help='Include Search Activity on Android',
|
|
|
|
default=True)
|
2016-04-22 20:01:22 +00:00
|
|
|
|
2016-05-12 18:55:58 +00:00
|
|
|
project_flag('MOZ_ANDROID_MLS_STUMBLER',
|
|
|
|
help='Include Mozilla Location Service Stumbler on Android',
|
|
|
|
default=True)
|
2016-04-22 20:01:22 +00:00
|
|
|
|
2016-05-12 18:55:58 +00:00
|
|
|
project_flag('MOZ_ANDROID_DOWNLOAD_CONTENT_SERVICE',
|
|
|
|
help='Background service for downloading additional content at runtime',
|
|
|
|
default=True)
|
2016-04-22 20:01:22 +00:00
|
|
|
|
2016-05-30 14:48:45 +00:00
|
|
|
project_flag('MOZ_ANDROID_CUSTOM_TABS',
|
|
|
|
help='Enable support for Android custom tabs',
|
2016-07-15 18:36:58 +00:00
|
|
|
default=delayed_getattr(milestone, 'is_nightly'))
|
2016-05-30 14:48:45 +00:00
|
|
|
|
2016-04-22 20:01:22 +00:00
|
|
|
# Enable the Switchboard A/B framework code.
|
|
|
|
# Note: The framework is always included in the app. This flag controls
|
|
|
|
# usage of the framework.
|
2016-05-12 18:55:58 +00:00
|
|
|
project_flag('MOZ_SWITCHBOARD',
|
|
|
|
help='Include Switchboard A/B framework on Android',
|
|
|
|
default=True)
|
2016-04-22 20:01:22 +00:00
|
|
|
|
2016-07-22 23:16:41 +00:00
|
|
|
option(env='MOZ_ANDROID_ACTIVITY_STREAM',
|
|
|
|
help='Enable Activity Stream on Android (replacing the default HomePager)',
|
|
|
|
default=False)
|
|
|
|
|
|
|
|
set_config('MOZ_ANDROID_ACTIVITY_STREAM',
|
|
|
|
depends_if('MOZ_ANDROID_ACTIVITY_STREAM')(lambda _: True))
|
|
|
|
|
2016-06-09 18:37:40 +00:00
|
|
|
option(env='MOZ_ANDROID_PACKAGE_INSTALL_BOUNCER',
|
|
|
|
help='Build and package the install bouncer APK',
|
|
|
|
default=True)
|
|
|
|
|
|
|
|
set_config('MOZ_ANDROID_PACKAGE_INSTALL_BOUNCER',
|
|
|
|
depends_if('MOZ_ANDROID_PACKAGE_INSTALL_BOUNCER')(lambda _: True))
|
|
|
|
|
2016-05-12 18:55:59 +00:00
|
|
|
imply_option('MOZ_SOCIAL', False)
|
2016-05-12 18:55:59 +00:00
|
|
|
imply_option('MOZ_SERVICES_HEALTHREPORT', True)
|
2016-05-17 21:40:03 +00:00
|
|
|
imply_option('MOZ_ANDROID_HISTORY', True)
|
2016-05-12 18:55:59 +00:00
|
|
|
|
2016-09-30 16:16:23 +00:00
|
|
|
set_config('ANDROID_SUPPORT_LIBRARY_VERSION', '23.4.0')
|
|
|
|
add_old_configure_assignment('ANDROID_SUPPORT_LIBRARY_VERSION', '23.4.0')
|
2016-05-31 17:14:35 +00:00
|
|
|
|
|
|
|
set_config('ANDROID_GOOGLE_PLAY_SERVICES_VERSION', '8.4.0')
|
|
|
|
add_old_configure_assignment('ANDROID_GOOGLE_PLAY_SERVICES_VERSION', '8.4.0')
|
|
|
|
|
2016-04-02 01:39:54 +00: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 04:49:35 +00:00
|
|
|
include('../../toolkit/moz.configure')
|
2016-05-12 18:55:57 +00:00
|
|
|
include('../../build/moz.configure/java.configure')
|
2016-03-17 18:04:08 +00:00
|
|
|
include('gradle.configure')
|