Browse Source

add variant_version to bp2build apex converter

Bug: 285138555
Test: b build //build/bazel/examples/... --config=android
Test: b test //build/bazel/tests/... --config=android
Change-Id: I7350930d48ccd13e96bdb4f994f47071a0dde70f
Sam Delmerico 1 year ago
parent
commit
743b4c5a9b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      apex/apex.go

+ 2 - 0
apex/apex.go

@@ -3531,6 +3531,7 @@ type bazelApexBundleAttributes struct {
 	Tests                 bazel.LabelListAttribute
 	Base_apex_name        *string
 	Apex_available_name   *string
+	Variant_version       *string
 }
 
 type convertedNativeSharedLibs struct {
@@ -3682,6 +3683,7 @@ func convertWithBp2build(a *apexBundle, ctx android.TopDownMutatorContext) (baze
 		Logging_parent:        loggingParent,
 		Tests:                 testsAttrs,
 		Apex_available_name:   a.properties.Apex_available_name,
+		Variant_version:       a.properties.Variant_version,
 	}
 
 	props := bazel.BazelTargetModuleProperties{