diff options
| author | 2017-12-06 23:32:36 +0000 | |
|---|---|---|
| committer | 2017-12-06 23:32:36 +0000 | |
| commit | 9e094ebe1db419d5ba99f951acb90dce84538b22 (patch) | |
| tree | c2709b5eaeb52cad0dc9c3d9ab150a33dcffff5a /java/java.go | |
| parent | fd2005fc1970a24ecbbb22869cb4b3f87e243ba8 (diff) | |
| parent | 1bd8780881ffdeb4b16bfedc4410f54fc6e2fabb (diff) | |
Merge changes from topic "soong_dexpreopt"
* changes:
Add more dex_preopt properties
Run gofmt -w
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/java/java.go b/java/java.go index 0e54e3c61..3663253c1 100644 --- a/java/java.go +++ b/java/java.go @@ -167,9 +167,24 @@ type CompilerDeviceProperties struct { // If true, export a copy of the module as a -hostdex module for host testing. Hostdex *bool - // If false, prevent dexpreopting and stripping the dex file from the final jar. Defaults to - // true. - Dex_preopt *bool + Dex_preopt struct { + // If false, prevent dexpreopting and stripping the dex file from the final jar. Defaults to + // true. + Enabled *bool + + // If true, generate an app image (.art file) for this module. + App_image *bool + + // If true, use a checked-in profile to guide optimization. Defaults to false unless + // a matching profile is set or a profile is found in PRODUCT_DEX_PREOPT_PROFILE_DIR + // that matches the name of this module, in which case it is defaulted to true. + Profile_guided *bool + + // If set, provides the path to profile relative to the Android.bp file. If not set, + // defaults to searching for a file that matches the name of this module in the default + // profile location set by PRODUCT_DEX_PREOPT_PROFILE_DIR, or empty if not found. + Profile *string + } // When targeting 1.9, override the modules to use with --system System_modules *string |