Merge "Merge 24Q3 (ab/11976889) to aosp-main-future" into aosp-main-future
This commit is contained in:
@@ -156,7 +156,7 @@ func (this *CcAconfigLibraryCallbacks) GeneratorBuildActions(ctx cc.ModuleContex
|
|||||||
Args: map[string]string{
|
Args: map[string]string{
|
||||||
"gendir": this.generatedDir.String(),
|
"gendir": this.generatedDir.String(),
|
||||||
"mode": mode,
|
"mode": mode,
|
||||||
"debug": strconv.FormatBool(ctx.Config().ReleaseReadFromNewStorageCc()),
|
"debug": strconv.FormatBool(ctx.Config().ReleaseReadFromNewStorage()),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@@ -64,11 +64,12 @@ var (
|
|||||||
` && ${aconfig} create-rust-lib` +
|
` && ${aconfig} create-rust-lib` +
|
||||||
` --mode ${mode}` +
|
` --mode ${mode}` +
|
||||||
` --cache ${in}` +
|
` --cache ${in}` +
|
||||||
|
` --allow-instrumentation ${debug}` +
|
||||||
` --out ${gendir}`,
|
` --out ${gendir}`,
|
||||||
CommandDeps: []string{
|
CommandDeps: []string{
|
||||||
"$aconfig",
|
"$aconfig",
|
||||||
},
|
},
|
||||||
}, "gendir", "mode")
|
}, "gendir", "mode", "debug")
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@@ -2,6 +2,7 @@ package codegen
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strconv"
|
||||||
|
|
||||||
"android/soong/android"
|
"android/soong/android"
|
||||||
"android/soong/rust"
|
"android/soong/rust"
|
||||||
@@ -82,6 +83,7 @@ func (a *aconfigDecorator) GenerateSource(ctx rust.ModuleContext, deps rust.Path
|
|||||||
Args: map[string]string{
|
Args: map[string]string{
|
||||||
"gendir": generatedDir.String(),
|
"gendir": generatedDir.String(),
|
||||||
"mode": mode,
|
"mode": mode,
|
||||||
|
"debug": strconv.FormatBool(ctx.Config().ReleaseReadFromNewStorage()),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
a.BaseSourceProvider.OutputFiles = android.Paths{generatedSource}
|
a.BaseSourceProvider.OutputFiles = android.Paths{generatedSource}
|
||||||
|
@@ -464,6 +464,7 @@ func getApiLevelsMapReleasedVersions() (map[string]int, error) {
|
|||||||
"S-V2": 32,
|
"S-V2": 32,
|
||||||
"Tiramisu": 33,
|
"Tiramisu": 33,
|
||||||
"UpsideDownCake": 34,
|
"UpsideDownCake": 34,
|
||||||
|
"VanillaIceCream": 35,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -263,6 +263,11 @@ func (c Config) ReleaseHiddenApiExportableStubs() bool {
|
|||||||
Bool(c.config.productVariables.HiddenapiExportableStubs)
|
Bool(c.config.productVariables.HiddenapiExportableStubs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable read flag from new storage
|
||||||
|
func (c Config) ReleaseReadFromNewStorage() bool {
|
||||||
|
return c.config.productVariables.GetBuildFlagBool("RELEASE_READ_FROM_NEW_STORAGE")
|
||||||
|
}
|
||||||
|
|
||||||
// A DeviceConfig object represents the configuration for a particular device
|
// A DeviceConfig object represents the configuration for a particular device
|
||||||
// being built. For now there will only be one of these, but in the future there
|
// being built. For now there will only be one of these, but in the future there
|
||||||
// may be multiple devices being built.
|
// may be multiple devices being built.
|
||||||
|
@@ -33,4 +33,4 @@ package android
|
|||||||
// * AOSP - xx9990000
|
// * AOSP - xx9990000
|
||||||
// * x-mainline-prod - xx9990000
|
// * x-mainline-prod - xx9990000
|
||||||
// * master - 990090000
|
// * master - 990090000
|
||||||
const DefaultUpdatableModuleVersion = "350090000"
|
const DefaultUpdatableModuleVersion = "352090000"
|
||||||
|
@@ -94,9 +94,6 @@ type CommonProperties struct {
|
|||||||
// if not blank, used as prefix to generate repackage rule
|
// if not blank, used as prefix to generate repackage rule
|
||||||
Jarjar_prefix *string
|
Jarjar_prefix *string
|
||||||
|
|
||||||
// if set to true, skip the jarjar repackaging
|
|
||||||
Skip_jarjar_repackage *bool
|
|
||||||
|
|
||||||
// If not blank, set the java version passed to javac as -source and -target
|
// If not blank, set the java version passed to javac as -source and -target
|
||||||
Java_version *string
|
Java_version *string
|
||||||
|
|
||||||
@@ -1112,7 +1109,6 @@ func (j *Module) compile(ctx android.ModuleContext, extraSrcJars, extraClasspath
|
|||||||
jarjarProviderData := j.collectJarJarRules(ctx)
|
jarjarProviderData := j.collectJarJarRules(ctx)
|
||||||
if jarjarProviderData != nil {
|
if jarjarProviderData != nil {
|
||||||
android.SetProvider(ctx, JarJarProvider, *jarjarProviderData)
|
android.SetProvider(ctx, JarJarProvider, *jarjarProviderData)
|
||||||
if !proptools.Bool(j.properties.Skip_jarjar_repackage) {
|
|
||||||
text := getJarJarRuleText(jarjarProviderData)
|
text := getJarJarRuleText(jarjarProviderData)
|
||||||
if text != "" {
|
if text != "" {
|
||||||
ruleTextFile := android.PathForModuleOut(ctx, "repackaged-jarjar", "repackaging.txt")
|
ruleTextFile := android.PathForModuleOut(ctx, "repackaged-jarjar", "repackaging.txt")
|
||||||
@@ -1120,7 +1116,6 @@ func (j *Module) compile(ctx android.ModuleContext, extraSrcJars, extraClasspath
|
|||||||
j.repackageJarjarRules = ruleTextFile
|
j.repackageJarjarRules = ruleTextFile
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
j.exportAidlIncludeDirs = android.PathsForModuleSrc(ctx, j.deviceProperties.Aidl.Export_include_dirs)
|
j.exportAidlIncludeDirs = android.PathsForModuleSrc(ctx, j.deviceProperties.Aidl.Export_include_dirs)
|
||||||
|
|
||||||
|
@@ -51,6 +51,7 @@ var (
|
|||||||
"core-icu4j",
|
"core-icu4j",
|
||||||
"core-oj",
|
"core-oj",
|
||||||
"core-libart",
|
"core-libart",
|
||||||
|
"wear-sdk.impl",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user