Merge "arch-specific dependencies are correctly handled in apex"
This commit is contained in:
@@ -113,7 +113,7 @@ func apexDepsMutator(mctx android.TopDownMutatorContext) {
|
|||||||
apexBundleName := mctx.Module().Name()
|
apexBundleName := mctx.Module().Name()
|
||||||
mctx.WalkDeps(func(child, parent android.Module) bool {
|
mctx.WalkDeps(func(child, parent android.Module) bool {
|
||||||
if am, ok := child.(android.ApexModule); ok && am.CanHaveApexVariants() {
|
if am, ok := child.(android.ApexModule); ok && am.CanHaveApexVariants() {
|
||||||
moduleName := am.Name()
|
moduleName := am.Name() + "-" + am.Target().String()
|
||||||
bundleNames, ok := apexBundleNamesFor(mctx.Config())[moduleName]
|
bundleNames, ok := apexBundleNamesFor(mctx.Config())[moduleName]
|
||||||
if !ok {
|
if !ok {
|
||||||
bundleNames = make(map[string]bool)
|
bundleNames = make(map[string]bool)
|
||||||
@@ -131,7 +131,7 @@ func apexDepsMutator(mctx android.TopDownMutatorContext) {
|
|||||||
// Create apex variations if a module is included in APEX(s).
|
// Create apex variations if a module is included in APEX(s).
|
||||||
func apexMutator(mctx android.BottomUpMutatorContext) {
|
func apexMutator(mctx android.BottomUpMutatorContext) {
|
||||||
if am, ok := mctx.Module().(android.ApexModule); ok && am.CanHaveApexVariants() {
|
if am, ok := mctx.Module().(android.ApexModule); ok && am.CanHaveApexVariants() {
|
||||||
moduleName := am.Name()
|
moduleName := am.Name() + "-" + am.Target().String()
|
||||||
if bundleNames, ok := apexBundleNamesFor(mctx.Config())[moduleName]; ok {
|
if bundleNames, ok := apexBundleNamesFor(mctx.Config())[moduleName]; ok {
|
||||||
variations := []string{"platform"}
|
variations := []string{"platform"}
|
||||||
for bn := range bundleNames {
|
for bn := range bundleNames {
|
||||||
|
Reference in New Issue
Block a user