diff options
author | 2021-05-08 01:47:39 +0000 | |
---|---|---|
committer | 2021-05-08 01:47:39 +0000 | |
commit | 564fce4578c774dc387912483211bfadccd5c4e6 (patch) | |
tree | 09a7a15fdd4b12397d2c7b04f9376cbe7d4e67fc /java/dexpreopt_config.go | |
parent | ee7e359131b4f427ca0085f78a31dac22697d40c (diff) | |
parent | a596909342e7751f3c710efc26f2c5fe5a84ced0 (diff) |
Merge "Rename fields in dexpreopt config"
Diffstat (limited to 'java/dexpreopt_config.go')
-rw-r--r-- | java/dexpreopt_config.go | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/java/dexpreopt_config.go b/java/dexpreopt_config.go index e95b4cb1e..7fb0444c2 100644 --- a/java/dexpreopt_config.go +++ b/java/dexpreopt_config.go @@ -83,26 +83,26 @@ func genBootImageConfigs(ctx android.PathContext) map[string]*bootImageConfig { artModules := global.ArtApexJars frameworkModules := global.BootJars.RemoveList(artModules) - artSubdir := "apex/art_boot_images/javalib" + artDirOnHost := "apex/art_boot_images/javalib" frameworkSubdir := "system/framework" // ART config for the primary boot image in the ART apex. // It includes the Core Libraries. artCfg := bootImageConfig{ - name: artBootImageName, - stem: "boot", - installSubdir: artSubdir, - modules: artModules, + name: artBootImageName, + stem: "boot", + installDirOnHost: artDirOnHost, + modules: artModules, } // Framework config for the boot image extension. // It includes framework libraries and depends on the ART config. frameworkCfg := bootImageConfig{ - extends: &artCfg, - name: frameworkBootImageName, - stem: "boot", - installSubdir: frameworkSubdir, - modules: frameworkModules, + extends: &artCfg, + name: frameworkBootImageName, + stem: "boot", + installDirOnHost: frameworkSubdir, + modules: frameworkModules, } configs := map[string]*bootImageConfig{ @@ -129,11 +129,11 @@ func genBootImageConfigs(ctx android.PathContext) map[string]*bootImageConfig { // Create target-specific variants. for _, target := range targets { arch := target.Arch.ArchType - imageDir := c.dir.Join(ctx, target.Os.String(), c.installSubdir, arch.String()) + imageDir := c.dir.Join(ctx, target.Os.String(), c.installDirOnHost, arch.String()) variant := &bootImageVariant{ bootImageConfig: c, target: target, - images: imageDir.Join(ctx, imageName), + imagePathOnHost: imageDir.Join(ctx, imageName), imagesDeps: c.moduleFiles(ctx, imageDir, ".art", ".oat", ".vdex"), dexLocations: c.modules.DevicePaths(ctx.Config(), target.Os), } @@ -147,7 +147,7 @@ func genBootImageConfigs(ctx android.PathContext) map[string]*bootImageConfig { // specific to the framework config frameworkCfg.dexPathsDeps = append(artCfg.dexPathsDeps, frameworkCfg.dexPathsDeps...) for i := range targets { - frameworkCfg.variants[i].primaryImages = artCfg.variants[i].images + frameworkCfg.variants[i].primaryImages = artCfg.variants[i].imagePathOnHost frameworkCfg.variants[i].dexLocationsDeps = append(artCfg.variants[i].dexLocations, frameworkCfg.variants[i].dexLocationsDeps...) } |