Commit e7f90061 authored by Peter Wen's avatar Peter Wen Committed by Commit Bot

Android: Add android_fast_local_dev build flag

This allows devs to prioritize build speed and easily turn off analysis.

Bug: 921686
Change-Id: Ie68368634e779119eb912e5b1342742d5d45d51a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2122229
Auto-Submit: Peter Wen <wnwen@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#754536}
parent 16249b38
......@@ -50,6 +50,12 @@ if (is_android || is_chromeos) {
# Android API level for 64 bits platforms
android64_ndk_api_level = 21
# [WIP] Allows devs to achieve much faster edit-build-install cycles.
# Currently only works for ChromeModern apks due to incremental install.
# This needs to be in a separate declare_args as it determines some of the
# args in the main declare_args block below.
android_fast_local_dev = false
}
if (enable_chrome_android_internal) {
......@@ -172,11 +178,12 @@ if (is_android || is_chromeos) {
# Set to false to disable the Errorprone compiler.
# Defaults to false for official builds to reduce build times.
# Static analysis failures should have been already caught by normal bots.
use_errorprone_java_compiler = !is_official_build
# Disabled when fast_local_dev is turned on.
use_errorprone_java_compiler = !is_official_build && !android_fast_local_dev
# Build incremental targets whenever possible.
# See //build/android/incremental_install/README.md for more details.
incremental_install = false
incremental_install = android_fast_local_dev
# When true, updates all android_aar_prebuilt() .info files during gn gen.
# Refer to android_aar_prebuilt() for more details.
......@@ -185,7 +192,8 @@ if (is_android || is_chromeos) {
# Turns off android lint. Useful for prototyping or for faster local builds.
# Defaults to true for official builds to reduce build times.
# Static analysis failures should have been already caught by normal bots.
disable_android_lint = is_official_build
# Disabled when fast_local_dev is turned on.
disable_android_lint = is_official_build || android_fast_local_dev
# Location of aapt2 used for app bundles. For now, a more recent version
# than the one distributed with the Android SDK is required.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment