Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 1 | // Copyright 2018 Google Inc. All rights reserved. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package dexpreopt |
| 16 | |
| 17 | import ( |
| 18 | "encoding/json" |
| 19 | "io/ioutil" |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 20 | "strings" |
Colin Cross | 74ba962 | 2019-02-11 15:11:14 -0800 | [diff] [blame] | 21 | |
| 22 | "android/soong/android" |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 23 | ) |
| 24 | |
| 25 | // GlobalConfig stores the configuration for dex preopting set by the product |
| 26 | type GlobalConfig struct { |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 27 | DisablePreopt bool // disable preopt for all modules |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 28 | DisablePreoptModules []string // modules with preopt disabled by product-specific config |
| 29 | |
| 30 | OnlyPreoptBootImageAndSystemServer bool // only preopt jars in the boot image or system server |
| 31 | |
Nicolas Geoffray | 72892f1 | 2019-02-22 15:34:40 +0000 | [diff] [blame] | 32 | GenerateApexImage bool // generate an extra boot image only containing jars from the runtime apex |
Nicolas Geoffray | 25c0e03 | 2019-04-04 18:45:20 +0100 | [diff] [blame] | 33 | UseApexImage bool // use the apex image by default |
Nicolas Geoffray | 72892f1 | 2019-02-22 15:34:40 +0000 | [diff] [blame] | 34 | |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 35 | HasSystemOther bool // store odex files that match PatternsOnSystemOther on the system_other partition |
| 36 | PatternsOnSystemOther []string // patterns (using '%' to denote a prefix match) to put odex on the system_other partition |
| 37 | |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 38 | DisableGenerateProfile bool // don't generate profiles |
| 39 | ProfileDir string // directory to find profiles in |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 40 | |
Colin Cross | 800fe13 | 2019-02-11 14:21:24 -0800 | [diff] [blame] | 41 | BootJars []string // modules for jars that form the boot class path |
Vladimir Marko | d2ee532 | 2018-12-19 17:57:57 +0000 | [diff] [blame] | 42 | |
Martin Stjernholm | cc4b0ad | 2019-07-05 22:38:25 +0100 | [diff] [blame] | 43 | ArtApexJars []string // modules for jars that are in the ART APEX |
Colin Cross | 800fe13 | 2019-02-11 14:21:24 -0800 | [diff] [blame] | 44 | ProductUpdatableBootModules []string |
| 45 | ProductUpdatableBootLocations []string |
| 46 | |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 47 | SystemServerJars []string // jars that form the system server |
| 48 | SystemServerApps []string // apps that are loaded into system server |
| 49 | SpeedApps []string // apps that should be speed optimized |
| 50 | |
| 51 | PreoptFlags []string // global dex2oat flags that should be used if no module-specific dex2oat flags are specified |
| 52 | |
| 53 | DefaultCompilerFilter string // default compiler filter to pass to dex2oat, overridden by --compiler-filter= in module-specific dex2oat flags |
| 54 | SystemServerCompilerFilter string // default compiler filter to pass to dex2oat for system server jars |
| 55 | |
Nicolas Geoffray | c1bf724 | 2019-10-18 14:51:38 +0100 | [diff] [blame^] | 56 | GenerateDMFiles bool // generate Dex Metadata files |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 57 | |
| 58 | NoDebugInfo bool // don't generate debug info by default |
Mathieu Chartier | 3f7ddbb | 2019-04-29 09:33:50 -0700 | [diff] [blame] | 59 | DontResolveStartupStrings bool // don't resolve string literals loaded during application startup. |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 60 | AlwaysSystemServerDebugInfo bool // always generate mini debug info for system server modules (overrides NoDebugInfo=true) |
| 61 | NeverSystemServerDebugInfo bool // never generate mini debug info for system server modules (overrides NoDebugInfo=false) |
| 62 | AlwaysOtherDebugInfo bool // always generate mini debug info for non-system server modules (overrides NoDebugInfo=true) |
| 63 | NeverOtherDebugInfo bool // never generate mini debug info for non-system server modules (overrides NoDebugInfo=true) |
| 64 | |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 65 | IsEng bool // build is a eng variant |
| 66 | SanitizeLite bool // build is the second phase of a SANITIZE_LITE build |
| 67 | |
| 68 | DefaultAppImages bool // build app images (TODO: .art files?) by default |
| 69 | |
Colin Cross | 800fe13 | 2019-02-11 14:21:24 -0800 | [diff] [blame] | 70 | Dex2oatXmx string // max heap size for dex2oat |
| 71 | Dex2oatXms string // initial heap size for dex2oat |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 72 | |
| 73 | EmptyDirectory string // path to an empty directory |
| 74 | |
Colin Cross | 74ba962 | 2019-02-11 15:11:14 -0800 | [diff] [blame] | 75 | CpuVariant map[android.ArchType]string // cpu variant for each architecture |
| 76 | InstructionSetFeatures map[android.ArchType]string // instruction set for each architecture |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 77 | |
Colin Cross | 800fe13 | 2019-02-11 14:21:24 -0800 | [diff] [blame] | 78 | // Only used for boot image |
Mathieu Chartier | 6adeee1 | 2019-06-26 10:01:36 -0700 | [diff] [blame] | 79 | DirtyImageObjects android.OptionalPath // path to a dirty-image-objects file |
| 80 | BootImageProfiles android.Paths // path to a boot-image-profile.txt file |
| 81 | BootFlags string // extra flags to pass to dex2oat for the boot image |
| 82 | Dex2oatImageXmx string // max heap size for dex2oat for the boot image |
| 83 | Dex2oatImageXms string // initial heap size for dex2oat for the boot image |
Colin Cross | 800fe13 | 2019-02-11 14:21:24 -0800 | [diff] [blame] | 84 | |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 85 | Tools Tools // paths to tools possibly used by the generated commands |
| 86 | } |
| 87 | |
| 88 | // Tools contains paths to tools possibly used by the generated commands. If you add a new tool here you MUST add it |
| 89 | // to the order-only dependency list in DEXPREOPT_GEN_DEPS. |
| 90 | type Tools struct { |
Colin Cross | 38b9685 | 2019-05-22 10:21:09 -0700 | [diff] [blame] | 91 | Profman android.Path |
| 92 | Dex2oat android.Path |
| 93 | Aapt android.Path |
| 94 | SoongZip android.Path |
| 95 | Zip2zip android.Path |
| 96 | ManifestCheck android.Path |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 97 | |
Colin Cross | 38b9685 | 2019-05-22 10:21:09 -0700 | [diff] [blame] | 98 | ConstructContext android.Path |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | type ModuleConfig struct { |
Victor Hsieh | d181c8b | 2019-01-29 13:00:33 -0800 | [diff] [blame] | 102 | Name string |
| 103 | DexLocation string // dex location on device |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 104 | BuildPath android.OutputPath |
| 105 | DexPath android.Path |
Colin Cross | 38b9685 | 2019-05-22 10:21:09 -0700 | [diff] [blame] | 106 | ManifestPath android.Path |
Victor Hsieh | d181c8b | 2019-01-29 13:00:33 -0800 | [diff] [blame] | 107 | UncompressedDex bool |
| 108 | HasApkLibraries bool |
| 109 | PreoptFlags []string |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 110 | |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 111 | ProfileClassListing android.OptionalPath |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 112 | ProfileIsTextListing bool |
Nicolas Geoffray | e710242 | 2019-07-24 13:19:29 +0100 | [diff] [blame] | 113 | ProfileBootListing android.OptionalPath |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 114 | |
Colin Cross | 50ddcc4 | 2019-05-16 12:28:22 -0700 | [diff] [blame] | 115 | EnforceUsesLibraries bool |
| 116 | PresentOptionalUsesLibraries []string |
| 117 | UsesLibraries []string |
| 118 | LibraryPaths map[string]android.Path |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 119 | |
Dan Willemsen | 0f41678 | 2019-06-13 21:44:53 +0000 | [diff] [blame] | 120 | Archs []android.ArchType |
| 121 | DexPreoptImages []android.Path |
| 122 | DexPreoptImagesDeps []android.Paths |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 123 | |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 124 | PreoptBootClassPathDexFiles android.Paths // file paths of boot class path files |
| 125 | PreoptBootClassPathDexLocations []string // virtual locations of boot class path files |
Colin Cross | 800fe13 | 2019-02-11 14:21:24 -0800 | [diff] [blame] | 126 | |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 127 | PreoptExtractedApk bool // Overrides OnlyPreoptModules |
| 128 | |
| 129 | NoCreateAppImage bool |
| 130 | ForceCreateAppImage bool |
| 131 | |
| 132 | PresignedPrebuilt bool |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 133 | } |
| 134 | |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 135 | func constructPath(ctx android.PathContext, path string) android.Path { |
| 136 | buildDirPrefix := ctx.Config().BuildDir() + "/" |
| 137 | if path == "" { |
| 138 | return nil |
| 139 | } else if strings.HasPrefix(path, buildDirPrefix) { |
| 140 | return android.PathForOutput(ctx, strings.TrimPrefix(path, buildDirPrefix)) |
| 141 | } else { |
| 142 | return android.PathForSource(ctx, path) |
| 143 | } |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 144 | } |
| 145 | |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 146 | func constructPaths(ctx android.PathContext, paths []string) android.Paths { |
| 147 | var ret android.Paths |
| 148 | for _, path := range paths { |
| 149 | ret = append(ret, constructPath(ctx, path)) |
| 150 | } |
| 151 | return ret |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 152 | } |
| 153 | |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 154 | func constructPathMap(ctx android.PathContext, paths map[string]string) map[string]android.Path { |
| 155 | ret := map[string]android.Path{} |
| 156 | for key, path := range paths { |
| 157 | ret[key] = constructPath(ctx, path) |
| 158 | } |
| 159 | return ret |
| 160 | } |
| 161 | |
| 162 | func constructWritablePath(ctx android.PathContext, path string) android.WritablePath { |
| 163 | if path == "" { |
| 164 | return nil |
| 165 | } |
| 166 | return constructPath(ctx, path).(android.WritablePath) |
| 167 | } |
| 168 | |
| 169 | // LoadGlobalConfig reads the global dexpreopt.config file into a GlobalConfig struct. It is used directly in Soong |
| 170 | // and in dexpreopt_gen called from Make to read the $OUT/dexpreopt.config written by Make. |
Colin Cross | 2d00f0d | 2019-05-09 21:50:00 -0700 | [diff] [blame] | 171 | func LoadGlobalConfig(ctx android.PathContext, path string) (GlobalConfig, []byte, error) { |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 172 | type GlobalJSONConfig struct { |
| 173 | GlobalConfig |
| 174 | |
| 175 | // Copies of entries in GlobalConfig that are not constructable without extra parameters. They will be |
| 176 | // used to construct the real value manually below. |
| 177 | DirtyImageObjects string |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 178 | BootImageProfiles []string |
| 179 | |
| 180 | Tools struct { |
Colin Cross | 38b9685 | 2019-05-22 10:21:09 -0700 | [diff] [blame] | 181 | Profman string |
| 182 | Dex2oat string |
| 183 | Aapt string |
| 184 | SoongZip string |
| 185 | Zip2zip string |
| 186 | ManifestCheck string |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 187 | |
Colin Cross | 38b9685 | 2019-05-22 10:21:09 -0700 | [diff] [blame] | 188 | ConstructContext string |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 189 | } |
| 190 | } |
| 191 | |
| 192 | config := GlobalJSONConfig{} |
Colin Cross | 2d00f0d | 2019-05-09 21:50:00 -0700 | [diff] [blame] | 193 | data, err := loadConfig(ctx, path, &config) |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 194 | if err != nil { |
Colin Cross | 2d00f0d | 2019-05-09 21:50:00 -0700 | [diff] [blame] | 195 | return config.GlobalConfig, nil, err |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 196 | } |
| 197 | |
| 198 | // Construct paths that require a PathContext. |
| 199 | config.GlobalConfig.DirtyImageObjects = android.OptionalPathForPath(constructPath(ctx, config.DirtyImageObjects)) |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 200 | config.GlobalConfig.BootImageProfiles = constructPaths(ctx, config.BootImageProfiles) |
| 201 | |
| 202 | config.GlobalConfig.Tools.Profman = constructPath(ctx, config.Tools.Profman) |
| 203 | config.GlobalConfig.Tools.Dex2oat = constructPath(ctx, config.Tools.Dex2oat) |
| 204 | config.GlobalConfig.Tools.Aapt = constructPath(ctx, config.Tools.Aapt) |
| 205 | config.GlobalConfig.Tools.SoongZip = constructPath(ctx, config.Tools.SoongZip) |
| 206 | config.GlobalConfig.Tools.Zip2zip = constructPath(ctx, config.Tools.Zip2zip) |
Colin Cross | 38b9685 | 2019-05-22 10:21:09 -0700 | [diff] [blame] | 207 | config.GlobalConfig.Tools.ManifestCheck = constructPath(ctx, config.Tools.ManifestCheck) |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 208 | config.GlobalConfig.Tools.ConstructContext = constructPath(ctx, config.Tools.ConstructContext) |
| 209 | |
Colin Cross | 2d00f0d | 2019-05-09 21:50:00 -0700 | [diff] [blame] | 210 | return config.GlobalConfig, data, nil |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 211 | } |
| 212 | |
| 213 | // LoadModuleConfig reads a per-module dexpreopt.config file into a ModuleConfig struct. It is not used in Soong, which |
| 214 | // receives a ModuleConfig struct directly from java/dexpreopt.go. It is used in dexpreopt_gen called from oMake to |
| 215 | // read the module dexpreopt.config written by Make. |
| 216 | func LoadModuleConfig(ctx android.PathContext, path string) (ModuleConfig, error) { |
| 217 | type ModuleJSONConfig struct { |
| 218 | ModuleConfig |
| 219 | |
| 220 | // Copies of entries in ModuleConfig that are not constructable without extra parameters. They will be |
| 221 | // used to construct the real value manually below. |
| 222 | BuildPath string |
| 223 | DexPath string |
Colin Cross | 38b9685 | 2019-05-22 10:21:09 -0700 | [diff] [blame] | 224 | ManifestPath string |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 225 | ProfileClassListing string |
| 226 | LibraryPaths map[string]string |
| 227 | DexPreoptImages []string |
| 228 | PreoptBootClassPathDexFiles []string |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 229 | } |
| 230 | |
| 231 | config := ModuleJSONConfig{} |
| 232 | |
Colin Cross | 2d00f0d | 2019-05-09 21:50:00 -0700 | [diff] [blame] | 233 | _, err := loadConfig(ctx, path, &config) |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 234 | if err != nil { |
| 235 | return config.ModuleConfig, err |
| 236 | } |
| 237 | |
| 238 | // Construct paths that require a PathContext. |
| 239 | config.ModuleConfig.BuildPath = constructPath(ctx, config.BuildPath).(android.OutputPath) |
| 240 | config.ModuleConfig.DexPath = constructPath(ctx, config.DexPath) |
Colin Cross | 38b9685 | 2019-05-22 10:21:09 -0700 | [diff] [blame] | 241 | config.ModuleConfig.ManifestPath = constructPath(ctx, config.ManifestPath) |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 242 | config.ModuleConfig.ProfileClassListing = android.OptionalPathForPath(constructPath(ctx, config.ProfileClassListing)) |
| 243 | config.ModuleConfig.LibraryPaths = constructPathMap(ctx, config.LibraryPaths) |
| 244 | config.ModuleConfig.DexPreoptImages = constructPaths(ctx, config.DexPreoptImages) |
| 245 | config.ModuleConfig.PreoptBootClassPathDexFiles = constructPaths(ctx, config.PreoptBootClassPathDexFiles) |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 246 | |
Dan Willemsen | 0f41678 | 2019-06-13 21:44:53 +0000 | [diff] [blame] | 247 | // This needs to exist, but dependencies are already handled in Make, so we don't need to pass them through JSON. |
| 248 | config.ModuleConfig.DexPreoptImagesDeps = make([]android.Paths, len(config.ModuleConfig.DexPreoptImages)) |
| 249 | |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 250 | return config.ModuleConfig, nil |
| 251 | } |
| 252 | |
Colin Cross | 2d00f0d | 2019-05-09 21:50:00 -0700 | [diff] [blame] | 253 | func loadConfig(ctx android.PathContext, path string, config interface{}) ([]byte, error) { |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 254 | r, err := ctx.Fs().Open(path) |
| 255 | if err != nil { |
Colin Cross | 2d00f0d | 2019-05-09 21:50:00 -0700 | [diff] [blame] | 256 | return nil, err |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 257 | } |
| 258 | defer r.Close() |
| 259 | |
| 260 | data, err := ioutil.ReadAll(r) |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 261 | if err != nil { |
Colin Cross | 2d00f0d | 2019-05-09 21:50:00 -0700 | [diff] [blame] | 262 | return nil, err |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 263 | } |
| 264 | |
| 265 | err = json.Unmarshal(data, config) |
| 266 | if err != nil { |
Colin Cross | 2d00f0d | 2019-05-09 21:50:00 -0700 | [diff] [blame] | 267 | return nil, err |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 268 | } |
| 269 | |
Colin Cross | 2d00f0d | 2019-05-09 21:50:00 -0700 | [diff] [blame] | 270 | return data, nil |
Colin Cross | 43f08db | 2018-11-12 10:13:39 -0800 | [diff] [blame] | 271 | } |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 272 | |
| 273 | func GlobalConfigForTests(ctx android.PathContext) GlobalConfig { |
| 274 | return GlobalConfig{ |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 275 | DisablePreopt: false, |
| 276 | DisablePreoptModules: nil, |
| 277 | OnlyPreoptBootImageAndSystemServer: false, |
| 278 | HasSystemOther: false, |
| 279 | PatternsOnSystemOther: nil, |
| 280 | DisableGenerateProfile: false, |
| 281 | ProfileDir: "", |
| 282 | BootJars: nil, |
Martin Stjernholm | cc4b0ad | 2019-07-05 22:38:25 +0100 | [diff] [blame] | 283 | ArtApexJars: nil, |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 284 | ProductUpdatableBootModules: nil, |
| 285 | ProductUpdatableBootLocations: nil, |
| 286 | SystemServerJars: nil, |
| 287 | SystemServerApps: nil, |
| 288 | SpeedApps: nil, |
| 289 | PreoptFlags: nil, |
| 290 | DefaultCompilerFilter: "", |
| 291 | SystemServerCompilerFilter: "", |
| 292 | GenerateDMFiles: false, |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 293 | NoDebugInfo: false, |
Mathieu Chartier | 3f7ddbb | 2019-04-29 09:33:50 -0700 | [diff] [blame] | 294 | DontResolveStartupStrings: false, |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 295 | AlwaysSystemServerDebugInfo: false, |
| 296 | NeverSystemServerDebugInfo: false, |
| 297 | AlwaysOtherDebugInfo: false, |
| 298 | NeverOtherDebugInfo: false, |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 299 | IsEng: false, |
| 300 | SanitizeLite: false, |
| 301 | DefaultAppImages: false, |
| 302 | Dex2oatXmx: "", |
| 303 | Dex2oatXms: "", |
| 304 | EmptyDirectory: "empty_dir", |
| 305 | CpuVariant: nil, |
| 306 | InstructionSetFeatures: nil, |
| 307 | DirtyImageObjects: android.OptionalPath{}, |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 308 | BootImageProfiles: nil, |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 309 | BootFlags: "", |
| 310 | Dex2oatImageXmx: "", |
| 311 | Dex2oatImageXms: "", |
| 312 | Tools: Tools{ |
Colin Cross | 38b9685 | 2019-05-22 10:21:09 -0700 | [diff] [blame] | 313 | Profman: android.PathForTesting("profman"), |
| 314 | Dex2oat: android.PathForTesting("dex2oat"), |
| 315 | Aapt: android.PathForTesting("aapt"), |
| 316 | SoongZip: android.PathForTesting("soong_zip"), |
| 317 | Zip2zip: android.PathForTesting("zip2zip"), |
| 318 | ManifestCheck: android.PathForTesting("manifest_check"), |
| 319 | ConstructContext: android.PathForTesting("construct_context.sh"), |
Colin Cross | 69f59a3 | 2019-02-15 10:39:37 -0800 | [diff] [blame] | 320 | }, |
| 321 | } |
| 322 | } |