Commit b0861f52 authored by agrieve's avatar agrieve Committed by Commit Bot

android_build_instructions.md: is_java_debug & enabled_incremental_javac

Change-Id: Icafce9c1651fc590cb21020b41e0d59f8ea0eba3
Reviewed-on: https://chromium-review.googlesource.com/c/1203392
Commit-Queue: agrieve <agrieve@chromium.org>
Reviewed-by: default avatarEric Stevenson <estevenson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600522}
parent 51c372b4
...@@ -326,11 +326,23 @@ For information on running tests, see [Android Test Instructions](android_test_i ...@@ -326,11 +326,23 @@ For information on running tests, see [Android Test Instructions](android_test_i
### Faster Edit/Deploy ### Faster Edit/Deploy
#### GN Args
Args that affect build speed:
* `is_component_build = true` *(default=`is_debug`)*
* What it does: Uses multiple `.so` files instead of just one (faster links)
* `is_java_debug = true` *(default=`is_debug`)*
* What it does: Disables ProGuard (slow build step)
* `enable_incremental_javac = true` *(default=`false`)*
* What it does: Tries to compile only a subset of `.java` files within an
`android_library` for subsequent builds.
* Can cause infrequent (once a month-ish) failures due to not recompiling a
class that should be recompiled.
#### Incremental Install
"Incremental install" uses reflection and side-loading to speed up the edit "Incremental install" uses reflection and side-loading to speed up the edit
& deploy cycle (normally < 10 seconds). The initial launch of the apk will be & deploy cycle (normally < 10 seconds). The initial launch of the apk will be
a little slower since updated dex files are installed manually. a little slower since updated dex files are installed manually.
* Make sure to set` is_component_build = true `in your GN args
* All apk targets have \*`_incremental` targets defined (e.g. * All apk targets have \*`_incremental` targets defined (e.g.
`chrome_public_apk_incremental`) except for Webview and Monochrome `chrome_public_apk_incremental`) except for Webview and Monochrome
......
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