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